@Override public Form<?> getForm() { return formComponent.getForm(); }
@Override public Form<?> getForm() { return formComponent.getForm(); }
public Form getForm() { try { return super.getForm(); } catch (WicketRuntimeException wre) { // ignore this and return null. (Form.findSubmittingComponent expects this) } return null; }
public void validate(FormComponent formComponent) { Form form = formComponent.getForm(); if (form == Form.this) { // Potentially update the model formComponent.updateModel(); } } });
@Override public void onFormComponent(final FormComponent<?> formComponent) { if (formComponent.getForm() == Form.this && formComponent.isVisibleInHierarchy()) { formComponent.valid(); } } });
/** * Retrieves the max size limit from the bound form component's parent form. * * @return max size limit in bytes */ public Bytes getMaxSize() { return getFormComponent().getForm().getMaxSize(); }
public void onFormComponent(final FormComponent formComponent) { if (formComponent.getForm() == Form.this && formComponent.isVisibleInHierarchy()) { formComponent.valid(); } } });
/** * @see Form#getValidatorKeyPrefix() * @return prefix used when constructing validator key messages */ public String getValidatorKeyPrefix() { Form<?> form = findParent(Form.class); if (form != null) { return getForm().getValidatorKeyPrefix(); } return null; }
/** * @see Form#getValidatorKeyPrefix() * @return prefix used when constructing validator key messages */ public String getValidatorKeyPrefix() { Form<?> form = findParent(Form.class); if (form != null) { return getForm().getValidatorKeyPrefix(); } return null; }
/** * @see Form#getValidatorKeyPrefix() * @return prefix used when constructing validator key messages */ public String getValidatorKeyPrefix() { Form<?> form = findParent(Form.class); if (form != null) { return getForm().getValidatorKeyPrefix(); } return null; }
/** * @see Form#getValidatorKeyPrefix() * @return prefix used when constructing validator key messages */ public String getValidatorKeyPrefix() { Form form = (Form)findParent(Form.class); if (form != null) { return getForm().getValidatorKeyPrefix(); } return null; }
/** * @see Form#getValidatorKeyPrefix() * @return prefix used when constructing validator key messages */ public String getValidatorKeyPrefix() { Form<?> form = findParent(Form.class); if (form != null) { return getForm().getValidatorKeyPrefix(); } return null; }
@Override public void validate(final FormComponent<?> formComponent) { final Form<?> form = formComponent.getForm(); if ((!(form instanceof SingularFormWicket<?>) || (SingularFormWicket.this.equals(form))) && form.isEnabledInHierarchy() && form.isVisibleInHierarchy()) { formComponent.convertInput(); } } });
@Override public void validate(final FormComponent<?> formComponent) { final Form<?> form = formComponent.getForm(); if ((!(form instanceof SingularForm<?>) || (SingularForm.this.equals(form))) && form.isEnabledInHierarchy() && form.isVisibleInHierarchy()) { formComponent.convertInput(); } } });
protected String getFormRelativePath(FormComponent<?> c) { return c.getPath().replace(c.getForm().getRootForm().getPath() + ":", StringUtils.EMPTY); }
protected String getFormRelativePath(FormComponent<?> c) { return c.getPath().replace(c.getForm().getRootForm().getPath() + ":", StringUtils.EMPTY); }
@Override public void validate(final FormComponent<?> formComponent) { final Form<?> form = formComponent.getForm(); if (form == Form.this && form.isEnabledInHierarchy() && form.isVisibleInHierarchy()) { formComponent.validate(); } } });
public void validate(final FormComponent formComponent) { final Form form = formComponent.getForm(); if (form == Form.this && form.isEnabled() && form.isEnableAllowed() && form.isVisibleInHierarchy()) { formComponent.validate(); } } });
@Override public void component(final FormComponent<?> formComponent, final IVisit<Void> visit) { Form<?> form = formComponent.getForm(); if (!form.isVisibleInHierarchy() || !form.isEnabledInHierarchy()) { // do not validate formComponent or any of formComponent's children visit.dontGoDeeper(); return; } if (formComponent.isVisibleInHierarchy() && formComponent.isEnabledInHierarchy()) { validate(formComponent); } if (formComponent.processChildren() == false) { visit.dontGoDeeper(); } }
@Override public void onClick(final AjaxRequestTarget target) { urlIsEditable = !urlIsEditable; urlComponent.modelChanging(); urlModel.setObject(getName()); urlComponent.modelChanged(); final Form<?> form = urlComponent.getForm(); if (form.hasFeedbackMessage()) { form.getFeedbackMessages().clear(); } if (!urlComponent.isValid()) { urlComponent.validate(); } target.add(this); target.add(urlComponent); target.focusComponent(urlIsEditable ? urlComponent : nameComponent); } };