Announcement Announcement Module
Collapse
No announcement yet.
Sping:bind indexed property in FormWizard not woking? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sping:bind indexed property in FormWizard not woking?

    Hello,

    I have an AbstractWizardFormController app that is basically a sequence of panels updating commandClass that is in session.

    On the first page, I just take few request parameters to populate some values into commandClass and no sping:bind is used in the form.

    On the second page, spring:bind is used and I expected that commandClass that already instanciated in session will be updated with new values from 2nd form page.

    Spring is not complaining the bind path, so Spring found the bean and called the setter successfully. But, when I inspect the commandClass at onBind( ), all the new values are not making it's way.


    So... on the 2nd page, I have following.

    <spring:bind path="absolute.obj[${row}].attribute">
    <input name="inputName" value="3" />
    </spring:bind>

    And I expect commandClass's "absolute.obj[${row}].attribute" is set to 3.

    Only thing I found on the request, there is an array of "inputName" (from above code snipet) with proper values, but not in commandClass.

    Is there any known bugs in Spring Bind that they don't work correctly when it works with index properties within AbstractWizardFormController?

    Any suggestions appreciated!

    Thanks!










    :wink:

  • #2
    You should use
    Code:
    <spring&#58;bind path="absolute.obj&#91;$&#123;row&#125;&#93;.attribute"> 
    <input name="$&#123;status.expression&#125;" value="3" /> 
    </spring&#58;bind>
    HTH

    Comment


    • #3
      Thanks!
      Btw..I just tried it, it still doesn't work......

      Comment


      • #4
        My appology!
        It worked just fine. (the container just didn't reload the change).

        Thank you so much for saving my day !!!

        Comment

        Working...
        X