Results 1 to 4 of 4

Thread: Sping:bind indexed property in FormWizard not woking?

  1. #1
    Join Date
    Nov 2004
    Posts
    13

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    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
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3
    Join Date
    Nov 2004
    Posts
    13

    Default

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

  4. #4
    Join Date
    Nov 2004
    Posts
    13

    Default

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

    Thank you so much for saving my day !!!

Similar Threads

  1. ERROR: Context initialization failed
    By makhlo in forum Architecture
    Replies: 8
    Last Post: Jul 11th, 2008, 01:41 AM
  2. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  5. Replies: 2
    Last Post: May 13th, 2005, 05:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •