aspose file tools*
The moose likes Other Application Frameworks and the fly likes Wicket Framework - not able to get return value back from confirmation dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Wicket Framework - not able to get return value back from confirmation dialog" Watch "Wicket Framework - not able to get return value back from confirmation dialog" New topic
Author

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

Prafulla N. Patil
Ranch Hand

Joined: Mar 20, 2006
Posts: 106
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.






[Thumbnail for confirm.JPG]


Thanks, Prafulla Patil
SCJP, SCWCD
Prafulla N. Patil
Ranch Hand

Joined: Mar 20, 2006
Posts: 106
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.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wicket Framework - not able to get return value back from confirmation dialog
 
Similar Threads
intercepting return from JOptionPane
how to get confirmation pop-up for delete button
how to call different managed beans action dynamically ?
Returning Parameters from Javascript to Java
2 questions about confirm() and onsubmit()