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 com.webobjects.appserver.WOAssociation |
_action |
protected com.webobjects.appserver.WOAssociation |
_actionClass |
protected com.webobjects.appserver.WOAssociation |
_addDefaultSubmitButton |
protected com.webobjects.appserver.WOAssociation |
_directActionName |
protected com.webobjects.appserver.WOAssociation |
_embedded |
protected com.webobjects.appserver.WOAssociation |
_href |
protected com.webobjects.appserver.WOAssociation |
_multipleSubmit |
protected NSDictionary |
_otherQueryAssociations |
protected com.webobjects.appserver.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
Constructor and Description |
---|
ERXWOForm(String name,
NSDictionary<String,com.webobjects.appserver.WOAssociation> associations,
com.webobjects.appserver.WOElement element) |
Modifier and Type | Method and Description |
---|---|
protected void |
_appendHiddenFieldsToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context) |
protected void |
_clearEnctype() |
protected void |
_clearFormName(com.webobjects.appserver.WOContext context,
String previousFormName,
boolean wasInForm) |
protected boolean |
_disabled(com.webobjects.appserver.WOContext context) |
protected String |
_enctype(com.webobjects.appserver.WOContext context) |
protected boolean |
_enterFormInContext(com.webobjects.appserver.WOContext context) |
protected void |
_exitFormInContext(com.webobjects.appserver.WOContext context,
boolean wasInForm,
boolean wasFormSubmitted) |
protected String |
_formName(com.webobjects.appserver.WOContext context) |
protected void |
_setEnctype(String enctype) |
protected String |
_setFormName(com.webobjects.appserver.WOContext context,
boolean wasInForm) |
protected boolean |
_shouldAppendFormTags(com.webobjects.appserver.WOContext context,
boolean wasInForm) |
void |
appendAttributesToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context) |
void |
appendChildrenToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context) |
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context) |
protected String |
cgiAction(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context,
boolean secure) |
static String |
formName(com.webobjects.appserver.WOContext context,
String defaultName)
Retrieves the current FORM's name in the supplied context.
|
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest worequest,
com.webobjects.appserver.WOContext context) |
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.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
protected com.webobjects.appserver.WOAssociation _action
protected com.webobjects.appserver.WOAssociation _href
protected com.webobjects.appserver.WOAssociation _multipleSubmit
protected com.webobjects.appserver.WOAssociation _actionClass
protected com.webobjects.appserver.WOAssociation _queryDictionary
protected NSDictionary _otherQueryAssociations
protected com.webobjects.appserver.WOAssociation _directActionName
protected com.webobjects.appserver.WOAssociation _addDefaultSubmitButton
protected com.webobjects.appserver.WOAssociation _embedded
public static boolean multipleSubmitDefault
public static boolean addDefaultSubmitButtonDefault
public static boolean useIdInsteadOfNameTag
public ERXWOForm(String name, NSDictionary<String,com.webobjects.appserver.WOAssociation> associations, com.webobjects.appserver.WOElement element)
public String toString()
toString
in class com.webobjects.appserver._private.WOHTMLDynamicElement
protected boolean _enterFormInContext(com.webobjects.appserver.WOContext context)
protected void _exitFormInContext(com.webobjects.appserver.WOContext context, boolean wasInForm, boolean wasFormSubmitted)
protected String _enctype(com.webobjects.appserver.WOContext context)
protected void _setEnctype(String enctype)
protected void _clearEnctype()
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext context)
invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
protected void _appendHiddenFieldsToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
public void appendChildrenToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
appendChildrenToResponse
in class com.webobjects.appserver._private.WODynamicGroup
protected String cgiAction(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context, boolean secure)
public void takeValuesFromRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
takeValuesFromRequest
in class com.webobjects.appserver._private.WODynamicGroup
protected String _formName(com.webobjects.appserver.WOContext context)
protected boolean _disabled(com.webobjects.appserver.WOContext context)
protected boolean _shouldAppendFormTags(com.webobjects.appserver.WOContext context, boolean wasInForm)
protected String _setFormName(com.webobjects.appserver.WOContext context, boolean wasInForm)
protected void _clearFormName(com.webobjects.appserver.WOContext context, String previousFormName, boolean wasInForm)
public void appendAttributesToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
appendAttributesToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
appendToResponse
in class com.webobjects.appserver._private.WOHTMLDynamicElement
public static String formName(com.webobjects.appserver.WOContext context, String defaultName)
context
- current contextdefaultName
- default name to useCopyright © 2002 – 2020 Project Wonder.