I haven't looked at your actual code, but tbh combining a normal and
ajax request like that doesn't sound like a very good idea to me.
Can't you issue the form submit as part of a script you set in the
AjaxRequestTarget of the preparing action? Something like:

 target.appendJavaScript(myForm.getMarkupId() + "submit();");

Eelco


On 3/29/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>
> I have a scenario where I want to perform an action on the server prior to
> issuing a jsform.submit() on the client.  I had been using SubmitLink, but
> the timing was wrong because I need to tweak some data on the client BEFORE
> submitting.  I finally got the idea to "combine" AjaxLink and SubmitLink.  I
> get the onClick action on the server when the user clicks the button and I
> planned on using an AjaxCallDecorator to decorateOnSuccessScript to put the
> javascript code to submit the form (from SubmitLink).  I believe that I have
> it correct now, but I am experiencing JavaScript problems.
>
> I put together this quickstart (minus lib folder) to show the simplified
> scenario:   http://www.nabble.com/file/7527/quickstart-ajaxcalldec.zip
> quickstart-ajaxcalldec.zip
>
> calling document.getElementById('form_id') returns null when the success
> script fires.  Based upon the quickstart that I put together, I think it is
> because I am refreshing the component that is firing the event to begin
> with.  Could someone with more experience in this give it a looksee?
>
> Chuck
> --
> View this message in context: 
> http://www.nabble.com/Calling-document.getElementById-after-%22refreshing%22-the-calling-component-tf3486829.html#a9735077
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to