Uses of Class
fc.web.forms.FormData
Packages that use FormData
Package
Description
Encapsulates HTML forms as java objects (Usage Diagram [in new window], Class Hierarchy Diagram).
-
Uses of FormData in fc.web.forms
Methods in fc.web.forms that return FormDataModifier and TypeMethodDescriptionForm.handleSubmit(HttpServletRequest req) Processes the submitted form.Form.handleSubmit(HttpServletRequest req, Connection con) This method is similar toForm.handleSubmit(jakarta.servlet.http.HttpServletRequest)except it stores the specified connection in the form data.Form.refresh(HttpServletRequest req) Form.refresh(HttpServletRequest req, Connection con) Refreshes the form for this request by running all attached refreshers and dependencies.Methods in fc.web.forms with parameters of type FormDataModifier and TypeMethodDescriptionvoidForm.addDynamicField(FormData fd, Hidden f) Adds aHiddenfield to this form.voidAdds a field level validation error message.voidConvenience method that invokesaddErrorwith an empty validationerrorKey.voidAdds a form level validation error message.voidForm.addMessage(FormData fd, String key, String value) Adds an arbitrary message for this request.DependentSelect.allowMultiple(FormData fd, boolean allow) trueif multiple selections are allowed,falseotherwise.voidDisabled this field for this particular request.voidEnables this field for this particular request.booleanAbstractText.getBooleanValue(FormData fd) Convenience method that returns the value of this field as a boolean.booleanChoice.getBooleanValue(FormData fd) Convenience method that returns the value of this field as a boolean.booleanChoiceGroup.Choice.getBooleanValue(FormData fd) Convenience method that returns the value of this choice as a boolean.booleanDependentSelect.getBooleanValue(FormData fd) Convenience method that returns the single value of this field as a boolean.booleanHidden.getBooleanValue(FormData fd) Convenience method that returns one value of this field as a boolean.booleanRadioGroup.getBooleanValue(FormData fd) Convenience method that returns the value of this field as a boolean.booleanRefreshableSelect.getBooleanValue(FormData fd) Convenience method that returns the single value of this field as a boolean.booleanSelect.getBooleanValue(FormData fd) Convenience method that returns the single value of this field as a boolean.doubleAbstractText.getDoubleValue(FormData fd) Convenience method that returns the value of this field as a Double.Form.getDynamicField(FormData fd, String fieldName) Gets aHiddenfield added to the form data object.Form.getFieldErrors(FormData fd) floatAbstractText.getFloatValue(FormData fd) Convenience method that returns the value of this field as a Float.Form.getFormErrorsCollection(FormData fd) Form.getFormErrorsFor(FormData fd, String formValidatorName) Returns a list containing all form-level errors for the specified validator.intAbstractText.getIntValue(FormData fd) Convenience method that returns the value of this field as a Integer.intChoice.getIntValue(FormData fd) Convenience method that returns the value of this field as a Integer.intDependentSelect.getIntValue(FormData fd) Convenience method that returns the single value of this field as a Integer.intHidden.getIntValue(FormData fd) Convenience method that returns one value of this field as a Integer.intRadioGroup.getIntValue(FormData fd) Convenience method that returns the value of this field as a integer.intRefreshableSelect.getIntValue(FormData fd) Convenience method that returns the single value of this field as a Integer.intSelect.getIntValue(FormData fd) Convenience method that returns the single value of this field as a Integer.Form.getMessage(FormData fd, String key) Retrieves a previously added message ornullif the speccified form data wasnullor if the message was not found.shortAbstractText.getShortValue(FormData fd) Convenience method that returns the value of this field as a Short.shortChoice.getShortValue(FormData fd) Convenience method that returns the value of this field as a Short.shortChoiceGroup.Choice.getShortValue(FormData fd) Convenience method that returns the value of this choice as a Short.shortHidden.getShortValue(FormData fd) Convenience method that returns one value of this field as a Short.AbstractText.getStringValue(FormData fd) Convenience method that returns the value of this field as a String.DependentSelect.getStringValue(FormData fd) Convenience method that returns the selected option as a String.Hidden.getStringValue(FormData fd) Convenience method that returns one value of this field as a String with null values being returned as an empty string).RadioGroup.getStringValue(FormData fd) Convenience method that returns the selected option as a String.RefreshableSelect.getStringValue(FormData fd) Convenience method that returns the selected option as a String.Select.getStringValue(FormData fd) Convenience method that returns the selected option as a String.Field.getValidateErrors(FormData fd) Returns a List of Strings containing validation errors.Returns a string representing the value of this field ornullif there is no current value.Returns the current value of this field.Returns a Collection containing the choices selected by the user.Returns a List containing the selected options.Returns a String representing the value of this field ornullif there is no current value.Returns a List containing the selected options.Returns a List containing the selected options.String[]Returns a String[] containing all values associated with this field.static booleanReturnstrueif validation did not succeed.booleanbooleanbooleanbooleanReturnstrueif some option has been selected by the user,falseotherwise.booleanReturnstrueif some option has been selected by the user,falseotherwise.abstract booleanReturnstrueif this field was isFilled out or selected by the user,falseotherwise.booleanbooleanReturnstrueif some option has been selected by the user,falseotherwise.booleanReturnstrueif some option has been selected by the user,falseotherwise.booleanChoiceGroup.isSelected(FormData fd, ChoiceGroup.Choice choice, boolean default_val) Returnstrueis the specified choice was selected by the user (the user's submission is provided by the formdata argument).booleanDependency.isSubmitDataValid(FormData fd) Returns true if the submitted values are in a valid range of values.booleanTestDependency.isSubmitDataValid(FormData fd) booleanFieldRefresher.isSubmitValid(FormData fd) There must be a way to figure out if the client hacked/delete/modified the form before submitting it.abstract booleanVConditional.postConditionMet(FormData fd, HttpServletRequest req) Subclasses should implement this method to check that certain post conditions have been met.booleanVFilledOnChoice.postConditionMet(FormData fd, HttpServletRequest req) booleanVFilledOnFilled.postConditionMet(FormData fd, HttpServletRequest req) abstract booleanVConditional.preConditionMet(FormData fd, HttpServletRequest req) Subclasses should implement this method to check that certain fields or pre-conditions have been met.booleanVFilledOnChoice.preConditionMet(FormData fd, HttpServletRequest req) booleanVFilledOnFilled.preConditionMet(FormData fd, HttpServletRequest req) abstract voidRefresh the value of the field.voidRenders this choice maintaining it's selected state by using the specified form data.voidThis method writes the HTML for this form field to the given writer.voidSimilar toField.render(FormData,Writer)but also renders the specified prefix/suffix strings before and after each element.voidDependency.renderDependencyData(FormData fd, Writer writer) Writes out data to keep track of dependency state.voidTestDependency.renderDependencyData(FormData fd, Writer out) voidForm.renderDynamicFields(FormData fd, Writer out) Renders all dynamically added hidden fields of the form.Field.renderError(FormData fd, Writer writer) CallsField.renderError(FormData, Writer)with <br> as the message seperator string.Field.renderError(FormData fd, Writer writer, String htmlSep) Convenience method to render validation errors.voidForm.renderError(FormData fd, Writer writer) Convenience method to render form-level validation errors.voidForm.renderErrorFor(FormData fd, Writer writer, String formValidatorName) Convenience method to render a validation error for a particluar form level validator.voidChoice.renderImpl(FormData fd, Writer writer) voidChoiceGroup.renderImpl(FormData fd, Writer writer) Renders all elements of this group one after onether, seperated by a whitespace.voidChoiceGroup.renderImpl(FormData fd, Writer writer, String prefix, String suffix) Renders the elements of this form by prefixing and suffixing each element with the specified arguments.voidDependentSelect.renderImpl(FormData fd, Writer writer) abstract voidField.renderImpl(FormData fd, Writer writer) voidHidden.renderImpl(FormData fd, Writer writer) voidPassword.renderImpl(FormData fd, Writer writer) voidRefreshableSelect.renderImpl(FormData fd, Writer writer) voidSelect.renderImpl(FormData fd, Writer writer) voidText.renderImpl(FormData fd, Writer writer) voidTextArea.renderImpl(FormData fd, Writer writer) voidvoidvoidDependency.setDependencyDataFromSubmit(FormData fd, HttpServletRequest req) The inverse ofDependency.renderDependencyData(fc.web.forms.FormData,java.io.Writer), sets any depedency data submitted as part of the form.voidTestDependency.setDependencyDataFromSubmit(FormData fd, HttpServletRequest req) voidRefreshableSelect.setSelectedValue(FormData fd, int value) Convenience method that invokesRefreshableSelect.setSelectedValue(fd, String)after converting the specified integer value to a string.voidRefreshableSelect.setSelectedValue(FormData fd, String value) Convenience method that sets the options for this select in the specified form data.This value (if set) is rendered as the htmlSIZEtag.voidSets the selected values for this select in the specified form data.voidConvenience method that sets this choice to be selected/non-selected.voidSets the selected or non-selected state for this choice in the specified form data.voidChoiceGroup.setValue(FormData fd, Collection values) Sets the selected values for this choicegroup in the specified form data.voidSets the selected values for this select in the specified form data.voidSets the options for this select in the specified form data.voidAbstractText.setValueFromSubmit(FormData fd, HttpServletRequest req) Sets the value of the field from the submitted form data.voidChoice.setValueFromSubmit(FormData fd, HttpServletRequest req) voidChoiceGroup.setValueFromSubmit(FormData fd, HttpServletRequest req) voidDependentSelect.setValueFromSubmit(FormData fd, HttpServletRequest req) abstract voidField.setValueFromSubmit(FormData fd, HttpServletRequest req) This method sets the value of this field from the parameters obtained from the specified request.voidHidden.setValueFromSubmit(FormData fd, HttpServletRequest req) voidRefreshableSelect.setValueFromSubmit(FormData fd, HttpServletRequest req) voidSelect.setValueFromSubmit(FormData fd, HttpServletRequest req) voidDependency.updateValues(FormData fd, HttpServletRequest req) Sets new values for target field in the FormData object.voidTestDependency.updateValues(FormData fd, HttpServletRequest req) booleanField.validate(FormData fd, HttpServletRequest req) Validates this field via the installed validators.abstract booleanFieldValidator.validate(FormData fd, HttpServletRequest req) Validates the field in some fashion.abstract booleanFormValidator.validate(FormData fd, HttpServletRequest req) Validates multiple fields together.booleanVConditional.validate(FormData fd, HttpServletRequest req) Returns the value returned byVConditional.postConditionMet(FormData, HttpServletRequest)if the pre conditions were met.booleanVDate.validate(FormData fd, HttpServletRequest req) Works with any field that returns a String via it'sAbstractText.getValue(FormData)method.booleanVEmail.validate(FormData fd, HttpServletRequest req) Works with any field that returns a String via it'sAbstractText.getValue(FormData)method.booleanVFilled.validate(FormData fd, HttpServletRequest req) Validates a field's value to be isFilled.booleanVFilledGroup.validate(FormData fd, HttpServletRequest req) booleanVPasswordGroup.validate(FormData fd, HttpServletRequest req) booleanVSameText.validate(FormData fd, HttpServletRequest req) booleanVSelectValue.validate(FormData fd, HttpServletRequest req) Works with theSelectfield.booleanVText.validate(FormData fd, HttpServletRequest req) booleanVTime.validate(FormData fd, HttpServletRequest req) Works with any field that returns a String via it'sAbstractText.getValue(FormData)method.