Hi,

I have the following code to create a
org.apache.wicket.markup.html.form.Button:

        Button delete = new Button("delete")
        {
            public void onSubmit()
            {
                // Delete the selected record
            }
        };
        
        delete.add(new SimpleAttributeModifier(
                "onclick", "return confirm('Delete?');"));

        form.add(delete);

On my html page I have this:
        
        <input wicket:id="delete" type="submit" value="Delete" />

When I run the application and click on the delete button, the dialog
box is not displayed and the onSubmit method is executed.  I checked the
page source and it looks like this:

<input wicket:id="delete" type="submit" value="Delete" name="delete"
id="delete4" onclick="return confirm('Delete?');"/>

What am I doing wrong?

Thanks!
Shelli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to