You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by pr...@polaris.co.in on 2005/09/06 07:33:44 UTC

FW: JSF application as portlet on J2 using jsf-portlet.jar provided by SUN

Hello,

I am trying to port a JSF application as a Portlet on to JetSpeed 2
using the jsf-portlet.jar provided by Sun Java. As per the logs I was
successfully able to initialise the portlet and get it started. However,
when I included the portlet on a Portal page in JetSpeed 2 only the
title of the portlet was shown, the body was missing. The logs shows no
exception. If someone has thoughts on what could be wrong, kindly
apprise.

The portlet.xml and web.xml of my application.
<portlet-app id="java-portlet-demo"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version="1.0"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.x
sd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
<portlet id="SJ-TxnPerfStat">
		<description>TxnStat based on JSF-portlet.jar provided
by SUN Java</description>
		<portlet-name>SJ-TxnPerfStat</portlet-name>
		<display-name>Txn Perf Stat using
JSF-portlet</display-name>

<portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
		<init-param>
			<description>Portlet Init Page</description>
			<name>com.sun.faces.portlet.INIT_VIEW</name>
			<value>/txnCriteria.jsp</value>
		</init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
			<portlet-mode>EDIT</portlet-mode>
			<portlet-mode>HELP</portlet-mode>
		</supports>
		<portlet-info>
			<title>TxnPerfStat using jsf-portlet</title>
			<short-title>TxnPerfStat (j-p)</short-title>
			<keywords>JPCriteria, JPStatistics</keywords>
		</portlet-info>
    </portlet>
    </portlet-app>

<webapp>
<context-param>
	<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
	<param-value>client</param-value>
</context-param>
<context-param>
	<param-name>javax.faces.application.CONFIG_FILES</param-name>
	<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
	<param-name>com.sun.faces.validateXml</param-name>
	<param-value>true</param-value>
</context-param>
<servlet>
	<servlet-name>Faces Servlet</servlet-name>
	<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
	<load-on-startup>1</load-on-startup>
</servlet>
 <servlet>
    <servlet-name>JetspeedContainer</servlet-name>
    <display-name>Jetspeed Container</display-name>
    <description>MVC Servlet for Jetspeed Portlet
Applications</description>

<servlet-class>org.apache.jetspeed.container.JetspeedContainerServlet</s
ervlet-class>
    <init-param>
      <param-name>contextName</param-name>
      <param-value>java-portlet-demo</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>
<servlet-mapping>
	<servlet-name>Faces Servlet</servlet-name>
	<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
    <servlet-name>JetspeedContainer</servlet-name>
    <url-pattern>/container/*</url-pattern>
  </servlet-mapping>
</web-app>

Jars in the application/WEB-INF/lib folder commons-beanutils-1.6.1,
commons-digester-1.5, jsf-api, jsf-impl, jsf-portlet, jstl, standard

Thanks in advance.

priya


This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.
If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in