you can switch it to a button. if you want to keep the link then you need to
put a label inside and pass that model to the label.
-igor
On 8/12/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
>
> Well, it looks like it was done on 4/19/2007 by dashorst. Is this
> message enough, or should I submit a jira?
>
> Should I switch it back to Button for my application, or is there a
> way to get Link to set a value if used with <input type="button">
> markup?
>
> Tauren
>
>
> On 8/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > looks like someone changed it from a Button to a Link. the Button uses
> its
> > model to set the value attr, the link obviously doesnt. so see svn
> history
> > and who made the change, and then bug that person on the list :)
> >
> > -igor
> >
> >
> >
> > On 8/12/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> > >
> > > 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]
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>