NOTE: This is outdated information that applies only to Tapestry 4. For current information see


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?


<button jwcid="@Any" disabled="ognl:disabled ? 'disabled' : null"/>

Informal parameters with null values do not get rendered as informal attributes.

FrequentlyAskedQuestions/OptionalParameters (last edited 2011-01-02 02:02:02 by BobHarner)