Webwork actions, the lifecycle of variables declared in the action class.

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-04-20T13:31:26Z Indexed on 2010/04/20 13:33 UTC
Read the original article Hit count: 298

Filed under:
|
|

Hi all,

I'm using the webwork framework (JIRA plugin development) and was wondering about the lifecycle of the variables in the action class.

I have a few private variables in the action class that are set when during the doDefault() method.

These are used in the input view to set up jqGrid columns and then when the user has entered some data they click submit which puts the grid data into a hidden input.

The next thing that happens is the doValidation() method is called before the doExecute(), which displays the input view if there are any errors.

The problem is that the variables set up in the doDefault() method are now null.

Can anyone explain to me how the lifecycle of variables works in the webwork actions?

Cheers

© Stack Overflow or respective owner

Related posts about jira

Related posts about webwork