Modifying the class in a <ul> tag

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Modifying the class in a <ul> tag

Mark Stang
Hi,
I need to be able to swap out the class of a ul tag.  Do I have to use Any or is there a way to take any old tag and parameterize it?

thanks,

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: Modifying the class in a <ul> tag

richard.hensley
If you need to do something tricky with the attributes of an html tag, that
is what @Any is built for. If you do not use a jwcid on a tag, tapestry
ignores the tag other than outputing it.

<ul jwcid="@Any" class="ognl:condition?'class1':null">

Richard

-----Original Message-----
From: Mark Stang [mailto:[hidden email]]
Sent: Thursday, May 19, 2005 9:06 AM
To: Tapestry users
Subject: Modifying the class in a <ul> tag

Hi,
I need to be able to swap out the class of a ul tag.  Do I have to use Any
or is there a way to take any old tag and parameterize it?

thanks,

Mark



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

Reply | Threaded
Open this post in threaded view
|

RE: Modifying the class in a <ul> tag

Mark Stang
In reply to this post by Mark Stang
Thanks!


-----Original Message-----
From: Hensley, Richard [mailto:[hidden email]]
Sent: Thu 5/19/2005 4:20 PM
To: Tapestry users
Subject: RE: Modifying the class in a <ul> tag
 
If you need to do something tricky with the attributes of an html tag, that
is what @Any is built for. If you do not use a jwcid on a tag, tapestry
ignores the tag other than outputing it.

<ul jwcid="@Any" class="ognl:condition?'class1':null">

Richard

-----Original Message-----
From: Mark Stang [mailto:[hidden email]]
Sent: Thursday, May 19, 2005 9:06 AM
To: Tapestry users
Subject: Modifying the class in a <ul> tag

Hi,
I need to be able to swap out the class of a ul tag.  Do I have to use Any
or is there a way to take any old tag and parameterize it?

thanks,

Mark



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




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