• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic