On 11/08/2012, at 7:16 AM, Roger Perryman wrote:

> What is the correct way to create a wizard using AjaxModalDialog? I have a 
> page that pops up a dialog using AMD. Inside this dialog, I would like to 
> transition between pages, for example next/previous page. I've tried using 
> AjaxSubmitButtons and using the action binding but that did not work. I'm 
> thinking I could have an AjaxUpdateContainer around the contents of the 
> entire dialog component and then do a SwitchComponent upon refreshing but 
> that seems quite clunky. I was thinking that the component returned from the 
> action binding would replace the current contents.

AMD is an updatable container itself, without wrapping its contents in an AUC.

AjaxModalDialog.update(WOContext, String)

So setting some state in the action methods bound to AjaxSubmitButtons and 
calling update would allow you to make some determination on what to render 
within the AMD.

As for whether there's something that makes in nicer in Wonder, I'm not sure. 
The answer is usually yes though!

Sharpy..


> 
> I saw a brief discussion on this between Chuck, Mike and Clark Mueller back 
> in 2008. Did anything like this make it into wonder? I'm still on Wonder 5.4.
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com
> 
> This email sent to getsh...@gmail.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to