[
http://jira.jboss.com/jira/browse/JBPORTAL-1312?page=comments#action_1236... ]
Pavel Myshkin commented on JBPORTAL-1312:
-----------------------------------------
Make sure that you begin your quest for JSF portlets with the "JSF Portlet "
from
PortletSwap.com .
Generally you cannot use JSF like this:
PortletRequestDispatcher dispatcher =
getPortletContext().getRequestDispatcher("/jsp/DualReportlet.JSF");
dispatcher.include(request, response);
If you will want to extend that portlet class provided by MyFaces then better think of
your design a bit more because problems expected and also if you look into the future you
will see that there is no MyFaces in Jboss AS 4.2 +.
Urgent --- Issue creating a Portlet with JSF
--------------------------------------------
Key: JBPORTAL-1312
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1312
Project: JBoss Portal
Issue Type: Release
Security Level: Public(Everyone can see)
Components: Portal Core, Portal Portlet
Affects Versions: 2.4.1 Final
Environment: Windows
Reporter: Vijaya Kumar Aalati
Assigned To: Julien Viet
Priority: Blocker
Original Estimate: 2 weeks
Remaining Estimate: 2 weeks
Hi,
I am trying to use JSF to develop a portlet and when I load the Portlet in a page I get
an error which says:
javax.portlet.PortletException: Org.apache.jasper.JasperException:Exception in JSP
And this exception points to the line in the JSP where the <f:view> tag is defined.
I have pasted the code in my JSP below. Could some one please tell me what is wrong with
it and why I am getting the error.
I am extending the GenericPortlet to write my own Portlet class. I hope this should not
be an issue, correct? In my own Portlet class that I wrote, I am setting the
response.setContentType("text/html"). Would this cause any issue?
Thanks much,
Vijay
<%@ page language="java" session="true" %>
<%@ page import = "java.util.HashMap" %>
<%@ page import = "javax.swing.*" %>
<%@ page import = "javax.portlet.PortletSession" %>
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portlet" %>
<portlet:defineObjects/>
<portlet:actionURL var="loginAction">
<portlet:param name="command" value="doLogin" />
</portlet:actionURL>
<f:view>
</f:view>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira