myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek" <>
Subject Re: [Trinidad] Page navigation after returning from a Trinidad Dialog
Date Sun, 27 Jan 2008 09:31:26 GMT
hello richard,

add a return listener and within the listener place the following source
    FacesContext context = FacesContext.getCurrentInstance();
context, null, "testOutcome" );

(+ don't forget to introduce an adequate navigation rule/case.)


2008/1/27, Richard Yee <>:
> Hi,
> I am invoking a Trinidad dialog in a new window from a commandButton.
>           <tr:commandButton action="dialog:showDetail" text="Next"
> useWindow="true"
>             partialSubmit="true" returnListener="#{myBacking.handleReturn
> }"
>             windowWidth="300" windowHeight="200"/>
> Is it possible to have the original page navigate to a new page after
> returning from the dialog without the user having to click on anything?
> Right now, I am calling
> RequestContext.getCurrentInstance().returnFromDialog(returnValue, null);
> from an action method that is called when the user clicks on a commandButton
> in the dialog. This causes
> the dialog window to close and control to return back to the original
> page. What I would like to have happen is that the original page be replaced
> with a page with a new view Id.
> Thanks for any help in advance.
> -Richard


Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

View raw message