This content has been marked as final.
Show 5 replies
-
1. Re: Creating dynamic message
keithnaas Mar 7, 2008 4:00 PM (in response to jagin)Jarek,
EL is trying to do math with your strings...pretty silly don't you think?
Try doing a string concat with a JSF function. I don't believe JSTL comes with a concat. However, just follow this suggestion from James Kelly
-
2. Re: Creating dynamic message
gavin.king Mar 8, 2008 3:46 AM (in response to jagin)Yeah, either write a custom EL function, or just use:
#{messages['myEntity.name.'.concat(myEntity.name)]}
-
3. Re: Creating dynamic message
jagin Mar 10, 2008 8:03 AM (in response to jagin)#{messages['myEntity.name.'.concat(myEntity.name)]}
Hah, the simplest things are always near the corner ;) Thanks a lot.
-
4. Re: Creating dynamic message
junkie Mar 14, 2008 11:36 AM (in response to jagin)Is
concat
Seam 2? Does not seem to work with 1.2. -
5. Re: Creating dynamic message
walidkarray Jan 13, 2011 4:24 AM (in response to jagin)thx Gavin this was helpful !