Announcement Announcement Module
Collapse
No announcement yet.
#springBind to array element Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #springBind to array element

    Hi,

    Is it possible to bind to an element of a class property instead of binding to the class property itself? In this case my class property is a 2D array "numbersArray" with its getter and setter as required.

    Normally I would use this for a class property that is not an array:
    #springBind("cartinfo.property")
    where cartinfo is the formObjectName.

    I tried this and it does not work:
    #springBind("cartinfo.numbersArray[0][0])

    I get this:
    Invalid property 'numbersArray[0][0]' of bean class [com.project.model.Cart]

    What is the solution for this?
Working...
X