incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Closing dialogs
Date Thu, 24 Aug 2006 03:45:06 GMT
A dialog can be launched purely through navigation configuration, as in

<tr:commandLink action="dialog:blah" useWindow="true" .../>
...
<navigation-rule>
   <navigation-case>
     <from-outcome>dialog:blah</from-outcome>
     <to-view-id>/some/view</to-view-id>
   </navigation-case>
</navigation-rule>

A dialog is initiated based on the from-outcome having the  
appropriate prefix; no Java code is required. As far as I can tell,  
that's not true for terminating a dialog, though; you have to call  
RequestContext.returnFromDialog() from somewhere.

Is that correct? Or is there a 'magic' outcome that can be used to do  
this implicitly, as in something like

<tr:commandLink action="dialog:CLOSE" .../>

If there isn't, would this be worth adding?

L.
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/




Mime
View raw message