cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo <anto...@apache.org>
Subject Re: selection list w/ null default?
Date Wed, 12 Jul 2006 02:11:05 GMT
Hi Mark,

Use the @null-text. In your case, something like:

<fd:selection-list type="flow-jxpath" list-path="myList" 
value-path="beanId" label-path="beanLabel" null-text="-- none --"/>

Best Regards,

Antonio Gallardo

Best Regards
Mark Lundquist escribió:
> Hi,
>
> I have a <selection-list type="flow-jxpath"> whose list is a 
> Collection that's passed directly out of the model layer of my 
> application. However, the field is optional and I need the user to be 
> able to submit with a null value for this widget. The label should be 
> something like "-- none --".
>
> I guess I could call addItem() from the flowscript, but it looks like 
> that would append the new value to the end of the selection list. I 
> kind of want it to be at the beginning.

>
> How do I do this?
>
> Thanks,
> —ml—
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


Mime
View raw message