If you use the EL version, and define the JSTL Bundle attribute in web.xml, then you can use the "titleKey" attribute to refer to your ResourceBundle. It works quite nicely IMO.

For the web.xml, you simply need to add the following:

<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>ApplicationResources</param-value>
</context-param>


Where ApplicationResources is the name of your default bundle.

Matt

On May 19, 2004, at 2:30 PM, [EMAIL PROTECTED] wrote:

hmmm. I like displaytag because it cuts down my jsp's size and adds readabiliy. adding all that just for titles goes a bit against that advantages doesn't it?
If you ask me, I think some sort of decorator for column titles would be very nice. (That way, you'd be able to use whatever i18n system you like by simply pluging it in)


Any other ideas ?

g

Paul McCulloch wrote:

I think that the EL version of the tag has built in support for using keys
for column titles.


In the past I have tended to define an attribute with the i18n'ed text in
it:


<bean:define id="priorityHeading">
        <fmt:message key="event.monitor.results.priority.label"/>
</bean:define>

and use this with my column as an rt expression:

<display:column title="<%=priorityHeading%>">


Paul


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 19 May 2004 18:04
To: [EMAIL PROTECTED]
Subject: [displaytag-user] translations for column titles


Hi list,

I was wondering if there was a standard/prefered way to have internationalized column titles?

Thanks for any tip!


greg
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu





**********************************************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused.
**********************************************************************




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user





-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user



------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to