• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make two submits to work serially

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a parent page which open a child page. I have a requirement where if child page <form> is submitted then after the submit process of child page completes, parent page <form> should also submitted.

I have written following code in doSubmit() of child page.



I am facing issues that both statements are getting executed parallel and hence updated data of child page is not getting displayed on parent page.

How to make this two statement to work serially?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Submit the parent form in the response of the child form.
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic