How to concatenate Strings in EL expression?
问题 I need to create a callback for <h:commandButton> while as a parameter I need to pass an argument that is string-concatenated with an external parameter id: I tried nesting an EL expression something like this: <h:commandButton ... action="#{someController.doSomething('#{id}SomeTableId')}" /> However this failed with an EL exception. What is a right syntax/approach to do this? 回答1: If you're already on EL 3.0 (Java EE 7; WildFly, Tomcat 8, GlassFish 4, etc), then you could use the new +=