Package | Description |
---|---|
fc.web.forms |
Encapsulates HTML forms as java objects (Usage Diagram [in new window], Class Hierarchy Diagram).
|
Modifier and Type | Method and Description |
---|---|
Hidden |
Form.getDynamicField(FormData fd,
String fieldName)
Gets a
Hidden field added to the form data object. |
Hidden |
FormData.getDynamicField(String fieldName)
Gets a
Hidden field added to this formdata object. |
Hidden |
Form.getHidden(String name)
Returns the field with the specific name as a
Hidden . |
Hidden |
Form.getSubmittedField(javax.servlet.http.HttpServletRequest req,
String name)
Once the form is displayed to the user (with, say, hidden fields that
were added dynamically for that request), then when that form is
submitted, those dynamic fields can be retrieved via any of:
the
ServletRequest.getParameter(java.lang.String) method (often the easiest
way)
the #getSubmittedField(HttpServletRequest) method (which will
attempt to read the request parameter with the specified name and return
is as a Hidden field. |
Modifier and Type | Method and Description |
---|---|
void |
Form.addDynamicField(FormData fd,
Hidden f)
Adds a
Hidden field to this form. |
void |
FormData.addDynamicField(Hidden hidden)
Adds a
Hidden field to this form. |