how can i use a ternary operator using primefaces using jsf el to render specific text when items are null?

Got it working using the ? : ternary operator and the += concatenation operator:

User: #{!empty( ? += ' (' += userReport.selectedUser.username += ')' : userReportView.selectedUser.username}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top