You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sanjay Choudhary <ja...@yahoo.com> on 2002/03/21 03:22:44 UTC

Nester iterate and style sheet

Hi guys,

I have the following code
<nested:iterate property="accountCode">	
  <TR>
     <TD><nested:checkbox property="toDelete"/></TD>
     <TD width="186" colspan="3">
     <nested:text property="region"/></TD>
  </TR>
</nested:iterate>            

To odd rows I wish to apply different style sheet and
to even a different. How can I do this? Didn't like
the idea of hard coding the style sheet values in the
Formbean and then retreive from there.

I tried following 
   <TR class="<bean:message key='<bean:write
property='stylesheet' name='accountCode'/>'/>">

I thought I will configure the style sheet names in
application.properties file. But this didn't work.

Please advice. 

Thanks,
Sanjay





__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Nester iterate and style sheet

Posted by Michael Skariah <ms...@anshinsoft.com>.
Hi Sanjay,

You might want to look into
http://husted.com/struts/resources.htm
RowTag (ZIP file for download) by Amarda Business Systems Ltd - Source for a
Struts-compatible tag to generate alternating row colors in a table by Niall
Pemberton.

Hope this helps.

-MS.


-----Original Message-----
From: Sanjay Choudhary [mailto:java_sc@yahoo.com]
Sent: Wednesday, March 20, 2002 6:23 PM
To: Struts Users Mailing List; arron@keyboardmonkey.com
Subject: Nester iterate and style sheet


Hi guys,

I have the following code
<nested:iterate property="accountCode">
  <TR>
     <TD><nested:checkbox property="toDelete"/></TD>
     <TD width="186" colspan="3">
     <nested:text property="region"/></TD>
  </TR>
</nested:iterate>

To odd rows I wish to apply different style sheet and
to even a different. How can I do this? Didn't like
the idea of hard coding the style sheet values in the
Formbean and then retreive from there.

I tried following
   <TR class="<bean:message key='<bean:write
property='stylesheet' name='accountCode'/>'/>">

I thought I will configure the style sheet names in
application.properties file. But this didn't work.

Please advice.

Thanks,
Sanjay





__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards.
http://movies.yahoo.com/

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>