From: gavinc <nu...@jb...> - 2005-05-11 08:16:46
|
I tried the filter dispatcher tip you mentioned Stan but unfortunately it didn't work as expected. The filter does now get called but it obviously does something to the request that MyFaces doesn't like as all I get on my page is the word "null"!! I have also remembered another minor issue we ran into with the MyFaces/Portal integration. Before switching over we were able to re-deploy our portlet application but we now get an error. When I turned on debugging I also noticed that MyFaces seems to get initialised twice, so I don't know if this has anything to do with it? It seems you have to have the context listener entry in your web.xml otherwise you get errors when starting the app but when the MyFacesGenericPortlet initialises it also configures MyFaces. It is at this point in the re-deploy that we get the stack trace below: java.lang.IllegalArgumentException: Class org.apache.myfaces.application.ActionListenerImpl is no javax.faces.event.ActionListener at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:560) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:464) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:215) at org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(MyFacesGenericPortlet.java:177) at org.apache.myfaces.portlet.MyFacesGenericPortlet.init(MyFacesGenericPortlet.java:120) at javax.portlet.GenericPortlet.init(GenericPortlet.java:342) at org.jboss.portal.portlet.PortletContainer.start(PortletContainer.java:129) One final question, do you plan on putting any error handling mechanism into MyFacesGenericPortlet so that if an error gets thrown we can configure a JSF page to get displayed? (rather than the portlet showing a large stack trace) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877298#3877298 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877298 |