Yes...and the right way to do it is not using ajaxlink, but using
AjaxFormComponentUpdatingBehaviour("onclick")

I tried this on FF, and the mouse events are accepted in text
fields...according to the page, accepted in all tags except: base, bdo, br,
frame, frameset, head, html, iframe, meta, param, script, style, title

You should check the page
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_input and try
things on the go

Rgds,
Christian

On 2/20/08, Nick Heudecker <[EMAIL PROTECTED]> wrote:
>
> I think just onfocus, onblur and possibly onchange.
>
> On Wed, Feb 20, 2008 at 5:14 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
>
>
> > input type="textfield" doesnt have an onclick event afaik...
> >
> > -igor
> >
> >
> > On Tue, Feb 19, 2008 at 6:28 PM, givp <[EMAIL PROTECTED]> wrote:
> > >
> > >  Hi,
> > >
> > >  Sorry for the newbie query. I currently have a form text field and I
> > want to
> > >  also be able to click on the field and do other stuff. I'm doing this
> > right
> > >  now but it's obviously not working. Can anyone point me to the right
> > >  direction?
> > >
> > >
>
> >  //////////////////////////////////////////////////////////////////////////
> > >
> > >  Form statusForm = new Form("statusForm");
> > >
> > >  statusText = new TextField("statusText", new Model());
> > >
> > >  // make clicking on the text field do something
> > >  statusText.add(new AjaxLink(this.getId()) {
> > >
> > >       public void onClick(AjaxRequestTarget ajaxRequestTarget) {
> > >              // do something here!
> > >       }
> > >  });
> > >
> > >  statusForm.add(statusText);
> > >
> > >  add(statusForm);
> > >
> > >  //////////////////////////////////////////////////////////////////
> > >
> > >  Thanks
> > >  G
> > >  --
> > >  View this message in context:
> >
> http://www.nabble.com/Adding-onClick-event-to-form-fields-tp15580983p15580983.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]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>
> Eventful - Intelligent Event Management
> http://www.eventfulhq.com
>

Reply via email to