You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joshua Jackson <jo...@gmail.com> on 2007/11/28 08:56:30 UTC
Blank value for PropertySelection
Dear all,
I have a combo box defined as follow:
<select jwcid="@PropertySelection" model="ognl:@AppForm@GENDER_MODEL"
value="ognl:sex" />
Now I wanted to add a default message for this combo box that would
look like this:
<select name="sex">
<option value="">Choose...</option>
</select>
But I can not nest that blank option tag inside a PropertySelection
component. Does anyone has a solution for this?
Thanks in advance,
--
What you want today, may not exist tommorrow
Blog: http://joshuajava.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Blank value for PropertySelection
Posted by Steve Shucker <ss...@vmsinfo.com>.
Look at the LabeledPropertySelectionModel. From the javadoc:
Decorates an underlying {@link IPropertySelectionModel}adding an initial
property. The label, option, and value of the initial property are
configurable.
Joshua Jackson wrote:
> Dear all,
>
> I have a combo box defined as follow:
> <select jwcid="@PropertySelection" model="ognl:@AppForm@GENDER_MODEL"
> value="ognl:sex" />
>
> Now I wanted to add a default message for this combo box that would
> look like this:
> <select name="sex">
> <option value="">Choose...</option>
> </select>
>
> But I can not nest that blank option tag inside a PropertySelection
> component. Does anyone has a solution for this?
>
>
> Thanks in advance,
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Blank value for PropertySelection
Posted by Andreas Andreou <an...@gmail.com>.
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/form/IPropertySelectionModel.html
On Nov 28, 2007 9:56 AM, Joshua Jackson <jo...@gmail.com> wrote:
> Dear all,
>
> I have a combo box defined as follow:
> <select jwcid="@PropertySelection" model="ognl:@AppForm@GENDER_MODEL"
> value="ognl:sex" />
>
> Now I wanted to add a default message for this combo box that would
> look like this:
> <select name="sex">
> <option value="">Choose...</option>
> </select>
>
> But I can not nest that blank option tag inside a PropertySelection
> component. Does anyone has a solution for this?
>
>
> Thanks in advance,
>
> --
> What you want today, may not exist tommorrow
>
> Blog: http://joshuajava.wordpress.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org