Hi,

>
> Do you mean to say that all the navigation-rules have to be removed from
> the faces-config.xml since they are redirects?

no, only you have to remove <redirect/>

> What about the servlet-mapping in web.xml?
> I have changed the response.sendRedirect() to forward directive in
> index.jsp
> What more I need to change?

for servlet mapping, ensure that you app runs standalone and use the
*deploy mechanism* of you portlet container.
I've used only pluto. but for jetspeed2, I can tell you, they included
myfaces-portlet examples to their demo.

Speaking for pluto, its deployment mechanismn adds the *specific*
portlet related stuff to web.xml. For you (as the app developer) just
declare FacesServlet.

> I searched on net and I can see that jsf-myfaces-demo is a portlet war
> file that implements this but all the links are broken :(

Which one do you mean?
Jetspeed2's is working fine for me

> It would be of great help if you could send this demo application or a
> link from where I can download this.

@Stan: no idea, why the portlet stuff has been removed.
I'll put it back to the homepage asap.

but... the wiki still has your portlet stuff included.


> Thanks in advance
> -Sunil

-Matthias

>
> -----Original Message-----
> From: Stan Silvert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 18, 2006 11:30 AM
> To: MyFaces Discussion
> Cc: Tiwari, Sunil Kumar
> Subject: RE: Apache Con US 2005 - Myfaces Portlet support
>
> Yes, you do need to remove all redirects.  Portlets don't like them. :-)
>
> I attached the old portlet_quick_start document.  There are instructions
> for converting a JSF app to a JSF portlet.  I'm not sure why it is no
> longer included on the MyFaces site.
>
> Stan Silvert
> JBoss, Inc.
> [EMAIL PROTECTED]
> callto://stansilvert
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 18, 2006 1:58 PM
> > To: [email protected]
> > Cc: [EMAIL PROTECTED]
> > Subject: Apache Con US 2005 - Myfaces Portlet support
> >
> > Hi Matthias,
> >
> > I have the presentation that you have given at the ApacheCon, San
> diego.
> > One of my colleague has attended it.
> >
> > You have mentioned about the built in support for JSR 168 in myfaces
> and
> > described a set of steps to convert a myfaces web app into a portlet.
> >
> > I was trying it out but havent succeeded yet.
> >
> > You have asked to remove the redirects from faces-config.xml if any.
> > Does it include navigation rules also? I dont think so.
> >
> > My portlet.xml looks like this :
> >
> > <portlet-app id="helloWorld" version="1.0">
> >   <portlet id="helloWorld">
> >     <init-param>
> >       <name>default-view</name>
> >       <value>/helloWorld.jsp</value>
> >     </init-param>
> >     <description>helloWorld</description>
> >     <portlet-name>helloWorld</portlet-name>
> >     <display-name>helloWorld</display-name>
> >     <portlet-
> > class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
> >     <portlet-info>
> >       <title>helloWorld Portlet</title>
> >       <short-title>helloWorld</short-title>
> >     </portlet-info>
> >   </portlet>
> > </portlet-app>
> >
> > MyFacesGenericPortlet is in myfaces-impl.jar and its included in
> > WEB-INF/lib folder.
> >
> > I tried installing it on jetspeed2 portal server. The portlet was
> > installed successfully but when I try to add it to a page, I got the
> > following error message :
> >
> > ERROR org.apache.jetspeed.factory.JetspeedPortletFactory - Cannot
> create
> > Portlet instance org.apache.myfaces.portlet.MyFacesGenericPortlet
> >
> > It would be great if you could provide a sample application for this.
> >
> > I was successful in converting a myfaces web app into a portlet using
> JSF
> > bridge though.
> >
> > It would be of great help if you could explain the steps in detail for
> in
> > built support for portlet.
> >
> > Thanks,
> > Sunil
>
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

Reply via email to