Hi Andrew, thanks for the note. I think this is by far the best solution.
Here is what worked for me (the JSP 2.5 and Facelets docs are not very good on this). I added "META-INF/bamboo.taglib.xml" with the following contents: <?xml version="1.0"?> <!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" "http://java.sun.com/dtd/facelet-taglib_1_0.dtd"> <facelet-taglib xmlns="http://java.sun.com/JSF/Facelet"> <namespace>http://bamboo-ag.com/helpers</namespace> <function> <function-name>concat</function-name> <function-class>bamboo.util.LittleHelpers</function-class> <function-signature> java.lang.String concat(java.lang.String, java.lang.String) </function-signature> </function> </facelet-taglib> then <html xmlns:bb="http://bamboo-ag.com/helpers" ...> ... #{bb:concat("it ", "works")} worked as expected. Frank Felix > -----Original Message----- > From: Andrew Robinson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 28, 2006 6:17 PM > To: MyFaces Discussion > Subject: Re: String concatenation in EL > > 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 > > ******************************************************** > > > > > > > >

