On Wed, 04 Jul 2012 17:22:32 -0300, bhorvat <[email protected]> wrote:

My problem is that I have a lot of code duplication, also this seems to me as a simple display problem so I dont like the fact that I have to create logic in the java page for this just so that I can put one extra css class in one place.

Logic in templates is considered an anti-pattern, a big no-no. for many years already. Just use Niel Pierson's solution. I think it's perfect, not using duplicated HTML. In addition, you can use CSS for that, as Dusko said.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to