Re: Conditional rendering of HTML attribute

2013-01-15 Thread Arno Haase
That was exactly what I needed, works like a charm. Thanks! Am 15.01.2013 17:48, schrieb Lance Java: > Tapestry will only render an attribute that is not null. But you > need to be aware of the following: 1. For foo="${x}" the value will > be the empty string if getX() is null 2. For foo="prop:x"

Re: Conditional rendering of HTML attribute

2013-01-15 Thread Lance Java
Tapestry will only render an attribute that is not null. But you need to be aware of the following: 1. For foo="${x}" the value will be the empty string if getX() is null 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

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