cancel
Showing results for 
Search instead for 
Did you mean: 

how can I navigate from one dialog to another dialog?

esource
Champ on-the-rise
Champ on-the-rise
I am on one custom dialog and I would like to navigate to another custom dialog.  I had the impression that I could do it with :


FacesContext context = FacesContext.getCurrentInstance();
context.getApplication().getNavigationHandler().handleNavigation(context, null, "dialog:newDialog");

But this doesn't work.  Can someone tell me how to navigate between custom dialogs?
4 REPLIES 4

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
return "dialog:dialogname";

http://wiki.alfresco.com/wiki/Dialog_Framework

Hope it helps.

esource
Champ on-the-rise
Champ on-the-rise
Thank you for your post!

return "dialog:dialogname";

What do you mean?


http://wiki.alfresco.com/wiki/Dialog_Framework

Hope it helps.

Yes, I think I am using the NavigationHandler correctly.  But it doesn't seem to be finding my custom dialog to navigate to.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
in your dialog when you are executing finishImpl method you can return sutuff like "dialog:close" … and you can return like this "dialog:mydialog" . this is how this should be done, it is shorter and nicer;
so example:

finishImpl..{

if(userwants to add adinitional data) rerturn "dialog:close"
else{
return "dialog:mydialog"
}

}

esource
Champ on-the-rise
Champ on-the-rise
I see. Thank you very much for the post!