I am trying to migrate my existing code to using Enum and I run into some problems due to my lack experience with Enum. First of all here is my structures. In my EJB
You can't access enums like that in EL. JSF has however builtin enum converters for EL. You can just use the enum name as string.
<h:commandButton value="Test" action="#{myBean.Test('PROFILE_COMMENT')}" />
In my case that helped me.
Simple compare enum to its value. EL recognize it and also check if that value exists while validating xhtml.
<c:if test="#{requestManager.selectedRequestType == 'ItemCreate' or requestManager.selectedRequestType == 'ItemChange'}"></c:if>