|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Renders an <input type="text" .../>
tag, which is a standard html text field input form element. As with other
aribaweb form elements, also provides for mapping the input from the request back into the object from which
it came. In addition, formatting support is provided to both render and re-map the users String values into
proper objects suitable for putting back into the source object.
Bindings | |||
---|---|---|---|
value
*
|
The value attribute is used to both get and set the value from/to the source object. During renderResponse, the value is used to render a String into the outgoing response (via an optional formatter). During applyValues, the value is used to put the user's input back into the source object (after the optional formatter parses the input String into the appropriate object class). Note that, if the user dowsn't type anything into a blank field, this will put an empty string into the destination and not $null. |
Object (both) |
|
editable
|
Indicates whether the value is editable. If the binding is not supplied, a value is taken from the page environment. |
boolean (get) |
|
formatter
|
The formatter is used to convert the user's value Object into a String during renderResponse and back into an object of the appropriate subclass during applyValues. Many different types of formatters are acceptable. Implementations of AWFormatting have been done for java.text.Format, ariba.util.Formatter, and AWFormatter. |
AWFormatting (get) |
|
autoselect
|
By default, the first TextField in the page will autoselect itself using a small amount of Javascript. You can disable that via this binding, hwever if someone later places a TextField somewhere earlier in the page, then it will grab the autoselect and this attribute will not apply. |
boolean (get) |
|
onChange
|
Allows for providing your own onChange handler in JavaScript. As with all event handlers for AribaWeb based components, it is strongly recommended that you not use them as their use may conflict with internal implementation. |
String (get) |
|
action
|
Allows for enabling to submit the form with the indicated action. |
AWResponseGenerating (get) |
|
isRefresh
|
If set to true, Javascript onKeyDown handler is set to submit the enclosing form. If set to true then the onChange binding is ignored. |
boolean (get) |
|
name
|
The name attribute allows for providing your own name for the TextField. As with other AribaWeb based components in the system, it is strongly recommended that you not provide your own name as the system cannot guarantee that the name is unique across the page. |
String (get) |
|
emptyStringValue
|
The emptyStringValue attribute allows for providing a default value in the event the user doesn't enter anything in the TextField. For example, since an empty TextField will push an empty String into the object, you may want to treat this as $null. You could do this with a formatter as well, but this provides an alternative to a custom formatter. emptyStringValue does not get displayed to the user. |
Object (get) |
|
placeholder
|
Placeholder text displayed to the user when value is null or empty. Placeholder does not get push to the parent component. |
Object (get) |
|
id
|
An alternative to the 'name' binding. |
String (get) |
|
onKeyDown
|
Do not use this binding. This is documented here to prevent onKeyDown from being available in "otherBindings". |
String (get) |
|
errorKey
|
If you have a formatter binding, then the String value typed in by the user will be parsed through that formatter. Should a parse exception occur, this error key will be used to record the error, along with the errantValue, into the AWErrorManager on the AWPage. If you do not provide an errorKey, the elementId of this textfield will be used. |
Object (get) |
|
disabled
|
Disables the text field if true. |
boolean (get) |
|
behavior
|
For internal use: Allow for override of text field behavior. |
String (get) |
|
formValueStrings
|
The trimmed and untrimmed value pair. |
Object[] (set) |
|
class
|
CSS class |
String (get) |
|
size
|
INPUT size (if not specified tfW class applied, resulting in 156px wide field) |
int (get) |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.aribaweb.html.AWTextField
public class AWTextField
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent |
---|
AWComponent.RenderingFilter, AWComponent.RenderingListener |
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
---|
AWResponseGenerating.ResponseSubstitution |
Constructor Summary | |
---|---|
AWTextField()
|
Method Summary | |
---|---|
java.lang.String |
allowAutoFocus()
|
java.lang.String |
cssClass()
|
java.lang.String |
formatPlaceHolder()
|
java.lang.String |
formattedString()
|
java.lang.String |
formattedValue()
|
AWResponseGenerating |
invokeAction()
|
java.lang.String |
isDisabled()
|
boolean |
isEditable()
|
boolean |
isInHighLightedErrorScope()
|
boolean |
isSender()
|
AWEncodedString |
onBlurString()
|
AWEncodedString |
onChangeString()
|
void |
setFormValue(java.lang.String formValueString)
|
java.lang.String[] |
supportedBindingNames()
|
AWEncodedString |
textFieldId()
|
AWEncodedString |
textFieldName()
|
java.lang.String |
tfActionType()
|
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
---|
getFieldValue, isKindOfClass, setFieldValue |
Field Detail |
---|
public static final java.lang.String[] SupportedBindingNames
public AWEncodedString _elementId
public boolean _isRefresh
Constructor Detail |
---|
public AWTextField()
Method Detail |
---|
public java.lang.String[] supportedBindingNames()
supportedBindingNames
in class AWComponent
public java.lang.String formattedString()
public java.lang.String formatPlaceHolder()
public void setFormValue(java.lang.String formValueString)
public AWEncodedString textFieldName()
public AWEncodedString textFieldId()
public java.lang.String tfActionType()
public boolean isSender()
public AWResponseGenerating invokeAction()
public AWEncodedString onChangeString()
public AWEncodedString onBlurString()
public java.lang.String allowAutoFocus()
public java.lang.String formattedValue()
public java.lang.String isDisabled()
public boolean isEditable()
public java.lang.String cssClass()
public boolean isInHighLightedErrorScope()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |