This discussion is archived
2 Replies Latest reply: Jan 5, 2012 7:43 PM by 907941 RSS

Calling Java Clas method from OnClick event on InputText

machan Explorer
Currently Being Moderated
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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points