I have just looked at the source code for the Label component and it seems
that the "for" parameter is formal so the informalParameter stuff that I
was pointing you towards will not work.

The parameter is declared as follows:

@Parameter(name="for",...)
private org.apache.tapestry5.Field field;

Perhaps that weill help

On Wednesday, 11 January 2012, Lance Java <lance.j...@googlemail.com> wrote:
> Hmm... perhaps you have the Mixin's ComponentResources instead of the
label's ComponentResources.
>
> How about
>
> @Inject ComponentResources resources;
>
> String for =
resources.getContainerResources().getInformalParameter("for", String.class);
>
>
> On Wednesday, 11 January 2012, Lance Java <lance.j...@googlemail.com>
wrote:
>> @Inject ComponentResources and call getInformalParameter(String name,
Class<T> type)
>>
>> Cheers,
>> Lance.
>>
>> On Wednesday, 11 January 2012, ffred <ffre...@gmail.com> wrote:
>>> Hello,
>>> I'm trying to develop a mixin for t:label component in which i need to
get
>>> the value of the 'for' attribute.
>>> I currently find no way of doing this !
>>> Tried @Parameter, @BindParameter in many ways with no success at all.
>>>
>>> Is there any way of doing this ?
>>>
>>> Thanks.
>>>
>>> Fred
>>>
>>>
>>> --
>>> View this message in context:
http://tapestry.1045711.n5.nabble.com/5-2-how-to-read-the-for-attribute-of-a-t-label-in-a-mixin-tp5136617p5136617.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>

Reply via email to