String confirmConfigurationName=(String)d2wContext().valueForKey("confirmConfigurationName"); if(confirmConfigurationName!=null){ ConfirmPageInterface nextPage = (ConfirmPageInterface)D2W.factory().pageForConfigurationNamed(confirmConfigurationName,session());
String confirmDeleteConfigurationName=(String)d2wContext().valueForKey("confirmDeleteConfigurationName"); if(confirmDeleteConfigurationName!=null){ ConfirmPageInterface nextPage = (ConfirmPageInterface)D2W.factory().pageForConfigurationNamed(confirmDeleteConfigurationName,session());
    public WOComponent deleteObjectAction() {        // FIXME: Shouldn't ave a hard dependency on names here.        String confirmConfigurationName=(String)d2wContext().valueForKey("confirmConfigurationName");        if(confirmConfigurationName!=null){            ConfirmPageInterface nextPage = (ConfirmPageInterface)D2W.factory().pageForConfigurationNamed(confirmConfigurationName,session());            nextPage.setConfirmDelegate(new ERDDeletionDelegate(object(),dataSource(),context().page()));            nextPage.setCancelDelegate(new ERDDeletionDelegate(null,null,context().page()));            if(nextPage instanceof ERD2WInspectPage) {                ((ERD2WInspectPage)nextPage).setObject(object());            } else {                nextPage.setMessage("<B>Are you sure you want to delete the following "+d2wContext().valueForKey("displayNameForEntity")+"</B>:<br> "+object().userPresentableDescription()+ " ?");            }            return (WOComponent) nextPage;        } else {            ConfirmPageInterface nextPage = (ConfirmPageInterface)pageWithName("ERD2WConfirmPageTemplate");            nextPage.setConfirmDelegate(new ERDDeletionDelegate(object(),dataSource(),context().page()));            nextPage.setCancelDelegate(new ERDDeletionDelegate(null,null,context().page()));            nextPage.setMessage("<B>Are you sure you want to delete the following "+d2wContext().valueForKey("displayNameForEntity")+"</B>:<br> "+object().userPresentableDescription()+ " ?");            return (WOComponent) nextPage;        }    }