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

apache - setting document root in antoher partition on ubuntu -

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

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -