public Component buildComponent(String id) { return current = new JDBCConnectionPanel(id, new Model(config)); }; }, new CompoundPropertyModel(config)));
public JDBCConnectionPanel(String id, IModel<T> model) { super(id, new Model()); add(new AjaxCheckBox("jndi") { @Override protected void onUpdate(AjaxRequestTarget target) { .add(createCxPanel("cxPanel", useJNDI)).setOutputMarkupId(true)); add(new AjaxSubmitLink("cxTest") { @Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { add(feedbackPanel = new FeedbackPanel("feedback")); feedbackPanel.setOutputMarkupId(true);
@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); } });
@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));
public Component buildComponent(String id) { return current = new JDBCConnectionPanel(id, new Model(config)); }; }, new CompoundPropertyModel(config)));
@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); } });
public JDBCConnectionPanel(String id, IModel<T> model) { super(id, new Model()); add(new AjaxCheckBox("jndi") { @Override protected void onUpdate(AjaxRequestTarget target) { .add(createCxPanel("cxPanel", useJNDI)).setOutputMarkupId(true)); add(new AjaxSubmitLink("cxTest") { @Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { add(feedbackPanel = new FeedbackPanel("feedback")); feedbackPanel.setOutputMarkupId(true);
@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));
public Component buildComponent(String id) { return current = new JDBCConnectionPanel(id, new Model(config)); }; },
@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); } });
public JDBCConnectionPanel(String id, IModel<T> model) { super(id, new Model()); add( new AjaxCheckBox("jndi") { @Override add( new WebMarkupContainer("cxPanelContainer") .add(createCxPanel("cxPanel", useJNDI)) .setOutputMarkupId(true)); add( new AjaxSubmitLink("cxTest") { @Override add(feedbackPanel = new FeedbackPanel("feedback")); feedbackPanel.setOutputMarkupId(true);
public JDBCUserGroupServicePanel(String id, IModel<JDBCUserGroupServiceConfig> model) { super(id, model); add(new JDBCConnectionPanel("cx", model)); add(new CheckBox("creatingTables")); add(new TextField("propertyFileNameDDL")); add(new TextField("propertyFileNameDML")); } }
public JDBCUserGroupServicePanel(String id, IModel<JDBCUserGroupServiceConfig> model) { super(id, model); add(new JDBCConnectionPanel("cx", model)); add(new CheckBox("creatingTables")); add(new TextField("propertyFileNameDDL")); add(new TextField("propertyFileNameDML")); } }
public JDBCRoleServicePanel(String id, IModel<JDBCRoleServiceConfig> model) { super(id, model); add(new JDBCConnectionPanel("cx", model)); add(new CheckBox("creatingTables")); add(new TextField("propertyFileNameDDL")); add(new TextField("propertyFileNameDML")); } }
public JDBCUserGroupServicePanel(String id, IModel<JDBCUserGroupServiceConfig> model) { super(id, model); add(new JDBCConnectionPanel("cx", model)); add(new CheckBox("creatingTables")); add(new TextField("propertyFileNameDDL")); add(new TextField("propertyFileNameDML")); } }
public JDBCRoleServicePanel(String id, IModel<JDBCRoleServiceConfig> model) { super(id, model); add(new JDBCConnectionPanel("cx", model)); add(new CheckBox("creatingTables")); add(new TextField("propertyFileNameDDL")); add(new TextField("propertyFileNameDML")); } }
public JDBCRoleServicePanel(String id, IModel<JDBCRoleServiceConfig> model) { super(id, model); add(new JDBCConnectionPanel("cx", model)); add(new CheckBox("creatingTables")); add(new TextField("propertyFileNameDDL")); add(new TextField("propertyFileNameDML")); } }