I am getting an javax.el.ELException: java.lang.Short cannot be cast to java.lang.Long for the following code:
<ui:param name="aumSegmentType" value="#{segmentSetup.userSegmentTypes[2]}" />
I am using Mojarra 2.1, facelets.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s not possible. Numbers are in EL by specification treated as
Long.If changing the map key type isn’t an option, then you need to create a method which takes a
longand casts it toshort.and use it as follows
I of course assume that your environment already supports EL 2.2. It should, given the fact that you’re using JSF 2.1.
Note that this problem is unrelated to JSF/Facelets.