When running wicket-phonebook, both the "Confirm" and "Cancel" buttons
on the delete contact page say "Confirm Query" when rendered on a web
page.  Is this a bug in Link when it is used with an <input
type="button">?  Or is there a bug in wicket-phonebook?

        private void addConfimButton() {
                /*
                 * notice in mark-up this link is attached to <input 
type='button'/>
                 * tag, the link is smart enough to know to generate an onclick 
instead
                 * of href
                 */
                add(new Link("confirm", new ResourceModel("confirm")) {
                        @Override
                        public void onClick() {
                                final Contact deleted = getContact();
                                contactDao.delete(deleted.getId());
                                String msg = 
MapVariableInterpolator.interpolate(getLocalizer()
                                                .getString("status.deleted", 
this), new MicroMap(
                                                "name", deleted.getFullName()));
                                getSession().info(msg);
                                
setResponsePage(DeleteContactPage.this.backPage);
                        }
                });
        }

Thanks,
Tauren

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to