Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Concatinating string to EL  RSS feed

 
srinivas srini
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we prefix a string to EL expression for rich:modalpanel , something like this



wintype will be a parameterized value passed from another file and it could be "small" or "big" or "other", so for example if wintype is big then props.height_big value will be picked from props file.

props.height_ and props.width_ are the strings that should be appended.


Thanks in advance.
 
Tim Holloway
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Although a cleaner solution would be to inject wintype into backingBean and do this:



Where the height calculation is done inside backingBean based on the injected wintype.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!