You do it in Java code. public String getLinkClass() { return isActive ? "active" : "notActive"; } and just reference ${linkClass} in the template.
On Sun, Nov 17, 2013 at 6:30 AM, Matthias <thegreatme...@gmail.com> wrote: > Hi, if theres something in tapestry for inline conditional expressions? I > think of something like > > <a href="www.google.com" class="${isActive ? 'active' : > 'notActive'}">google</a> > > I found nothing like that, but i loved to have it. > > Thanks in advance > Matthias > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com