On 9/26/06, Ingo Düppe <[EMAIL PROTECTED]> wrote:

Hello,

I have defined a userActivate managed bean with a String perform() method.
This methods returns a faces outcome depending on the results during
execution.

Calling the method by /dynamic/userActivate/perform.jsf?code=XYZ works
fine, but what do I have to do that
shale evaluates the outcome of this method and displays the according
views?


Sorry for the late response (I've been in an airplane a lot in the last few
days).  But I have a basic question for you.

Why are you using Shale Remoting if you are expecting to navigate to a new
page?  The design purpose of these dynamic callbacks is to set up handlers
for an asynchronous callback (such as from XmlHTTPRequest calls in an AJAX
component).  For that scenario, Shale Remoting expects your handler to:

* Prepare the complete response (typically in XML or JSON or whatever).
 The most convenient way is to get an appropriate ResponseWriter and
 write all of the output.

* Call FacesContext.responseComplete() to indicate to JSF that you have
 already completed the response for this request, so Render Response
 phase is skipped.

On the other hand, a standard JSF request (i.e. the complete page submit) is
passed through JSF navigation in the usual way, because the purpose of the
response is to replace the *entire* page.

So, based on this, it seems like you are trying to mix things that were not
designed to be mixed.

Craig

Regards
Ingo


Reply via email to