hi,

you can try this
http://developers.sun.com/prodtech/portalserver/reference/techart/jsf-po
rtlets.html

especially look at appendix B and C.

as for you, in portlet.xml set 

<init-param>
          <description>Portlet init page</description>
          <name>com.sun.faces.portlet.INIT_VIEW</name>
          <value>/jsp/UserLogin.jsp</value>
        </init-param>

and 

<portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>

it might help you.

roman

-----Original Message-----
From: GopalakrishnanNair, Anishkumar
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 11, 2006 5:22 AM
To: [email protected]
Subject: Portlet and JSF

Hi friends,

        I am trying to create a simple application with portlet and JSF
on Jetspeed. I have my portlet.xml and faces-config.xml configured
properly. I have defined my portlets in portlet.xml and in web.xml I
have configured FacesServlet and mapped it to the url-pattern *.htm.

        In the portlet's doView method, I forward my request to the
corresponding jsp file like
        PortletRequestDispatcher portletDispatcher =
getPortletContext().getRequestDispatcher("/jsp/UserLogin.jsp");
        portletDispatcher.include(request, response);

        And in the UserLogin.jsp file, I have the tag to load properties
file like
        <f:loadBundle var="Messages"
basename="portlet.jsf.bundle.Messages" />, it has Messages.properties
file in the correct path.

        Then when I try to call the portlet, its give me exception as
        java.lang.NullPointerException
        at
com.sun.faces.taglib.jsf_core.LoadBundleTag.doStartTag(LoadBundleTag.jav
a:96)
        at
org.apache.jsp.jsp.UserLogin_jsp._jspx_meth_f_loadBundle_0(org.apache.js
p.jsp.UserLogin_jsp:133)
        at
org.apache.jsp.jsp.UserLogin_jsp._jspService(org.apache.jsp.jsp.UserLogi
n_jsp:91)
        
        I have tried different ways to resolve it, but nothing worked.
Does anyone have any idea whats going wrong here?       Please help me. 

Thanks and Regards,
Anish..



This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to