|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UIForm com.ibm.xsp.component.UIFormEx
public class UIFormEx
The superclass of XspForm (corresponding to the xp:form tag, used in the XPage source when the XPage root tag has createForm="false").
Represents an HTML form
element. Child input components will
be submitted unless they have been disabled.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.faces.component.UIComponentBase |
---|
javax.faces.component.UIComponentBase.AggregatedIterator, javax.faces.component.UIComponentBase.UnmodifiableIterator |
Nested classes/interfaces inherited from class javax.faces.component.UIComponent |
---|
javax.faces.component.UIComponent.StateMap, javax.faces.component.UIComponent.StateMapEntry |
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
RENDERER_TYPE
|
Fields inherited from class javax.faces.component.UIForm |
---|
COMPONENT_FAMILY |
Fields inherited from class javax.faces.component.UIComponentBase |
---|
EMPTY_ITERATOR |
Fields inherited from class javax.faces.component.UIComponent |
---|
_xspStateId |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
UIFormEx()
Create a new XFForm instance with default property values. |
Method Summary | |
---|---|
void |
addAttr(Attr attr)
Add an Attr , to appear as an attribute in the HTML output of this control
or object tag. |
void |
addDojoAttribute(DojoAttribute attribute)
Add a dojo attribute to the set associated with this property. |
java.util.List<Attr> |
getAttrs()
The extra attributes to be output on the base element at the root of this control or object tag. |
java.lang.String |
getAutocomplete()
Return the value of the autocomplete property. |
java.lang.String |
getDir()
Return the value of the dir property. |
java.util.List<DojoAttribute> |
getDojoAttributes()
Return the value of the dojoAttributes property. |
java.lang.String |
getDojoType()
Return the value of the dojoType property. |
java.lang.String |
getEnctype()
Return the value of the enctype property. |
java.lang.String |
getStyleKitFamily()
The styleKitFamily is basically the default themeId, to use if the "themeId" property is not set on this control instance in the XPage source. |
boolean |
isAutoForm()
Indicates if this form has been auto created by the View. |
boolean |
isNestedForm()
Defaults to false , this should be set to nestedForm="true"
when the XPage designer wants to create a form that is nested within
another HTML form. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
void |
save()
Calling this method will cause all data sources contained within this form to have their contents saved and also have the associated data model removed from the associated bean manager. |
void |
save(boolean removeFromManager)
Calling this method will cause all data sources contained within this form to have their contents saved and optionally have the associated data model removed from the associated bean manager. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAttrs(java.util.List<Attr> attrs)
This method is not used by the XPage generated .java file - instead the addAttr(Attr) method is used to add attributes to the list. |
void |
setAutocomplete(java.lang.String autocomplete)
Set the value of the autocomplete property. |
void |
setAutoForm(boolean autoForm)
Flag to indicate if this form has been auto created by the View. |
void |
setDir(java.lang.String dir)
Set the value of the dir property. |
void |
setDojoAttributes(java.util.List<DojoAttribute> dojoAttributes)
Set the value of the dojoAttributes property. |
void |
setDojoType(java.lang.String dojoType)
Set the value of the dojoType property. |
void |
setEnctype(java.lang.String enctype)
Set the value of the enctype property. |
void |
setNestedForm(boolean nestedForm)
Flag to indicate whether or not a form is a nested form. |
void |
setParent(javax.faces.component.UIComponent parent)
|
Methods inherited from class javax.faces.component.UIForm |
---|
getFamily, isSubmitted, processDecodes, processUpdates, processValidators, setSubmitted |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
_xspCleanTransientData, _xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
_xspGetStateId, _xspGetStateMap, _xspRestoreAttribute, _xspRestoreState, _xspSaveState, invokeOnComponent, isVisitable, markInitialState, setControlState, visitTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
Constructor Detail |
---|
public UIFormEx()
Method Detail |
---|
public java.lang.String getStyleKitFamily()
ThemeControl
The implementation may return different values depending on the configuration of the current control, for example the Button control returns a different value and looks different when it is configured as a cancel button.
getStyleKitFamily
in interface ThemeControl
null
themeId corresponding to the
configuration for this type of control in a theme file.public boolean isNestedForm()
false
, this should be set to nestedForm="true"
when the XPage designer wants to create a form that is nested within
another HTML form. By default nested forms cause an error to prevent the
page from displaying, as they are usually indicative of a problem, but
when this is set to true the error is avoided and the nested form is
allowed.
public void setNestedForm(boolean nestedForm)
nestedForm
- true if the form is a nested formpublic boolean isAutoForm()
public void setAutoForm(boolean autoForm)
autoForm
- true if this has been automatically createdpublic java.lang.String getDir()
Return the value of the dir
property. Contents:
Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).
public void setDir(java.lang.String dir)
Set the value of the dir
property.
public java.lang.String getAutocomplete()
Return the value of the autocomplete
property. Contents:
Disables the browser automatically complete feature for this control when set to "off"
public void setAutocomplete(java.lang.String autocomplete)
Set the value of the autocomplete
property.
public java.lang.String getDojoType()
Return the value of the dojoType
property. Contents:
Sets the default Dojo Type used to create this control in the browser.
Also, see the "dojoForm" property.
getDojoType
in interface FacesDojoComponent
UIViewRootEx.isDojoForm()
public void setDojoType(java.lang.String dojoType)
Set the value of the dojoType
property.
public java.util.List<DojoAttribute> getDojoAttributes()
Return the value of the dojoAttributes
property. Contents:
A list of Dojo attributes
getDojoAttributes
in interface FacesDojoComponent
public void addDojoAttribute(DojoAttribute attribute)
action
- public void setDojoAttributes(java.util.List<DojoAttribute> dojoAttributes)
Set the value of the dojoAttributes
property.
public java.util.List<Attr> getAttrs()
null
. The addAttr(Attr)
method should be used to add an Attr
.
getAttrs
in interface FacesAttrsObject
public void addAttr(Attr attr)
Attr
, to appear as an attribute in the HTML output of this control
or object tag.
addAttr
in interface FacesAttrsObject
action
- public void setAttrs(java.util.List<Attr> attrs)
addAttr(Attr)
method is used to add attributes to the list.
public void setParent(javax.faces.component.UIComponent parent)
setParent
in class javax.faces.component.UIComponentBase
public void save() throws javax.faces.FacesException
javax.faces.FacesException
public void save(boolean removeFromManager) throws javax.faces.FacesException
javax.faces.FacesException
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
public java.lang.String getEnctype()
Return the value of the enctype
property. Contents:
Content type used to submit the form to the server. If not specified, the default value is "multipart/form-data".
public void setEnctype(java.lang.String enctype)
Set the value of the enctype
property.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |