File | Line |
---|
edu\drexel\cms\interceptors\NewPaperInterceptor.java | 41 |
edu\drexel\cms\interceptors\NewReviewInterceptor.java | 40 |
request.setAttribute(SessionConstants.PAPER_ATTRIBUTE, paper);
}catch (CmsDataValidationException e) {
LOG.error(getText(INVALID_DATA), e);
addErrors(ai, e.getMessage());
}
catch (Exception e) {
LOG.error(getText(PAGE_ERROR), e);
addErrors(ai, getText(PAGE_ERROR));
}
return ai.invoke();
}
private void addErrors(ActionInvocation ai, String message){
if (ai.getAction() instanceof ValidationAware) {
ValidationAware action = (ValidationAware) ai.getAction();
action.addActionError(message);
}
}
} |
File | Line |
---|
edu\drexel\cms\interceptors\ConferencePageInterceptor.java | 48 |
edu\drexel\cms\interceptors\PaperPageInterceptor.java | 46 |
if(CommonsUtils.IsDeepEmpty(reviews)){
addErrors(ai, getText(NO_RESULT_ERROR));
}
}catch (Exception e) {
LOG.error(getText(PAGE_ERROR), e);
addErrors(ai, getText(PAGE_ERROR));
}
return ai.invoke();
}
private void addErrors(ActionInvocation ai, String message){
if (ai.getAction() instanceof ValidationAware) {
ValidationAware action = (ValidationAware) ai.getAction();
action.addActionError(message);
}
}
} |