Re: T5.2.6 mixins example

2012-04-12 Thread resign
YOU ARE MY HERO !!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635438.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
I have just tested. You should add the @MixinAfter annotation to your Mixin class. 2012/4/12 resign > exaclty my idea :-) > > doesn't work too > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635403.html > Sent from the Tapestry -

Re: T5.2.6 mixins example

2012-04-12 Thread resign
exaclty my idea :-) doesn't work too -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635403.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To u

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
I think, setting the disabled property in the beginRender phase is to early, because the textfield is not rendered yet. So the current element is th . Do it in the afterRender phase. Manu 2012/4/12 resign > following: > > my textField is in table cell. > If i view into generated html, i can se

Re: T5.2.6 mixins example

2012-04-12 Thread resign
following: my textField is in table cell. If i view into generated html, i can see that the - element is "disabled"... and generated HTML looks like .. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635389.html Sen

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
Does the disabled attribute alread exist in your template. If it is, according to the JavaDoc, the attribute method will not work. Try with the forceAttributes method. Can you also check if your SessionsState-annotated variable is correct, and also the current element. 2012/4/12 resign > Hi, >

Re: T5.2.6 mixins example

2012-04-12 Thread resign
Hi, your' right... but it still doesn't work -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635342.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
The right syntax is : 2012/4/12 resign > Hi, > i search an example how to create and use mixins. > Unfortunately, i cannot found anything to become smarter. > My idea - i write a mixin which set TextField disabled or not depends on > logged user. > > My example code > > class FieldMixin{ > @Inj

T5.2.6 mixins example

2012-04-12 Thread resign
Hi, i search an example how to create and use mixins. Unfortunately, i cannot found anything to become smarter. My idea - i write a mixin which set TextField disabled or not depends on logged user. My example code class FieldMixin{ @Inject private ComponentResources resources; private Element e