myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Heinen" <...@recommind.com>
Subject dynamic key generation with EL
Date Mon, 16 Oct 2006 10:34:31 GMT
Hi,

 

I have to create a message key dynamically in JSP.

How can I do this with EL and concat expressions?

 

I have the prefix 'myApp.prefix.' and want to add a value at the end.

 

The following sample does not work:

<t:dataList var="myVar" value="#{MyBean.myList}">


<h:outputText value="#{msgs['myApp.prefix.'+myVar.value]}"/>

 

Thanks for any help

Michael


Mime
View raw message