-
1. how use JSF EL in Portlet ?
prabhat.jha Feb 7, 2011 12:19 PM (in response to claudio4j)Hi Claudio,
Given that you are using EPP 5.0.1, I am assuming you have support contract. Have you tried asking your question using support ticket already? You might get faster response that way.
Thanks,
Prabhat
-
2. how use JSF EL in Portlet ?
claudio4j Feb 7, 2011 12:46 PM (in response to prabhat.jha)I have not tried it yet, but will do.
Thanks Prabhat
-
3. how use JSF EL in Portlet ?
rraposa Feb 7, 2011 12:54 PM (in response to claudio4j)From looking at your code, it looks like you are trying to retrieve an init parameter. Is that defined in your portlet.xml? Or are you trying to get a servlet init param from web.xml?
Also, I think you want to use the EL syntax for the portlet session object in your JSF/Facelets page. It should look something like:
#{httpSessionScope['my_param_name']}
-
4. how use JSF EL in Portlet ?
claudio4j Feb 7, 2011 1:32 PM (in response to rraposa)Hi Rich, the issue is the session EL variable doesn't recognize the "servletContext" property ( getServletContext() method ).
Also, it is going to be hard (not impossible) to change the facelet component, provided by the customer. If EPP guys can provide some workaround to make it work, cool ! Otherwise, I will recommend to change the facelet component.
Thanks
Claudio
-
5. how use JSF EL in Portlet ?
rraposa Feb 7, 2011 1:48 PM (in response to claudio4j)If you put the following in your JSP page:
session.servletContext
then the JSP engine looks for a property named "servletContext", which is not the same thing as invoking the getServletContext method. If you look at your error, you're getting a javax.el.PropertyNotFoundException because behind-the-scenes you get:
session.getProperty("servletContext")
My guess is you are going to need to edit some code in your backing beans to make this work. I'm not sure this is an EPP issue that warrants changes made to the platform.