Re: WOSubmitButton - AjaxSubmitButton - CCSmartButton
Re: WOSubmitButton - AjaxSubmitButton - CCSmartButton
- Subject: Re: WOSubmitButton - AjaxSubmitButton - CCSmartButton
- From: Markus Ruggiero via Webobjects-dev <email@hidden>
- Date: Wed, 2 Sep 2020 11:03:26 +0200
Dominik, I think you should include a bit more code. It is not clear when and
why a dialog should be shown . Also where should it pop up? On the current page
(stay on page and show dialog) or on the destination page? At least explain the
desired flow of action.
> On 2 Sep 2020, at 10:53, Dominik Huber via Webobjects-dev
> <email@hidden> wrote:
>
> Hey guys, my name’s Dominik, I’m Markus Ruggiero’s new intern and I’ve been
> learning the Wonders for about 6 months now.
>
> I ran into a problem while working today and am still stuck so I figured I’d
> ask the WOrriors if ou have any insight you might be able to share with me.
>
> Here’s the situation: I’m working on a form which is validated twice. If any
> problem is found, a AjayModalDialog is opened to handle it. The second
> validation
> happens in my save method and that’s where I run into trouble. Because
> depending on which of the buttons(WOSubmitButton - AjaxSubmitButton -
> CCSmartButton) I use, either the ModalDialog isn’t opened or the last line
> of the code (return _homePage) isn’t run properly so the home page isn’t
> opened.
>
> Here’s the code:
>
> <PastedGraphic-7.png>
>
> Here’s what happens with which button:
>
> WOSubmitButton : Doesn’t open the Dialog, but is able to save if there’s no
> problem and return to the homepage.
>
> AjaxSubmitButton: Opens the Dialog, saves data but doesn’t return to the
> homepage.
>
> CCSmartAjaxButton: Opens the dialog, doesnt save data, doesn’t return. to
> home page.
>
>
> Does anyone have any experience with these problems or any idea where I could
> start looking? Markus and I have been looking for bindings to use but haven’t
> found any yet.
>
> Thanks in advance for your help!
>
> Best regards,
>
>
> Dominik Huber
> rucotec consulting and technologies email
> mailto:email@hidden <mailto:email@hidden>
> rucotec GmbH web http://www.rucotec.ch
> <http://www.rucotec.ch/>
> Steinenvorstadt 79
> 4051 Basel Mobile +41 79 298 07 40
> Switzerland Phone/Fax +41 61 271 4990
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden