[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1312) Urgent --- Issue creating a Portlet with JSF

Vijaya Kumar Aalati (JIRA) jira-events at lists.jboss.org
Thu Mar 8 10:03:26 EST 2007


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


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

        



More information about the jboss-jira mailing list