Hi,

What version of Tapestry are you using?
I think since version 5.4 it is required to add the mixin prefix to its parameters:

t:[mixin-name].[parameter-name]="[property-name]"


So in your case:

<select
...
t:mixins="mixinDropDown"
t:mixinDropDown.varid="${ob1.sub1.sub2.id}"
...
</select>

Maybe that is the problem you are having?

Nathan


Op 29/03/2017 om 11:42 schreef Ankit Jain:
Hi,

I am unable to get custom attributes (t:varid) value in Mixin (mixinDropDown) 
from Select Input control.

<select t:type="select" t:value="dateDropDown"
                         t:model="dropDownDateValues" 
t:validate="prop:fieldValidator"
                         encoder="stringEncoder"
                         varid1="${ob1.sub1.sub2.id}"
                         t:varid="${ob1.sub1.sub2.id}"
                         t:mixins="mixinDropDown"
t:dataType="dropdown"
                         style="width:${tbxwidth}"
                         t:blankOption="prop:blankOption"></select>

In mixinDropDown, I have declared the varid as following:
     @Parameter(defaultPrefix = BindingConstants.LITERAL)
     private String varid;

when I am accessing it in AfterRender, 'varid' is coming as null.

Note: I have tested that "${ob1.sub1.sub2.id}" is returning a valid value and 
not null.

Regards, Ankit
[Aspire Systems]

This e-mail message and any attachments are for the sole use of the intended 
recipient(s) and may contain proprietary, confidential, trade secret or 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited and may be a violation of law. If you are not the 
intended recipient, please contact the sender by reply e-mail and destroy all 
copies of the original message.



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

Reply via email to