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.
I have not tried it yet, but will do.
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:
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.
If you put the following in your JSP page:
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:
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.