public WOComponent nextPage() { return nextPage(true); }
public WOComponent nextPage(boolean doConfirm) {
Object inspectConfirmConfigurationName = d2wContext().valueForKey("inspectConfirmConfigurationName");
if(doConfirm && inspectConfirmConfigurationName != null && ! "".equals(inspectConfirmConfigurationName)) {
WOComponent ipi = D2W.factory().pageForConfigurationNamed((String)inspectConfirmConfigurationName, session());
if (ipi instanceof InspectPageInterface) {
((InspectPageInterface)ipi).setObject((EOEnterpriseObject)d2wContext().valueForKey("object"));
((InspectPageInterface)ipi).setNextPageDelegate(nextPageDelegate());
((InspectPageInterface)ipi).setNextPage(super.nextPage());
}
if (ipi instanceof ERDFollowPageInterface)
((ERDFollowPageInterface)ipi).setPreviousPage(context().page());
return ipi;
}
WOComponent result = nextPageFromDelegate();
if(result == null) {
result = super.nextPage();
}
return result;
}