Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wicket Framework - not able to get return value back from confirmation dialog

 
Prafulla N. Patil
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to call Fun1() if user clicks on OK button in the confirmation message or call Fun2() if user clicks on Cancel button.
Right now what happening is if user clicks on Cancel nothing happens and if user clicks on OK button then onSubmit() is called.

Problem is not able to get return value from Confirm Dialog in wicket class, code is as follows, please suggest.




confirm.JPG
[Thumbnail for confirm.JPG]
 
Prafulla N. Patil
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

as there was no reply from anyone to my post and I was trying to resolve this issue whole day and finally Succeeded and resolution is as follows,

Hidden Field added into the form to populate Confirm functions return value and then it is used to call fun1 or fun2.


java code is as follows .


Problem is resolved now, we have return value in the hidden field now.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic