@Override public void component(final FormComponent<?> formComponent, final IVisit<Void> visit) { final String inputName = formComponent.getInputName(); if (!currentParameterNamesSet.contains(inputName)) { String[] values = FormTester.getInputValue(formComponent); for (String value : values) { postParameters.addParameterValue(inputName, value); } } } });
@Override public void component(final FormComponent<?> formComponent, final IVisit<Void> visit) { final String inputName = formComponent.getInputName(); if (!currentParameterNamesSet.contains(inputName)) { String[] values = FormTester.getInputValue(formComponent); for (String value : values) { postParameters.addParameterValue(inputName, value); } } } });
@Override public void component(final FormComponent<?> formComponent, final IVisit<Void> visit) { // do nothing for invisible or disabled component -- the browser would not send any // parameter for a disabled component if (!(formComponent.isVisibleInHierarchy() && formComponent.isEnabledInHierarchy())) { return; } String[] values = getInputValue(formComponent); if (formComponent instanceof AbstractTextComponent<?>) { if (values.length == 0 && fillBlankString) { setFormComponentValue(formComponent, ""); } } for (String value : values) { addFormComponentValue(formComponent, value); } } });
@Override public void component(final FormComponent<?> formComponent, final IVisit<Void> visit) { // do nothing for invisible or disabled component -- the browser would not send any // parameter for a disabled component if (!(formComponent.isVisibleInHierarchy() && formComponent.isEnabledInHierarchy())) { return; } String[] values = getInputValue(formComponent); if (formComponent instanceof AbstractTextComponent<?>) { if (values.length == 0 && fillBlankString) { setFormComponentValue(formComponent, ""); } } for (String value : values) { addFormComponentValue(formComponent, value); } } });