JSF Multiple EL String concatenation

Reading Time: < 1 minute

Today I’ve come to experience an usual situation which did result me to concatenate two strings values exceptionally derived from different EL sources. One is derived from database/controller the other is the messages/language sources.

As you apprehend the situation from the below screenshot, Annual and Monthly values which pointed in the red color are fetched from the persistence unit, and the rest is fetched from the resources bundle.

This code snipped allowed me to bind different string sources and the outcome is shown as like below “Annual Membership” and “Monthly Membership”

 

JSF_EL_CONCAT

 

Code Snippet

 

To mind the version requirement, I’d used this implementation JSF version 2.x