Simon Kitching wrote:
Hi Ernani,

If your application always uses the same values for the f:loadBundle tag attributes (ie basename and var are always the same) then you might be able to work around this problem with a hack: write a PhaseListener, then on post-restore-view, do this:

Hmm..if ResourceBundle is thread-safe then you could even store the map wrapper for it into the application scope on webapp startup. The javadocs for ResourceBundle don't state whether it is threadsafe or not though.

Note that these hacky solutions aren't a good choice for a large and complex JSF webapp..in those cases a proper fix would be preferable.

Cheers,

Simon

Reply via email to