This question already has an answer here:
- How to concatenate Strings in EL expression? 1 answer
I have the following el expression:
<af:outputText value="#{viewArticle.publish ? ('Publish on ' + viewArticle.publishDate + ' by ' + viewArticle.publishFirstName + ' ' + viewArticle.publishLastName) : 'Draft version'}"/>
But I am getting
java.lang.NumberFormatException: For input string: "Publish on "
How can I join the string?