Hi Miro:

 

titleKey gets its properties from displaytag.properties. But mine are described in apllicationResources.properties.

 

Is their a way I can specify that <bean:message key…> should be read from applicationResources.properties?

 

Thanks.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, July 31, 2006 5:48 PM
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] Headers in Display Table

 

Hi,

 

use the attribute "titleKey" for the title.

I do not get the thing about the iteration. Why do you need it?

displaytag will iterate over the elements in the collection specified in the attribute "name" of display:table.

 

regards,

Miro

 

-----Original Message-----
From: Chetan Pandey [mailto:[EMAIL PROTECTED]
Sent: maandag 31 juli 2006 11:14
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] Headers in Display Table

I have headers which can be multilingual and come from a properties file.

 

The following is my code:

 

  1. <display:table name="displayableItemsVector" id="row" export="true" >
  2. <display:column title="<bean:message key='attendee.firstName'/>" ><c:out value="${row[0]}"/></display:column>
  3. <display:column> <c:out value="${row[1]}"/></display:column>
  4. <display:column> <c:out value="${row[2]}"/></display:column>
  5. <display:column> <c:out value="${row[3]}"/></display:column>
  6. <display:column> <c:out value="${row[4]}"/></display:column>
  7. <display:column> <c:out value="${row[5]}"/></display:column>
  8. <display:column> <c:out value="${row[6]}"/></display:column>
  9. <display:column> <c:out value="${row[7]}"/></display:column>
  10. <display:column> <c:out value="${row[8]}"/></display:column>
  11. <display:column> <c:out value="${row[9]}"/></display:column>
  12. </display:table>

 

I am unable to get title to print the header using <bean:message> in Line 2.

 

Any suggestions.

 

Incidentally can someone tell me how I can get lines 2 - 11 in a for loop using JSTL or <beans:iterate> where the total number of Elements is known before-hand and can be made available using the following line of code before the code-sequence shown above:

 

<% Integer i = request.getAttribute("size");

pageContext.setAttribute("i", (Object) i );

%>

 

Thanks.

 

Chetan

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to