Re: Conditional rendering of HTML attribute

2013-01-15 Thread Arno Haase
2. For foo="prop:x" the value > will be null if getX() is null > > So it's best not to use ${x} for attribute values. > > > > -- View this message in context: > http://tapestry.1045711.n5.nabble.com/Conditional-rendering-of-HTML-attribute-tp5719323p57

Re: Conditional rendering of HTML attribute

2013-01-15 Thread Lance Java
ribute values. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Conditional-rendering-of-HTML-attribute-tp5719323p5719330.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscrib

Re: Conditional rendering of HTML attribute

2013-01-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jan 2013 12:54:13 -0200, Arno Haase wrote: Hi, Hi! So - any ideas or suggestions? Write a mixin that writes or not the attribute depending on a mixin parameter. -- Thiago H. de Paula Figueiredo - To unsu

Conditional rendering of HTML attribute

2013-01-15 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, the following example is extremely simplified, but the underlying problem is real. I have a custom component with an optional parameter 'x'. If the parameter is present, I want to render Hello otherwise I want the same thing but without the HTM