You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@mapshed.com.au> on 2011/05/10 01:53:47 UTC
simple int selection model
Hi all,
I need to make a select consisting of the options 0,1,2,3,4,5.
I remember reading somewhere that there is a simple syntax for defining
this model - something like [model="0..5"] however that isn't it...
Does anyone else know what I'm referring to or was this a dream/legacy
feature?
Thanks, p.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: simple int selection model
Posted by Paul Stanton <pa...@mapshed.com.au>.
model="literal:0,1,2,3,4,5" works
On 10/05/2011 1:05 PM, Thiago H. de Paula Figueiredo wrote:
> On Mon, 09 May 2011 23:00:49 -0300, Paul Stanton <pa...@mapshed.com.au>
> wrote:
>
>> Hi thiago,
>>
>> That's what I thought, however
>> <t:Select t:value="myValue" t:model="0..5" />
>> is being rendered as
>> <select id="select_4" name="select_4"><option
>> value=""></option><option value="0..5">0..5</option></select>
>
> Have you tried model="[0, 1, 2, 3, 4, 5]"?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: simple int selection model
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 09 May 2011 23:00:49 -0300, Paul Stanton <pa...@mapshed.com.au>
wrote:
> Hi thiago,
>
> That's what I thought, however
> <t:Select t:value="myValue" t:model="0..5" />
> is being rendered as
> <select id="select_4" name="select_4"><option value=""></option><option
> value="0..5">0..5</option></select>
Have you tried model="[0, 1, 2, 3, 4, 5]"?
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: simple int selection model
Posted by Paul Stanton <pa...@mapshed.com.au>.
Hi thiago,
That's what I thought, however
<t:Select t:value="myValue" t:model="0..5" />
is being rendered as
<select id="select_4" name="select_4"><option value=""></option><option
value="0..5">0..5</option></select>
tapestry 5.1.0.5
cheers, p.
On 10/05/2011 10:47 AM, Thiago H. de Paula Figueiredo wrote:
> On Mon, 09 May 2011 20:53:47 -0300, Paul Stanton <pa...@mapshed.com.au>
> wrote:
>
>> Hi all,
>
> Hi!
>
>> I need to make a select consisting of the options 0,1,2,3,4,5.
>>
>> I remember reading somewhere that there is a simple syntax for
>> defining this model - something like [model="0..5"] however that
>> isn't it...
>
> model="0..5". Documentation here:
> http://tapestry.apache.org/property-expressions.html, search for "range".
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: simple int selection model
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 09 May 2011 20:53:47 -0300, Paul Stanton <pa...@mapshed.com.au>
wrote:
> Hi all,
Hi!
> I need to make a select consisting of the options 0,1,2,3,4,5.
>
> I remember reading somewhere that there is a simple syntax for defining
> this model - something like [model="0..5"] however that isn't it...
model="0..5". Documentation here:
http://tapestry.apache.org/property-expressions.html, search for "range".
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: simple int selection model
Posted by Shing Hing Man <ma...@yahoo.com>.
Have you tried
model="'0..5'"
?
There are singe quotes.
Shing
--- On Tue, 10/5/11, Paul Stanton <pa...@mapshed.com.au> wrote:
> From: Paul Stanton <pa...@mapshed.com.au>
> Subject: simple int selection model
> To: "Tapestry users" <us...@tapestry.apache.org>
> Date: Tuesday, 10 May, 2011, 7:53
> Hi all,
>
> I need to make a select consisting of the options
> 0,1,2,3,4,5.
>
> I remember reading somewhere that there is a simple syntax
> for defining this model - something like [model="0..5"]
> however that isn't it...
>
> Does anyone else know what I'm referring to or was this a
> dream/legacy feature?
>
> Thanks, p.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org