cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject XMLForm: problem with prepare() method
Date Thu, 03 Apr 2003 09:05:30 GMT

You can see below the prepare() method of my XMLForm action:

protected Map prepare() {
  if (getCommand() == null) {
    return page(VIEW_FORM1);
  } else if (Form.lookup(getObjectModel().getFormId() == null) {
    return page(VIEW_FORM1);

My purpose is when I restart the application (when I load the first page, without command)
I want to clear the Form.

The problem is that the getCommand() method never return a null value, except when I load
the app. for the first time.

My Form has 2 pages.
The first page has a next command that call the second page.
The second page has a preview command that recall the first page (without clear the Form values)
and a next command that call the first page (a new one, where I want to clear the Form values).

Does it mean that the second page of my Form shouldn't have a command for calling a new first

Is someone has a solution?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message