You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ta...@jakarta.apache.org on 2004/06/21 14:01:35 UTC
[Jakarta Tapestry Wiki] New: FrequentlyAskedQuestions/OptionalParameters
Date: 2004-06-21T05:01:35
Editor: 165.228.129.12 <>
Wiki: Jakarta Tapestry Wiki
Page: FrequentlyAskedQuestions/OptionalParameters
URL: http://wiki.apache.org/jakarta-tapestry/FrequentlyAskedQuestions/OptionalParameters
no comment
New Page:
Question:
I have a button that I'm creating using the @Any component.
I'd like to be able to set the disabled attribute conditionally. Is there an easy to do this with Tapestry?
Answer:
<button jwcid="@Any" disabled="ognl:disabled ? 'disabled' : null"/>
Informal parameters with null values do not get rendered as informal attributes.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org