You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Glen Stampoultzis <gs...@iinet.net.au> on 2004/06/21 13:23:23 UTC

Optionally include an attribute in for an Any component.

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?

Regards,


Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Optionally include an attribute in for an Any component.

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
<button jwcid="@Any" disabled="ognl:disabled ? 'disabled' : null"/>

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

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: Glen Stampoultzis [mailto:gstamp@iinet.net.au] 
> Sent: Monday, June 21, 2004 7:23 AM
> To: Tapestry users
> Subject: Optionally include an attribute in for an Any component.
> 
> 
> 
> 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?
> 
> Regards,
> 
> 
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org