Re: Creating an AjaxModalDialog wizard

2012-08-13 Thread Michael Sharp
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


Re: Creating an AjaxModalDialog wizard

2012-08-12 Thread Chuck Hill
Mike did add something to Wonder.  It was sort of "works they way that people 
expect AMD to work".  For the life of me I can't recall what it was called or 
where it ended up.  I have never used it.


Chuck


On 2012-08-10, at 2:16 PM, 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.
> 
> 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/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects









 ___
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


Creating an AjaxModalDialog wizard

2012-08-10 Thread Roger Perryman
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.

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/archive%40mail-archive.com

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