Wednesday, July 18, 2007

Wicket behaviors to the rescue again

Wicket behaviors to the rescue again !

Scenario :

In my application , pages showing information about an item in the form of a table is common. These tables include checkboxes for selecting the individual items - for tracking the items for any operation like deleting.

Assume that a user selects some checkboxes to perform the delete operation. Before the server request is sent, user is prompted by a javascript alert if he wishes to change his mind.

This is where the javascript cancel comes in and this is where the magic of wicket behaviors come in to save my day.

0 comments: