-
1. Re: Setting to prevent URL encoding of JSF resources
kenfinni Nov 22, 2011 11:44 AM (in response to polkaudio29)To the best of my knowledge it isn't possible to do as you are asking as any resources being returned as part of a JSF Request (such as RichFaces js files) will go through the JSF lifecycle, and will thus be forced through the process of generating a URL such as above
-
2. Re: Setting to prevent URL encoding of JSF resources
polkaudio29 Nov 22, 2011 11:58 AM (in response to kenfinni)Ken, thanks for responding.
I am trying to understand why the resources that I have included locally within my web module does show up as:
<script src="/wps/PA_AppNamePortlets/js/focus.js" type="text/javascript"> on the portal and not get encoded.
where as the js files served/included by richfaces (which is also part of the same web module, even though as jars) be encoded.
I was trying this as a possible workaround to fix an issue we are facing as I have posted here: http://stackoverflow.com/questions/8219311/websphere-portal-jboss-portlet-bridge-jsf-richfaces-facelets-http-500-ok-m
-
3. Re: Setting to prevent URL encoding of JSF resources
kenfinni Nov 22, 2011 12:07 PM (in response to polkaudio29)Is your other application a JSF or JSP application?
-
4. Re: Setting to prevent URL encoding of JSF resources
polkaudio29 Nov 22, 2011 12:08 PM (in response to kenfinni)This is part of the same application. It is a JSF application using richfaces and portletbridge running on websphere portal. Its all JSF using facelets.
-
5. Re: Setting to prevent URL encoding of JSF resources
kenfinni Nov 23, 2011 8:30 AM (in response to polkaudio29)1 of 1 people found this helpfulFrom the information provided in the stackoverflow post, I suspect it's a problem with the web server proxying for Websphere, through either missing config or another problem. I don't have any knowledge of IHS so wouldn't be much help on that front.
Also, you mention that the js files are returned with HTTP 500 OK messages, 500 is not an OK message. It signifies a server error, which further leads me to a problem with IHS.
-
6. Re: Setting to prevent URL encoding of JSF resources
polkaudio29 Nov 23, 2011 11:22 AM (in response to kenfinni)Yeah, we were thinking on the same lines too. One other thing we see is that in the http logs, we see a file not found error.
It kind of makes sense as the file being server by richfaces is physically not there in the location specified, but not sure why it happens only with the portal, because when I see my other jsf app deployed directly on WAS going through the same http server does not have a problem with it.
That is the reason I was thinking if there was something that could be done on the portal side.
Thanks for the responses.
-
7. Re: Setting to prevent URL encoding of JSF resources
polkaudio29 Dec 13, 2011 3:30 PM (in response to polkaudio29)I got my issue resolved and the portlet bridge's behavior was just fine.
There is a plugin between Websphere and IHS and there is something called Edge side caching. This was enabled and after talking to IBM, they advised to disable this and that fixed our issue. So, the application works directly on portal server as well as from a web server.