cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Initializing multi-value checkbox selections
Date Thu, 08 May 2008 13:51:30 GMT
Using Cocoon 2.1.8

I am struggling to get a multi-value form widget to show
items as "checked".   The form definition looks like this:

<fd:multivaluefield id="aMulti">
  <fd:label>Transport</fd:label>
  <fd:datatype base="string"/>
  <fd:selection-list>
    <fd:item value="bike" checked="true"><fd:label>Bike</fd:label></fd:item>
    <fd:item value="car" checked="true"><fd:label>Car</fd:label></fd:item>
  </fd:selection-list>
</fd:multivaluefield>

but the resulting form does not show any items as checked.

I do not have the same problem with radio boxes; eg.
<fd:field id="aRadio">
  <fd:label>1.1 Age:</fd:label>
  <fd:datatype base="string"/>
  <fd:selection-list>
    <fd:item value="under 25" checked="true"><fd:label>under 25</fd:label></fd:item>
    <fd:item value="over 25" ><fd:label>over 25</fd:label></fd:item>
  </fd:selection-list>
</fd:field>

shows up just fine.

Is this is a syntax issue?  (The above also applies if I use checked="checked").

Thanks,
Derek



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice,
and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message