void handleException(Exception e, Component target) { (target != null ? target : getPage()).error(e); }
void handleException(Exception e, Component target) { (target != null ? target : getPage()).error(e); }
void goToPage(SecurityNamedServicePanelInfo pageInfo, IModel model) { //instantiate the page try { AbstractSecurityPage editPage = (AbstractSecurityPage) pageInfo .getComponentClass().getConstructor(IModel.class).newInstance(model); editPage.setReturnPage(getPage()); setResponsePage(editPage); } catch (Exception e) { throw new RuntimeException( "Unable to create page for page info: " + pageInfo, e); } }
void goToPage(SecurityNamedServicePanelInfo pageInfo, IModel model) { //instantiate the page try { AbstractSecurityPage editPage = (AbstractSecurityPage) pageInfo .getComponentClass().getConstructor(IModel.class).newInstance(model); editPage.setReturnPage(getPage()); setResponsePage(editPage); } catch (Exception e) { throw new RuntimeException( "Unable to create page for page info: " + pageInfo, e); } }
void goToPage(SecurityNamedServicePanelInfo pageInfo, IModel model) { // instantiate the page try { AbstractSecurityPage editPage = (AbstractSecurityPage) pageInfo.getComponentClass() .getConstructor(IModel.class) .newInstance(model); editPage.setReturnPage(getPage()); setResponsePage(editPage); } catch (Exception e) { throw new RuntimeException("Unable to create page for page info: " + pageInfo, e); } }
void handleException(Exception e, Component target) { Serializable msg = null; if (e instanceof SecurityConfigException) { SecurityConfigException sce = (SecurityConfigException)e; msg = new StringResourceModel("security."+sce.getErrorId(),null,sce.getArgs()).getObject(); } else { msg = e; } (target != null ? target : getPage()).error(msg); }