Hi everyone,

I use an abstract page flow which is inherited by several concrete
page flows as follows:

package foo.bar;

@Jpf.Controller(...)
public abstract class ParentController extends ... {
  @Jpf.Action(
    forwards = { ... },
    validationErrorForward = @Jpf.Forward(name = "validation",
navigateTo = Jpf.NavigateTo.currentPage)
  )
  public Forward submitPersonalData(PersonalDataForm form) {
    ...
  }
}


package foo.bar.concrete;

@Jpf.Controller(inheritLocalPaths = true)
public class ConcreteController extends ParentController {
  ...
}


The two controllers reside in separate packages, of course, so I have
to use "inheritLocalPaths = true" to use JSP in the parent package.
The page flow works flawlessly as long as the user enters valid data.
If the form bean validation fails, I would expect the user to be
forwarded back to the input page. However, this results in an
exception as below:

org.apache.beehive.netui.pageflow.NoPreviousPageException: No relevant
page for return-to="currentPage" on action submitPersonalData in page
flow /.../.../ConcreteController.jpf.

I've tried implementing alwaysTrackPreviousPage() returning true to no avail.

Does anyone have an idea about this?

Thanks a lot in advance,
<P>

Reply via email to