You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by SR...@dstsystems.com on 2005/11/10 18:38:02 UTC

Empty Portlet

Hi all,
  I am trying to create MyFaces application where I am going to use 
Calendar object which is available in tomahawk.jar. I have set up the 
application by putting in the required jar files, configured the web.xml 
and portlet.xml with necessary changes. When I try to run this 
application, it leads me to an empty portlet. Can somebody please guide me 
to get to the right page.
This is the code I have in portlet.xml to go to the default-view
                <portlet-class>
                        org.apache.myfaces.portlet.MyFacesGenericPortlet
                </portlet-class>
                <init-param>
                        <name>default-view</name>
                        <value>/index.jsp</value>
                </init-param>
                <init-param>
                        <name>ViewPage</name>
                        <value>/index.jsp</value>
                </init-param>


In web.xml, the servlet mapping I have is... 

    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>org.apache.myfaces.webapp.MyFacesServlet</
servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

     <!-- extension mapping -->
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

Any help is appreciated
Thanks 
Latha




-----------------------------------------
This e-mail and any attachments are intended only for the individual or
company to which it is addressed and may contain information which is
privileged, confidential and prohibited from disclosure or unauthorized use
under applicable law.  If you are not the intended recipient of this
e-mail, you are hereby notified that any use, dissemination, or copying of
this e-mail or the information contained in this e-mail is strictly
prohibited by the sender.  If you have received this transmission in error,
please return the material received to the sender and delete all copies
from your system.