Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Calling Java Clas method from OnClick event on InputText

machanNov 29 2011 — edited Jan 5 2012
Hi,

I want to call a method in the java class from the OnClick event on an inputtext. Is this possible.

Actual task is - to clear the value in the textbox onClick. If I use the script ----- onclick="this.value=''; ----- the value at the client page gets cleared but server side value in the java class stays. I want to clear the value in the java class variable as well.

Please let me know if this can be done.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2012
Added on Nov 29 2011
2 comments
827 views