Forums de discussion
Does the bridge support application to run in standalone mode.?
PortletFaces Community Member, modifié il y a 12 années.
Does the bridge support application to run in standalone mode.?
Regular Member Publications: 199 Date d'inscription: 03/04/12 Publications récentes
Hi Neil,
This is in general query that if an application running over with this bridge, is this still possible to run the application in standalone mode? I mean application is not accessed through a portal instead accessed as a web application directly? Does this support applicatios runing WSRP?
I have this question as I have a JSF2.0 application which runs over WSRP in weblogic portal. I have created a consumer application to access this aaplication as remote portlets.
When this application is accessed through portal, its fine. But If I hit the standalone application directly , I get class caste exceptions at belwo locations as these classes do not have any isPortalRequest check.
org.portletfaces.bridge.renderkit.HeadRenderer
org.portletfaces.bridge.renderkit.BodyRender
some more classes....
Here in encodeBegin or encodeEnd method, we have a call like this:
PortletRequest portletRequest = (PortletRequest) externalContext.getRequest();
This fails in classcaste exception saying
java.lang.ClassCastException: weblogic.servlet.internal.RequestEventsFilter$EventsRequestWrapper cannot be cast to javax.portlet.PortletRequest
at org.portletfaces.bridge.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:77)
I added a portal mode check in this method as shown below. In the else part, I call encodeBegin from standarad JSF's HeadRenderer
if(BridgeUtil.isPortletRequest()){
}
else{
super.encodeBegin(facesContext, uiComponent);
}
What is your opinion on this? Do you plan to support the application to run in standalone mode also ?
Thanks for providing your feedback.
This is in general query that if an application running over with this bridge, is this still possible to run the application in standalone mode? I mean application is not accessed through a portal instead accessed as a web application directly? Does this support applicatios runing WSRP?
I have this question as I have a JSF2.0 application which runs over WSRP in weblogic portal. I have created a consumer application to access this aaplication as remote portlets.
When this application is accessed through portal, its fine. But If I hit the standalone application directly , I get class caste exceptions at belwo locations as these classes do not have any isPortalRequest check.
org.portletfaces.bridge.renderkit.HeadRenderer
org.portletfaces.bridge.renderkit.BodyRender
some more classes....
Here in encodeBegin or encodeEnd method, we have a call like this:
PortletRequest portletRequest = (PortletRequest) externalContext.getRequest();
This fails in classcaste exception saying
java.lang.ClassCastException: weblogic.servlet.internal.RequestEventsFilter$EventsRequestWrapper cannot be cast to javax.portlet.PortletRequest
at org.portletfaces.bridge.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:77)
I added a portal mode check in this method as shown below. In the else part, I call encodeBegin from standarad JSF's HeadRenderer
if(BridgeUtil.isPortletRequest()){
}
else{
super.encodeBegin(facesContext, uiComponent);
}
What is your opinion on this? Do you plan to support the application to run in standalone mode also ?
Thanks for providing your feedback.
PortletFaces Community Member, modifié il y a 12 années.
RE: Does the bridge support application to run in standalone mode.?
Regular Member Publications: 199 Date d'inscription: 03/04/12 Publications récentes
Hi Neil,
It would be great if you can provide some information on this topic too
It would be great if you can provide some information on this topic too
Neil Griffin, modifié il y a 12 années.
RE: Does the bridge support application to run in standalone mode.?
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
The bridge has only been tested in local portals like Liferay and Pluto. Support for remote portals like WebLogic would fall under the scope of ICEfaces EE.
Neil Griffin, modifié il y a 11 années.