Hello
i am not sure if this is the correct forum, but it seems to be the best to ask. But it could also be a portletbridge-problem.
Well, i am using JBoss 5.1 AS with GateIn 3.1.0, Seam 2.2.2.Final and Portletbridge 2.2.0 (also tried 2.1.0).
I have an existing Seam Web Project and want to show the whole project in a portlet. I tried three things, but it does never works fine.
In my xhtml-file, there are two parts, and i use for each part a method (returns a boolean) to decide which part is rendered.
1st: Set no 'rendered'-attributes manually on true/false, using rendered="#{!sessionUtil.isModified()}" and rendered="#{sessionUtil.isModified()}"
-----
10:19:00,596 SEVERE [viewhandler] Error Rendering View[/login.xhtml]
javax.faces.FacesException: javax.el.ELException: /login.xhtml @14,68 rendered="#{!sessionUtil.isModified()}": java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.RenderRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
-----
2nd: Set one 'rendered'-attribute manually on true.
Using rendered="#{true}" and rendered="#{sessionUtil.isModified()}"
-----
10:12:35,560 SEVERE [viewhandler] Error Rendering View[/login.xhtml]
javax.faces.FacesException: javax.el.ELException: /login.xhtml @56,118 rendered="#{sessionUtil.isModified()}": java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.RenderRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
-----
3rd: Set both 'rendered'-attributes manually on true/false.
-----
some code..
<rich:panel rendered="#{true}">
some more code..
<rich:panel rendered="#{false}">
some more code..
-----
Everything seems fine, but klicking on a button crashes the portlet.
-----
09:58:13,124 ERROR [SeamPhaseListenerWrapper] swallowing exception
javax.el.ELException: java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.RenderRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
much more lines
-----
When i go to myProject directly, everything works fine (localhost:8080/myProject).
You just need to ask if you need some more information. The consoleoutput is very long, so i just posted the first lines.
Oh, i remember this here:
Maybe this is important to know.
http://community.jboss.org/message/641279#641279
EDIT: problem solved, see link if interested.