cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <coc...@lojjic.net>
Subject Re: checkbox widget with datatype vector
Date Sun, 23 Jul 2006 18:46:36 GMT
Andrew wrote:
> Hi Jason,
> 
>     <fd:selection-list type="flow-jxpath"
>          list-path="neworder/orderItems" value-path="ID"
>          label-path="(optional path to display label)" />
> 
> 
> how do I manage to avoid having to use the label-path attribute? Anytime 
> I try to keep it out I get an eror message saying that it is required! 

Sorry, I thought it was optional.  But no big deal, just set it to the 
same as your value-path.

> With it in I get a selection list instead of check boxes. My widget code 
> is as follows:
> widget:
> 
>      <ft:widget id= "delItem">
>        <fi:styling type="checkbox"/>
>      </ft:widget>

Check the docs: 
http://cocoon.apache.org/2.1/userdocs/widgets/widget_multivaluefield.html

Should be list-type="checkbox".

> 
> validation:
> 
>     <fd:multivaluefield id="delItem">
>       <fd:datatype base="string"/>
>       <fd:selection-list type="flow-jxpath" 
> list-path="neworder/orderItems" value-path="ID" />
>     </fd:multivaluefield>
> 
> regards
> 
> Andrew
> 
> 
> 


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


Mime
View raw message