public class ERXWOForm extends com.webobjects.appserver._private.WOHTMLDynamicElement
enctype
into the userInfo, so that
ERXWOFileUpload
can check if it is set correctly. ERXFileUpload will
throw an exception if the enctype is not set.
secure
boolean binding that rewrites the URL
to use https
.
disabled
boolean binding allows you to omit
the form tag.
id
binding can override the name
binding.
Name | Description |
---|---|
action | Action method to invoke when this element is activated. |
actionClass | The name of the class in which the method
designated in directActionName can be found. Defaults to
DirectAction . |
addDefaultSubmitButton | Injects a submit button at the beginning of the form since some browsers will submit the form using the first nested button when the return key is pressed. Default is false unless it is set to true in the properties file. |
directActionName | The name of the direct action method
(minus the "Action" suffix) to invoke when this element is activated.
Defaults to default . |
disabled | Disabling a form omits the form element's tags from the generated html. ERXWOForm will automatically disable any nested forms and post a warning to the console if this value is not set. |
enctype | The encoding type of the form. If a form has a file upload
and this is not set to multipart/form-data then an exception is
thrown. |
fragmentIdentifier | appends "#" + the value of the binding to the action. |
href | The HTML href attribute |
id | The HTML id attribute |
method | The HTTP method used by the form. It can be get
or post |
multipleSubmit | If multipleSubmit evaluates to true , the form can have more than one submit button, each with its own action. By default, the value is false unless it is set to true in the properties file. |
name | The HTML name attribute |
queryDictionary | Takes a dictionary of values that will be submitted with the form. |
secure | Determines if the form is secured with SSL. Default is false. |
embedded | when true, a form inside of a form will still render. this is to support forms inside of ajax modal containers that are structurally nested forms, but appears as independent to the end-user |
Name | Description |
---|---|
er.extensions.ERXWOForm.multipleSubmitDefault | the default value of multipleSubmit for all forms, defaults to false |
er.extensions.ERXWOForm.addDefaultSubmitButtonDefault | whether or not a default submit button should be add to the form, defaults to false |
er.extensions.ERXWOForm.useIdInsteadOfNameTag | whether or not to use id instead of name in the form element, defaults to false |
Modifier and Type | Field and Description |
---|---|
protected WOAssociation |
_action |
protected WOAssociation |
_actionClass |
protected WOAssociation |
_addDefaultSubmitButton |
protected WOAssociation |
_directActionName |
protected WOAssociation |
_embedded |
protected WOAssociation |
_href |
protected WOAssociation |
_multipleSubmit |
protected NSDictionary |
_otherQueryAssociations |
protected WOAssociation |
_queryDictionary |
static boolean |
addDefaultSubmitButtonDefault |
static boolean |
multipleSubmitDefault |
static boolean |
useIdInsteadOfNameTag |
_associations, _class, _constantAttributeAssociations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization, _generatedId, _id, _prefix, _rendered, _secure, _style, _suffix, _title, DontEscapeHTML, EscapeHTML
_children
_ConstructorParameters
Constructor and Description |
---|
ERXWOForm(String name,
NSDictionary<String,WOAssociation> associations,
WOElement element) |
Modifier and Type | Method and Description |
---|---|
protected void |
_appendHiddenFieldsToResponse(WOResponse response,
WOContext context) |
protected void |
_clearEnctype() |
protected void |
_clearFormName(WOContext context,
String previousFormName,
boolean wasInForm) |
protected boolean |
_disabled(WOContext context) |
protected String |
_enctype(WOContext context) |
protected boolean |
_enterFormInContext(WOContext context) |
protected void |
_exitFormInContext(WOContext context,
boolean wasInForm,
boolean wasFormSubmitted) |
protected String |
_formName(WOContext context) |
protected void |
_setEnctype(String enctype) |
protected String |
_setFormName(WOContext context,
boolean wasInForm) |
protected boolean |
_shouldAppendFormTags(WOContext context,
boolean wasInForm) |
void |
appendAttributesToResponse(WOResponse response,
WOContext context) |
void |
appendChildrenToResponse(WOResponse response,
WOContext context) |
void |
appendToResponse(WOResponse response,
WOContext context) |
protected String |
cgiAction(WOResponse response,
WOContext context,
boolean secure) |
static String |
formName(WOContext context,
String defaultName)
Retrieves the current FORM's name in the supplied context.
|
WOActionResults |
invokeAction(WORequest worequest,
WOContext context) |
void |
takeValuesFromRequest(WORequest request,
WOContext context) |
String |
toString() |
__otherQueryDictionaryInContext, __queryDictionaryInContext, _appendAttributesFromAssociationsToResponse, _appendClassAndIdToResponse, _appendCloseTagToResponse, _appendOpenTagToResponse, _appendTagAttributeAndValueToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendHiddenFieldToResponse, appendNonURLAttributesToResponse, appendURLAttributesToResponse, classInContext, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributeAssociations, constantAttributesRepresentation, elementName, escapeHTML, hasContent, idInContext, isRenderedInContext, nonUrlAttributeAssociations, prefixInContext, secureInContext, stringValueInContext, styleInContext, suffixInContext, titleInContext, urlAttributeAssociations
addChildElement, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest
protected WOAssociation _action
protected WOAssociation _href
protected WOAssociation _multipleSubmit
protected WOAssociation _actionClass
protected WOAssociation _queryDictionary
protected NSDictionary _otherQueryAssociations
protected WOAssociation _directActionName
protected WOAssociation _addDefaultSubmitButton
protected WOAssociation _embedded
public static boolean multipleSubmitDefault
public static boolean addDefaultSubmitButtonDefault
public static boolean useIdInsteadOfNameTag
public ERXWOForm(String name, NSDictionary<String,WOAssociation> associations, WOElement element)
public String toString()
toString
in class com.webobjects.appserver._private.WOHTMLDynamicElement
protected boolean _enterFormInContext(WOContext context)
protected void _exitFormInContext(WOContext context, boolean wasInForm, boolean wasFormSubmitted)
protected void _setEnctype(String enctype)
protected void _clearEnctype()
public WOActionResults invokeAction(WORequest worequest, WOContext context)
invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
protected void _appendHiddenFieldsToResponse(WOResponse response, WOContext context)
public void appendChildrenToResponse(WOResponse response, WOContext context)
appendChildrenToResponse
in class com.webobjects.appserver._private.WODynamicGroup
protected String cgiAction(WOResponse response, WOContext context, boolean secure)
public void takeValuesFromRequest(WORequest request, WOContext context)
takeValuesFromRequest
in class com.webobjects.appserver._private.WODynamicGroup
protected boolean _disabled(WOContext context)
protected boolean _shouldAppendFormTags(WOContext context, boolean wasInForm)
protected void _clearFormName(WOContext context, String previousFormName, boolean wasInForm)
public void appendAttributesToResponse(WOResponse response, WOContext context)
appendAttributesToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public void appendToResponse(WOResponse response, WOContext context)
appendToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public static String formName(WOContext context, String defaultName)
context
- current contextdefaultName
- default name to useCopyright © 2002 – 2024 Project Wonder.