This discussion is archived
3 Replies Latest reply: Sep 18, 2013 4:19 PM by RajeshKDuraisamy RSS

Problem with hidden handle methods

Lucas Newbie
Currently Being Moderated

Hello everyone,

 

I'm having a problem where I have a handle method on a hidden input and the "submitvalue" attribute set to "true". The form with this handle method is submitted via javascript/ajax.

I have done this with other forms and it works fine, but with some classes I get this error:

 

javax.servlet.ServletException: Cannot get value of property: myHandleMethod of item class MyFormHandlerClass. Path to property: MyFormHandler.myHandleMethod

 

It seems to me that the handle method is not being interpreted correctly, because when I change the input to "submit" and remove the "submitvalue" attribute, it works.

 

Any thoughts?

 

Thanks,

Lucas

Legend

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