Hello all again.

I've messed around with the Tobago code for 5 hours now and have
achieved 1/2 what I want.

I can redirect to a JSF page & populate the backing bean, but...

I now have this problem with the redirect code...

The problem I have is when a commandButton on the JSF page is clicked it
makes another call to NonFacesRequestServlet servlet, rather than making
a call back into the servlet from MyFaces.

I'm sure this problem is to do with what I should be returning in the

  String getFromViewId() method. 

And what I should have in my <navigation-rule> section of
faces-config.xml.


Does anyone have any ideas?

Thank you!
Jeff.





-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2006 18:50
To: MyFaces Discussion
Subject: Re: How can I redirect from a servlet to a JSF page (that is
backed by a bean)?

If nothing else, this question has been asked enough times that
someone who's using it or has ideas how to solve it should write up a
wiki page on the topic :)

On 1/11/06, Volker Weber <[EMAIL PROTECTED]> wrote:
> Hi Jeffrey,
>
> you are in the situation to serve a Non-Faces Request to a Faces
> Response as described in the jsf 1.1 spec in section 2.1.1.
>
> Take a look at tobagos NonFacesRequestServlet [1] how this situation
> could handled.
>
> I don't know if there is somthing like this in tomahawk, could be a
> candidate for commons.jar.
>
> Regards,
>   Volker
>
> [1]:
>
http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src
/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java
?view=markup
>
> Jeffrey Porter wrote:
> >
> >
> > Hello all.
> >
> >
> >
> > I have the situation where I want to send a URL out in an email for
a
> > person to click on, so that they can then see a page in my system.
> >
> >
> >
> > Normally I'd have a backing servlet that takes the parameters in and
> > redirects to the page I want the user to view.
> >
> > But since I'm using myfaces, I don't know how to redirect to a JSF
page.
> >
> >
> >
> > In this case I'm at a complete loss to where I should start.
> >
> >
> >
> > Can some one please prod me in the correct direction.
> >
> >
> >
> > Thanks
> >
> > Jeff
> >
> >
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>

Reply via email to