EL Expression Based on Person Type
Hi,
We received a request from the business to display a comment (HTML markup) for certain absence request type. The comment should vary based on the person's type (e.g., if the user is an employee, display comment "X"; if a contingent worker, display comment "Y").
We attempted to use the following EL expression:
#{WebCenterProfile[securityContext.userName].employeeType == 'CWK'}
However, it appears to return null. To verify this, we tested the expression without any conditions:
#{WebCenterProfile[securityContext.userName].employeeType}
This also returned null, indicating that the attribute is not being resolved correctly.
Does anyone have insights into why this expression isn’t working or how we can achieve the required functionality?
0