Hello Nicolas,
I have never tested Tobago within a portlet container, it should work.
Can you send your webapp with a setup description, please. We will add
your example to the tobago examples.
Then we can play with your example to find the issue and other ones :-).
Tobago contains some code to ensure the UTF-8 encoding. Maybe this is
not allowed in a portlet container or must be handled different.
I think the root cause is missing can you look in the log file again?
Regards
Bernd
Nicolas Kalkhof wrote:
hello folks,
iŽm trying to integrate tobago 1.08-snapshot in jsr168 portlets. rendering of
the following fragment works, but after klicking a submit-button the container
throws a servletexception.
any thoughts?
best regards,
nicolas
<jsp:root xmlns:jsp = "http://java.sun.com/JSP/Page" version = "2.0"
xmlns:f = "http://java.sun.com/jsf/core"
xmlns:tc = "http://myfaces.apache.org/tobago/component">
<jsp:directive.page contentType="text/html;charset=utf-8"/>
<f:view>
<tc:page>
<f:facet name="layout">
<tc:gridLayout/>
</f:facet>
<tc:out value="Hello World"/>
<tc:button label="submit" defaultCommand="true"/>
</tc:page>
</f:view>
</jsp:root>
javax.servlet.ServletException: Cannot set character encoding after HTTP body
is accessed.
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:107)
org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:143)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.portlet.PortletException: Cannot set character encoding after HTTP body
is accessed.
org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:253)
net.portlets.logon.LogonPortlet.processAction(LogonPortlet.java:127)
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:214)
org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
org.apache.pluto.core.PortletInvoker.action(PortletInvoker.java:92)
org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:192)
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:103)
org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:143)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131