jsp - Save h:outputFormat result to a variable -


currently getting labels resource bundle via

<h:outputformat value="#{labels['key']}">    <f:param value="my param1"/>    <f:param value="my param2"/> </h:outputformat> 

but how save in variable can use inline like

<i data-original-title="#{mylabel}"></i> 

i looking like

<h:outputformat var="mylabel" value="#{labels['key']}">    <f:param value="my param1"/>    <f:param value="my param2"/> </h:outputformat> 

but doesn't seem work

you can use omnifaces extension of outputformat: http://showcase.omnifaces.org/components/outputformat


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -