struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Lipscombe <adam.lipsco...@expensys.com>
Subject Is it possible to paramterize calls to form bean getters?
Date Thu, 01 Feb 2007 11:51:38 GMT
Folks


I need to internationalize an app - returning Locale specific formats for currency and date.

One way to do that is to add getLocalised<PropertyName>() and setLocalised<PropertyName>()
to the 
formbeans for each affected property. These methods will then apply whatever formatting is
needed.

But, for the <bean:write> tag to work this involves having an extra getter/setter for
each property 
that needs localisation.


Is there anyway round this? Is there an accepted solution?


TIA - Adam



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message