Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to concatenate string in el expression

3306268Oct 17 2016 — edited Oct 18 2016

Hi

I have requirement to concatenate string in el expression . e.q. 

If  amount is >0 the  it should display Name : first name last name ( where first name = XXX, last name = YYY)

Name : XXX YYY

else

Name :

I tried to form below el but that is not working.  What should be the correct el for this case?

<af:outputText value="#{bindings.amount ge '0' ? Bundle['Label.Name'] : (bindings.FirstName) ((bindings.lastName)  : Bundle['Label.Name']}"

                                 id="ot1"/>

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2016
Added on Oct 17 2016
2 comments
890 views