Class FormData
java.lang.Object
fc.web.forms.FormData
An object that contains form data submitted by a user. This object
represents the data submitted by a browser upon each time the form is
submitted. This object can then be passed along to various other methods
in the form framework as needed. This object can also be created manually
before the form is shown if default/initial values must differ per user
(say, when user must initially see their last filled value which is
retreived from a database).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDynamicField(Hidden hidden) Adds aHiddenfield to this form.getDynamicField(String fieldName) Gets aHiddenfield added to this formdata object.getValidatedData(String fieldname) voidputValidatedData(String fieldname, Object obj) Useful if strings entered by the user in the browser form are converted to dates/times etc as part of the validation.voidsetConnection(Connection con) Sets a connection to be used during this request.voidDependencies should call this method to set the dependencyUpdated flag to true anytime there is a dependency change.toString()
-
Constructor Details
-
FormData
-
FormData
public FormData()
-
-
Method Details
-
putValidatedData
Useful if strings entered by the user in the browser form are converted to dates/times etc as part of the validation. Validators can then put those date/time/whatever objects here and then those same conversions don't have to be repeated at a later stage while saving the form out to a database. -
getValidatedData
-
setConnection
Sets a connection to be used during this request. Meant primarily for refresher/dependent fields. -
getConnection
-
addDynamicField
Adds aHiddenfield to this form. This field exists only for the duration of this form data object. This field can be rendered. -
getDynamicField
Gets aHiddenfield added to this formdata object. Returns null if that field does not exist. -
setDependencyUpdated
Dependencies should call this method to set the dependencyUpdated flag to true anytime there is a dependency change. -
toString
-