You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by cleverpig <gr...@gmail.com> on 2009/09/23 17:03:57 UTC

T5:select component's label doesn't work

my tapestry's version is Tapestry5.1.05.

i read this from select component manual:
Component Parameters:
...
label	String	
NOT Allow Null		literal		
The user presentable label for the field. If not provided, a
reasonable label is generated from the component's id, first by
looking for a message key named "id-label" (substituting the
component's actual id), then by converting the actual id to a
presentable string (for example, "userId" to "User Id").
...

but you can't make this label work in this way:
<t:select t:id="catSelector" t:model="catSelectModel"
t:value="selectCat" t:encoder="catEncoder" t:lable="catSelector"/>

-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5:select component's label doesn't work

Posted by cleverpig <gr...@gmail.com>.
added label before the select component?
it's a waste time way... ///:^)

On Thu, Sep 24, 2009 at 9:50 AM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> Em Wed, 23 Sep 2009 21:57:36 -0300, cleverpig <gr...@gmail.com>
> escreveu:
>
>>>> but you can't make this label work in this way:
>>>> <t:select t:id="catSelector" t:model="catSelectModel"
>>>> t:value="selectCat" t:encoder="catEncoder" t:lable="catSelector"/>
>
> The Select component doesn't generate a label. To do that, use the Label
> component.  Look at the examples given in
> http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Select.html.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5:select component's label doesn't work

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 23 Sep 2009 21:57:36 -0300, cleverpig <gr...@gmail.com>  
escreveu:

>>> but you can't make this label work in this way:
>>> <t:select t:id="catSelector" t:model="catSelectModel"
>>> t:value="selectCat" t:encoder="catEncoder" t:lable="catSelector"/>

The Select component doesn't generate a label. To do that, use the Label  
component.  Look at the examples given in  
http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Select.html.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


Re: T5:select component's label doesn't work

Posted by cleverpig <gr...@gmail.com>.
i created a issue in JIRA:https://issues.apache.org/jira/browse/TAP5-855

2009/9/24 cleverpig <gr...@gmail.com>:
> yes,this was my handwriting mistake.
> but the label doesn't work..
>
> 2009/9/23 Juan E. Maya <ma...@gmail.com>:
>> u have a typo. t:label not t:lable :)
>>
>>
>>
>> 2009/9/23 cleverpig <gr...@gmail.com>:
>>> my tapestry's version is Tapestry5.1.05.
>>>
>>> i read this from select component manual:
>>> Component Parameters:
>>> ...
>>> label   String
>>> NOT Allow Null          literal
>>> The user presentable label for the field. If not provided, a
>>> reasonable label is generated from the component's id, first by
>>> looking for a message key named "id-label" (substituting the
>>> component's actual id), then by converting the actual id to a
>>> presentable string (for example, "userId" to "User Id").
>>> ...
>>>
>>> but you can't make this label work in this way:
>>> <t:select t:id="catSelector" t:model="catSelectModel"
>>> t:value="selectCat" t:encoder="catEncoder" t:lable="catSelector"/>
>>>
>>> --
>>> cleverpig(Dan)
>>> Location: Beijing
>>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>>> Zipcode: 100031
>>> MSN: great_liudan@hotmail.com
>>> QQ: 149291732
>>> Skype: cleverpigatmatrix
>>> Facebook ID:cleverpig
>>> Blog: www.cleverpig.name
>>> Tags: del.icio.us/cleverpig
>>> Twitter: twitter.com/cleverpig
>>> 新浪微博: t.sina.com.cn/cleverpig
>>> Organization: www.beijing-open-party.org
>>> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>
>
>
> --
> cleverpig(Dan)
> Location: Beijing
> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
> Zipcode: 100031
> MSN: great_liudan@hotmail.com
> QQ: 149291732
> Skype: cleverpigatmatrix
> Facebook ID:cleverpig
> Blog: www.cleverpig.name
> Tags: del.icio.us/cleverpig
> Twitter: twitter.com/cleverpig
> 新浪微博: t.sina.com.cn/cleverpig
> Organization: www.beijing-open-party.org
> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5:select component's label doesn't work

Posted by cleverpig <gr...@gmail.com>.
yes,this was my handwriting mistake.
but the label doesn't work..

2009/9/23 Juan E. Maya <ma...@gmail.com>:
> u have a typo. t:label not t:lable :)
>
>
>
> 2009/9/23 cleverpig <gr...@gmail.com>:
>> my tapestry's version is Tapestry5.1.05.
>>
>> i read this from select component manual:
>> Component Parameters:
>> ...
>> label   String
>> NOT Allow Null          literal
>> The user presentable label for the field. If not provided, a
>> reasonable label is generated from the component's id, first by
>> looking for a message key named "id-label" (substituting the
>> component's actual id), then by converting the actual id to a
>> presentable string (for example, "userId" to "User Id").
>> ...
>>
>> but you can't make this label work in this way:
>> <t:select t:id="catSelector" t:model="catSelectModel"
>> t:value="selectCat" t:encoder="catEncoder" t:lable="catSelector"/>
>>
>> --
>> cleverpig(Dan)
>> Location: Beijing
>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>> Zipcode: 100031
>> MSN: great_liudan@hotmail.com
>> QQ: 149291732
>> Skype: cleverpigatmatrix
>> Facebook ID:cleverpig
>> Blog: www.cleverpig.name
>> Tags: del.icio.us/cleverpig
>> Twitter: twitter.com/cleverpig
>> 新浪微博: t.sina.com.cn/cleverpig
>> Organization: www.beijing-open-party.org
>> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
>>
>> ---------------------------------------------------------------------
>> 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
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5:select component's label doesn't work

Posted by "Juan E. Maya" <ma...@gmail.com>.
u have a typo. t:label not t:lable :)



2009/9/23 cleverpig <gr...@gmail.com>:
> my tapestry's version is Tapestry5.1.05.
>
> i read this from select component manual:
> Component Parameters:
> ...
> label   String
> NOT Allow Null          literal
> The user presentable label for the field. If not provided, a
> reasonable label is generated from the component's id, first by
> looking for a message key named "id-label" (substituting the
> component's actual id), then by converting the actual id to a
> presentable string (for example, "userId" to "User Id").
> ...
>
> but you can't make this label work in this way:
> <t:select t:id="catSelector" t:model="catSelectModel"
> t:value="selectCat" t:encoder="catEncoder" t:lable="catSelector"/>
>
> --
> cleverpig(Dan)
> Location: Beijing
> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
> Zipcode: 100031
> MSN: great_liudan@hotmail.com
> QQ: 149291732
> Skype: cleverpigatmatrix
> Facebook ID:cleverpig
> Blog: www.cleverpig.name
> Tags: del.icio.us/cleverpig
> Twitter: twitter.com/cleverpig
> 新浪微博: t.sina.com.cn/cleverpig
> Organization: www.beijing-open-party.org
> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
>
> ---------------------------------------------------------------------
> 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