jsf - How to localize a dynamic menu using PrimeFace? -


i'm trying build international application can change locale dynamically on page. i'm trying build dynamic menu labels , values change when locale changes dynamically. tried:

    menumodel = new dynamicmenumodel();      defaultsubmenu inofficemailbox = new defaultsubmenu("#{msg['inofficemailbox']}");      defaultmenuitem activeitem = new defaultmenuitem( "#{msg['activeissues']}");     activeitem.setcommand("#{mainmenumb.loadcontent('activeissues')}");     inofficemailbox.addelement(activeitem);      defaultmenuitem resolveditem = new defaultmenuitem("#{msg['resolvedissues']}");     resolveditem.setcommand("#{mainmenumb.loadcontent('resolvedissues')}");     inofficemailbox.addelement(resolveditem);             menumodel.addelement(inofficemailbox); 

but menu item come out literals "#{msg['blahblah']}". msg localization variable. el not evaluated localization doesn't work. should instead?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -