EL functions should work as well. Using facelets you could write a
concat function (if there isn't already one provided by JSTL). I
haven't tried it in a map syntax, but it should theoretically work:

<t:outputText value="#{messages[fn:concat(page.name, '.title')]}"/>

On 2/28/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote:
> Another thing to look at might be to have a managed bean retrieve the value 
> from the message bundle in its getter.  That makes the JSP simpler, at the 
> expense of writing some extra Java code.
>
> - Brendan
>
> -----Original Message-----
> From: Frank Felix Debatin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 28, 2006 8:07 AM
> To: 'MyFaces Discussion'
> Subject: RE: String concatenation in EL
>
>
> God, is this ugly!!!
>
> However, thanks for the info.
>
> @Andy, thanks no problem
>
> -----Original Message-----
> From: "R. Müller" [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 28, 2006 2:54 PM
> To: MyFaces Discussion
> Subject: Re: String concatenation in EL
>
> Hi,
>
> the lack of this feature is really annoying to me too -- and this issue was
> discussed here serveral times without real success.
> For me the following JSTL-approach works (but also no nice solution) :
>
> <c:set var="key" value="${page.name}'.title'" scope="request"/>
> <h:outputText value="#{treeBundle[requestScope['key']]}"/>
>
> so long :-(
>
> ronald
>
>
> Frank Felix Debatin wrote:
> > This would have a different effect. I organized the ressources with
> > keys such as "myPage.title".  So I would like to have
> >
> > #{bundle[ page.name + '.title' ] } <!-- doesn't work -->
> >
> > to be resolved to
> >
> > #{bundle[ 'myPage.title' ] }
> >
> > Thanks
> > Frank Felix
> >
> >
> >
> --
> *********************************************************
> *M-Unicomp GmbH
> *
> *Dipl.-Ing. Ronald Müller
> *Softwareentwicklung
> *
> *Plauener Straße 163-165, Haus 11
> *13053 Berlin
> *
> *fon   : +49 ( 0 ) 30  / 98 69 61 54
> *mobil : +49 ( 0 ) 172 / 93 95 00 4
> *fax   : +49 ( 0 ) 30  / 98 69 61 55
> *email : [EMAIL PROTECTED]
> *web   : www.unicomp-berlin.de
> ********************************************************
>
>
>

Reply via email to