| org.araneaframework.jsp.tag.PresentationTag org.araneaframework.jsp.tag.uilib.form.BaseFormElementHtmlTag
All known Subclasses: org.araneaframework.jsp.tag.uilib.form.element.select.FormMultiSelectHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.select.FormRadioSelectItemHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.select.FormSelectHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.text.FormTextareaHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.select.FormCheckboxMultiSelectItemHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.BaseFormButtonTag, org.araneaframework.jsp.tag.uilib.form.element.date.BaseFormDateTimeInputHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.select.FormCheckboxMultiSelectHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.select.FormRadioSelectHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.FormFileUploadHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.FormHiddenInputHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.text.BaseFormTextInputHtmlTag, org.araneaframework.jsp.tag.uilib.form.element.FormCheckboxHtmlTag,
Method Summary | |
protected void | assertControlType(String type) Asserts that associated control is of given type. | protected int | doEndTag(Writer out) | public void | doFinally() | protected int | doStartTag(Writer out) | protected String | getFullFieldId() Computes field name. | protected boolean | getHasElementContextSpan() | public void | setAccessKeyId(String accessKeyId) Id of the resource specifying the accesskey for this element. | public void | setEvents(String events) | public void | setGlobalUpdateRegions(String globalUpdateRegions) | protected void | setHasElementContextSpan(boolean hasElementContextSpan) Determines whether a "context span" will surround the contents of this tag.
You should only be interested in this property if you are making a subclass of
this tag, and the tag might be used as a container for other form element tags.
Normally, each "form-element" tag surrounds its contents with a HTML <span>
tag, denoting the span of this element (this is later used to highlight element in
validation or to capture keyboard events).
These spans should not nest as this will produce problems capturing keyboard events.
(the same keypress will be captured twice: once by the child span, and once by the parent).
Therefore, if this "form-element-tag" might contain child "form-elements" (like a CheckboxMultiselect
for example), it should not have its own "context span", only its children should. | public void | setId(String id) | public void | setTabindex(String tabindex) | public void | setUpdateRegions(String updateRegions) | public void | setValidateOnEvent(String validateOnEvent) | protected void | writeBackgroundValidationAttribute(Writer out) Writes out an attribute that correctly configures background validation for formelement rendered with this tag.
Note that when application wide validation settings are the same as for that formelement, no attribute is
written out. | public static void | writeFormElementContextClose(Writer out) | public static void | writeFormElementContextOpen(Writer out, String fullFormId, String elementId, PageContext pageContext) | public static void | writeFormElementContextOpen(Writer out, String fullFormId, String elementId, boolean isPresent, PageContext pageContext) | public static void | writeFormElementContextOpen(Writer out, String fullFormId, String elementId, boolean isPresent, PageContext pageContext, String idPrefix) Write a span with random id around the element, and register this span with javascript
(done by external behavior scripts, span functions as keyboard handler). | protected void | writeFormElementValidationErrorMessages(Writer out) | public static void | writeFormElementValidityMarkers(Writer out, boolean valid, String spanId) | protected void | writeSubmitScriptForUiEvent(Writer out, String attributeName, String id, String eventId, String precondition, List updateRegions) Writes event custom attributes and submit script for attributeName. | protected void | writeSubmitScriptForUiEvent(Writer out, String attributeName) |
FORMELEMENT_SPAN_PREFIX | final public static String FORMELEMENT_SPAN_PREFIX(Code) | | since: 1.1 |
backgroundValidation | protected boolean backgroundValidation(Code) | | since: 1.1 |
events | protected boolean events(Code) | | |
globalUpdateRegions | protected String globalUpdateRegions(Code) | | |
updateRegionNames | protected List updateRegionNames(Code) | | |
validateOnEvent | protected boolean validateOnEvent(Code) | | |
assertControlType | protected void assertControlType(String type) throws JspException(Code) | | Asserts that associated control is of given type. If the
condition does not hold, throws exception.
|
doFinally | public void doFinally()(Code) | | |
getFullFieldId | protected String getFullFieldId()(Code) | | Computes field name.
|
setAccessKeyId | public void setAccessKeyId(String accessKeyId) throws JspException(Code) | | Id of the resource specifying the accesskey for this element.
Support for accesskeys is specific for each form element and is
to be implemented in each form element separately.
Usually you won't need to specify the access key for the element at all, but rather
for the element's label.
It's ok to specify null, empty string, or nothing for this property.
|
setHasElementContextSpan | protected void setHasElementContextSpan(boolean hasElementContextSpan)(Code) | | Determines whether a "context span" will surround the contents of this tag.
You should only be interested in this property if you are making a subclass of
this tag, and the tag might be used as a container for other form element tags.
Normally, each "form-element" tag surrounds its contents with a HTML <span>
tag, denoting the span of this element (this is later used to highlight element in
validation or to capture keyboard events).
These spans should not nest as this will produce problems capturing keyboard events.
(the same keypress will be captured twice: once by the child span, and once by the parent).
Therefore, if this "form-element-tag" might contain child "form-elements" (like a CheckboxMultiselect
for example), it should not have its own "context span", only its children should. (or maybe vice-versa).
Anyway, setting this value to false will disable the context span. Default is true.
Parameters: hasElementContextSpan - |
writeBackgroundValidationAttribute | protected void writeBackgroundValidationAttribute(Writer out) throws Exception(Code) | | Writes out an attribute that correctly configures background validation for formelement rendered with this tag.
Note that when application wide validation settings are the same as for that formelement, no attribute is
written out.
IMPL: writes out arn-bgValidate='booleanvalue' when necessary.
since: 1.1 |
writeFormElementContextClose | public static void writeFormElementContextClose(Writer out) throws IOException(Code) | | Closes the span opened by writeFormElementContextOpen
Parameters: out - throws: IOException - |
writeFormElementContextOpen | public static void writeFormElementContextOpen(Writer out, String fullFormId, String elementId, boolean isPresent, PageContext pageContext, String idPrefix) throws Exception(Code) | | Write a span with random id around the element, and register this span with javascript
(done by external behavior scripts, span functions as keyboard handler).
Default implementation does not use any parameters except Writer and PageContext .
|
writeFormElementValidityMarkers | public static void writeFormElementValidityMarkers(Writer out, boolean valid, String spanId) throws Exception(Code) | | since: 1.1 |
writeSubmitScriptForUiEvent | protected void writeSubmitScriptForUiEvent(Writer out, String attributeName, String id, String eventId, String precondition, List updateRegions) throws IOException(Code) | | Writes event custom attributes and submit script for attributeName.
|
|
|