You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!