Hello,

 

I am wondering if we can use JSF localization when generating tree2 type components from a backing bean. For example, I can use EL as follows when I have a NavigationMenuItem.

 

navMenuItem.setActionListener(“#{someBean.someMethod}”) [I know the tree isnt constructed using NavigationMenuItem, but this is an example]

 

Could I do localization using something similar?

 

For example, could I do qaNode.getChildren().add(new TreeNodeBase("document", "#{bundle.pageName}", "commonTiles.jsp", true));

 

This would mean that my tree leaves would render localized strings – very cool.

 

However, this doesn’t work – has anybody had any success with this? Or do we have to simply do Java i18n to make this work?

 

Thanks,

-Saumil

Reply via email to