Struts Layout

Discussion in 'Java' started by =?iso-8859-1?B?QmVub+50?=, Feb 10, 2006.

  1. Hi,
    I want to insert a textarea into a collectionItem of a collection...

    Here is my code :

    <layout:panel>

    <layout:collection id="my_ID" name="my_liste" >
    <layout:collectionItem title="a" property="name" /><br/>
    <layout:collectionItem title="b" property="firsnamer">
    <layout:textarea key="mykey" property="address" rows="5" cols="70"
    layout="false"/>
    </layout:collectionItem>
    <layout:collectionItem title="c" property="other"/>
    </layout:collection>

    </layout:panel>

    It does'nt work, any idea?
    Thanks
    =?iso-8859-1?B?QmVub+50?=, Feb 10, 2006
    #1
    1. Advertising

  2. =?iso-8859-1?B?QmVub+50?=

    Bluesman Guest

    This code should work if your bean and its properties are correctly
    setted.
    Does it work without your textarea tag ? If not, check your bean
    represented by "my_ID".

    Else, check your properties "firsnamer" and "address" : I think it
    should be like :

    <layout:collectionItem title="b" property="address">
    <layout:textarea property="address" rows="5" cols="70"
    layout="false"/>
    </layout:collectionItem>

    Also, the property in the collectionItem should only be used if you
    need this column to be sortable. Else, this attribute is useless.
    Bluesman, Feb 14, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick Spiewak
    Replies:
    3
    Views:
    3,151
    Rick Spiewak
    Aug 26, 2003
  2. RobertH
    Replies:
    1
    Views:
    719
    Steve C. Orr [MVP, MCSD]
    Nov 4, 2003
  3. NWx
    Replies:
    4
    Views:
    2,960
    Kevin Spencer
    Feb 19, 2004
  4. Eric
    Replies:
    4
    Views:
    711
    clintonG
    Dec 24, 2004
  5. Replies:
    1
    Views:
    572
    John Timney \(MVP\)
    Jun 19, 2006
Loading...

Share This Page