Hi, I'm trying to figure out the following, any help will be apreciated.
I have a form with 3 TextFields , a DropDownChoice and a save button , and a BookmarkablePageLink in the page. I need to add a javascript confirm window to the Link whenever any input changed without save (submit). and remove the confirm window when the change is saved. public aPage() { form = new Form("form"); DropDownChoicequestion questions = new DropDownChoice("question", ...); form.add(questions); TextField answer1 = new RequiredTextField("answer1"); TextField answer2 = new RequiredTextField("answer2"); TextField answer3 = new RequiredTextField("answer3"); form.add(answer1); form.add(answer2); form.add(answer3); form.add(new Button("save") { @Override public void onSubmit() { saveChanges(); //remove the confirm window } } add(form); BookmarkablePageLink alink = new BookmarkablePageLink("alink", LinkPage.class)); add(alink); } -- View this message in context: http://www.nabble.com/Add-a-javascript-window-to-a-Link-when-text-input-not-saved-tp19295365p19295365.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]