Request scope works as well. I haven't tried it on JetSpeed though.
Stan Silvert
JBoss, Inc.
[EMAIL PROTECTED]
callto://stansilvert
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 18, 2006 9:26 PM
> To: MyFaces Discussion
> Subject: RE: Apache Con US 2005 - Myfaces Portlet support
>
> Yeah, the session scoped data works fine with Myfaces portlets.
> I changed the scope of managed beans from request to session in the
> faces-config and it worked fine.
>
> But if the scope of managed beans is request, then it doesnt work.
>
> I converted simple.war(taken from myfaces-1.1.1-examples) into a portlet
> and specified the default-view as /sample1.jsp in portlet.xml
>
> The page came nicely on jetspeed portal but it was losing out the request
> scoped data. Then I modified the scope of managed bean used in this jsp to
> session and it worked fine after that.
>
> The main page of simple.war is home.jsp which contains many <h:output>
> links and this page gives exceptions : portletexception.
>
> What do you think about the request scope stuff? Am I missing out
> something?
>
> Do you want me to raise it as a issue?
>
> Thanks,
> Sunil
>
>
> > In general, session scoped data works fine with MyFaces portlets. I
> > scanned the link you posted and I don't see a clear complaint. I would
> > need more to go on than "It doesn't work".
> >
> > Stan Silvert
> > JBoss, Inc.
> > [EMAIL PROTECTED]
> > callto://stansilvert
> >
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, January 18, 2006 5:36 PM
> >> To: MyFaces Discussion
> >> Subject: Re: Apache Con US 2005 - Myfaces Portlet support
> >>
> >> Thanks for your inputs.
> >> I got it working now.
> >>
> >> There were some problems related to versions of jar files in
> >> WEB-INF/lib.
> >> Moreover, it works fine even if I remove the faces-servlet mapping from
> >> web.xml
> >>
> >> Yeah, jetspeed does add portlet related stuff like portlet.tld and a
> >> servlet (JetspeedContainer) to web.xml
> >>
> >> Thanks to you and Stan for helping me get it working.
> >>
> >> I have taken the blank.war from myfaces-examples.zip(downloaded from
> >> apache site) and converted it into a portlet.
> >>
> >> But there is one problem in it. I am losing out the request scoped
> data.
> >> i.e. this simple web app asks the user to enter his name and submit. On
> >> submit it takes the user to other page displaying a greeting message
> >> with
> >> name.It works fine as a web app.
> >>
> >> But in portlet, it doesnt display the username on the second page.
> >> Somehow
> >> it loses this data.
> >>
> >> This issue has been discussed here :
> >> http://www.opensubscriber.com/message/jetspeed-
> >> [EMAIL PROTECTED]/2104804.html
> >>
> >> Is it a bug in MyFacesGenericPortlet implementation?
> >>
> >> Thanks,
> >> Sunil
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> > 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
> >> >
> >
> >