Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=2953506
By: gemino
has anyone got this I18n thing working with struts?
I want to use the titleKey and column attribute, therefore i have done
the following:
- added the code: <display:column titleKey="tn.name" sortable="true"> and so
on
- added the lines to the displaytag.properties:
locale.resolver =
org.displaytag.localization.I18nStrutsAdapter
locale.provider =
org.displaytag.localization.I18nStrutsAdapter
- in my ApplicationResources.properties file is defined "tn.name=Name"
But everytime i load the jsp site there is insted of Name shown "???tn.name???"
Why does this happen? I have done every step menshioned in the I18n section
of the displaytag homepage.
And another question which comes up is: How do i tell displaytag which resource
bundle to use? With struts i simply say <....bundle="images" key="img.edit"
...>. But how does this work with displaytag.
I dont want to use the solution with bean-define, since this seems not to be
a very beautiful solution ..
P.s. the displaytag.property file is found correctly, so this is not the
problem,
because Jboss says [TableProperties] LocaleResolver initialized to
org.displaytag.localization.I18nStrutsAdapter.
[TableProperties] I18nResourceProvider initialized
to org.displaytag.localization.I18nStrutsAdapter.
When initializing the application and other displaytables settings e.g.
basic.show.header=false work fine
otherwise i have to use the fmt:message solution :(
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=249317
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user