Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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