@Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { try { ((ConnectionPanel) JDBCConnectionPanel.this.get( "cxPanelContainer:cxPanel")) .test(); info( new StringResourceModel( "connectionSuccessful", JDBCConnectionPanel.this, null) .getObject()); } catch (Exception e) { error(e); LOGGER.log(Level.WARNING, "Connection error", e); } finally { target.add(feedbackPanel); } } }.setDefaultFormProcessing(false));
@Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { try { ((ConnectionPanel)JDBCConnectionPanel.this.get("cxPanelContainer:cxPanel")).test(); info(new StringResourceModel("connectionSuccessful",JDBCConnectionPanel.this, null).getObject()); } catch(Exception e) { error(e); LOGGER.log(Level.WARNING, "Connection error", e); } finally { target.addComponent(feedbackPanel); } } }.setDefaultFormProcessing(false));
@Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { try { ((ConnectionPanel)JDBCConnectionPanel.this.get("cxPanelContainer:cxPanel")).test(); info(new StringResourceModel("connectionSuccessful",JDBCConnectionPanel.this, null).getObject()); } catch(Exception e) { error(e); LOGGER.log(Level.WARNING, "Connection error", e); } finally { target.addComponent(feedbackPanel); } } }.setDefaultFormProcessing(false));
@Override protected void onUpdate(AjaxRequestTarget target) { WebMarkupContainer c = (WebMarkupContainer) JDBCConnectionPanel.this.get("cxPanelContainer"); //reset any values that were set ((ConnectionPanel)c.get("cxPanel")).resetModel(); //replace old panel c.addOrReplace(createCxPanel("cxPanel", getModelObject())); target.addComponent(c); } });
@Override protected void onUpdate(AjaxRequestTarget target) { WebMarkupContainer c = (WebMarkupContainer) JDBCConnectionPanel.this.get("cxPanelContainer"); //reset any values that were set ((ConnectionPanel)c.get("cxPanel")).resetModel(); //replace old panel c.addOrReplace(createCxPanel("cxPanel", getModelObject())); target.addComponent(c); } });
@Override protected void onUpdate(AjaxRequestTarget target) { WebMarkupContainer c = (WebMarkupContainer) JDBCConnectionPanel.this.get("cxPanelContainer"); // reset any values that were set ((ConnectionPanel) c.get("cxPanel")).resetModel(); // replace old panel c.addOrReplace(createCxPanel("cxPanel", getModelObject())); target.add(c); } });