@Override protected T getFilterInput() { return formComponent.getConvertedInput(); }
/** * @see org.apache.wicket.validation.IValidatable#getValue() */ public Object getValue() { return getConvertedInput(); }
@Override protected ODocument getFilterInput() { return docFormComponent.getConvertedInput(); }
@Override protected String convertInputToValue() throws ConversionException { return input.getConvertedInput(); }
@Override protected String convertInputToValue() throws ConversionException { return input.getConvertedInput(); }
@Override protected Date convertInputToValue() throws ConversionException { return input.getConvertedInput(); }
@Override protected Collection<ODocument> getFilterInput() { return docsFormComponent.getConvertedInput(); }
@Override protected String convertInputToValue() throws ConversionException { return input.getConvertedInput(); }
public T getConvertedInput() { return inputComponent.getConvertedInput(); }
@Override protected List<T> getFilterInput() { List<T> collection = Lists.newArrayList(); collection.add(startComponent.getConvertedInput()); collection.add(endComponent.getConvertedInput()); return collection; }
@Override public void convertInput() { setConvertedInput(choiceComponent.getConvertedInput()); }
/** * Updates this components model from the request, it expects that the object is already * converted through the convertInput() call that is called by the validate() method when a form * is being processed. * * By default it just does this: * * <pre> * setModelObject(getConvertedInput()); * </pre> * * <strong>DO NOT CALL THIS METHOD DIRECTLY UNLESS YOU ARE SURE WHAT YOU ARE DOING. USUALLY UPDATING * YOUR MODEL IS HANDLED BY THE FORM, NOT DIRECTLY BY YOU.</strong> */ @Override public void updateModel() { setModelObject(getConvertedInput()); }
/** * Updates this components model from the request, it expects that the object is already * converted through the convertInput() call that is called by the validate() method when a form * is being processed. * * By default it just does this: * * <pre> * setModelObject(getConvertedInput()); * </pre> * * <strong>DO NOT CALL THIS METHOD DIRECTLY UNLESS YOU ARE SURE WHAT YOU ARE DOING. USUALLY UPDATING * YOUR MODEL IS HANDLED BY THE FORM, NOT DIRECTLY BY YOU.</strong> */ @Override public void updateModel() { setModelObject(getConvertedInput()); }
/** * Updates this components model from the request, it expects that the object is already * converted through the convertInput() call that is called by the validate() method when a form * is being processed. * * By default it just does this: * * <pre> * setModelObject(getConvertedInput()); * </pre> * * DO NOT CALL THIS METHOD DIRECTLY UNLESS YOU ARE SURE WHAT YOU ARE DOING. USUALLY UPDATING * YOUR MODEL IS HANDLED BY THE FORM, NOT DIRECTLY BY YOU. */ public void updateModel() { setModelObject(getConvertedInput()); }
/** * Updates this components model from the request, it expects that the object is already * converted through the convertInput() call that is called by the validate() method when a form * is being processed. * * By default it just does this: * * <pre> * setModelObject(getConvertedInput()); * </pre> * * DO NOT CALL THIS METHOD DIRECTLY UNLESS YOU ARE SURE WHAT YOU ARE DOING. USUALLY UPDATING * YOUR MODEL IS HANDLED BY THE FORM, NOT DIRECTLY BY YOU. */ public void updateModel() { setDefaultModelObject(getConvertedInput()); }
@Override public void convertInput() { int index = this.input.getConvertedInput(); List<? extends T> choices = this.choices.getObject(); if (choices != null && 0 <= index && index < choices.size()) { this.setConvertedInput(choices.get(index)); } else { this.setConvertedInput(null); } }
@Override public void convertInput() { int index = this.input.getConvertedInput(); List<? extends T> choices = this.choices.getObject(); if (choices != null && 0 <= index && index < choices.size()) { this.setConvertedInput(choices.get(index)); } else { this.setConvertedInput(null); } }
@SuppressWarnings("unchecked") public V getEnteredValue() { if(component instanceof FormComponent && ((FormComponent<V>)component).hasRawInput()) { FormComponent<V> formComponent = (FormComponent<V>)component; convertInput(formComponent); return formComponent.getConvertedInput(); } else { return getValueObject(); } }
/** * @see org.apache.wicket.markup.html.IHeaderContributor#renderHead(org.apache.wicket.markup.html.IHeaderResponse) */ public void renderHead(IHeaderResponse response) { Integer value = (Integer)this.element.getModelObject(); if (value == null) value = (Integer)this.element.getConvertedInput(); if (value == null) value = getSliderSettings().getStartValue(); response.renderOnLoadJavascript("init" + javaScriptId + "(" + value + ");"); }
@Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { //since this is not a regular form submit we have to manually update models // of form components we care about ((FormComponent)TestLDAPConnectionPanel.this.get("username")).processInput(); ((FormComponent)TestLDAPConnectionPanel.this.get("password")).processInput(); ((FormComponent)LDAPAuthProviderPanel.this.get("serverURL")).processInput(); ((FormComponent)LDAPAuthProviderPanel.this.get("useTLS")).processInput(); ((FormComponent)LDAPAuthProviderPanel.this.get("userDnPattern")).processInput(); ((FormComponent)LDAPAuthProviderPanel.this.get("userFilter")).processInput(); ((FormComponent)LDAPAuthProviderPanel.this.get("userFormat")).processInput(); String username = (String)((FormComponent)TestLDAPConnectionPanel.this.get("username")).getConvertedInput(); String password = (String)((FormComponent)TestLDAPConnectionPanel.this.get("password")).getConvertedInput(); LDAPSecurityServiceConfig ldapConfig = (LDAPSecurityServiceConfig) getForm().getModelObject(); doTest(ldapConfig, username, password); target.addComponent(getPage().get("feedback")); }