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]