Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SectionStack issue with executeFetch() in GwtRpcDatasource

    SmartClient Version: SC_SNAPSHOT-2011-05-03/LGPL Development Only (built 2011-05-03)
    Hi,
    Im facing issue with executeFetch() when using SectionStack. My Problem is:
    I have section stack with 3 sections, named create, load and edit profile. In Edit Profile section i have a drop down which gets data from backend. For this i've used GwtRpcDatasource implementation. I'm attaching the form which contains dropdown to this section and i set criteria and setAuthoFetchData(true) so that when form gets rendered it will call executeFetch() and gets data and the data will be populated in the drop down.

    Expected Result: When i click Edit Profile section, the page should contain dropdown with fetched values from backend.

    Actual Result: I'm getting exception as the executeFetch() is calling twice. For the second time call, the attribute which i set in criteria becomes null. At backend i'm getting NullPointerException.

    I couldn't understand why executeFetch() gets called twice. To demonstrate this, i created Test class. Please check once and suggest me a solution.
    Attached Files

    #2
    Am i doing anything wrong? Please suggest me.

    Comment


      #3
      22 Views. But nobody replied. :(

      Comment


        #4
        override executeFetch and set a breakpoint on it

        Comment


          #5
          Originally posted by jmichelgarcia
          override executeFetch and set a breakpoint on it
          Did u check my testcase? I did the same still i couldnt figure out the issue.

          Comment


            #6
            I can't test your testcase right now. But what i mean is, if u set a breakpoint on the override, you could check the stacktrace and maybe understand this behavior.

            just trying to help.

            Comment

            Working...
            X