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
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 -
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
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
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
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,
>
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.
-
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
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