-
1. Re: Problems with Liferay, JBoss, JSF 1.2 and Portlet Bridge 2
maggus Oct 6, 2011 5:51 AM (in response to ridcully) -
2. Re: Problems with Liferay, JBoss, JSF 1.2 and Portlet Bridge 2
ridcully Oct 7, 2011 11:37 AM (in response to ridcully)We have investigate much deeper into the bridge and found the problem.
The org.jboss.portletbridge.context.PortletExternalContextImpl.dispatch(String) method has changed the dispatcher call from include to forward and because of this we got an broken jspUrl in the JSPServlet.
Now we test a custom FacesContextFactoryImpl which patch the PortletExternalContextImpls with a modified dispatch method. e.g.:
externalContext = new EventRequestExternalContextImpl(
(PortletContext) context, (EventRequest) request,
(EventResponse) response)
{
public void dispatch(String path) throws IOException {
if (null == path) {
throw new NullPointerException("Path to new view is null");
}
PortletRequestDispatcher dispatcher = getContext()
.getRequestDispatcher(path);
if (null == dispatcher) {
throw new IllegalStateException(
"Dispatcher for render request is not created");
}
try {
dispatcher.include(getRequest(), getResponse());
} catch (PortletException e) {
throw new FacesException(e);
} finally {
}
}
};
Maybe someone has a better patch and hopefully a solution for our second issue?
Best regards