er.ajax
Class AjaxTextHinter
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
er.ajax.AjaxTextHinter
- All Implemented Interfaces:
- IAjaxElement
public class AjaxTextHinter
- extends AjaxDynamicElement
Hints input and textarea fields with ghosted text that serves as an explanation for the user what to enter.
The style "ajax-hinted-text-with-default" defines the color for this.
The default value for the field comes from setting default = "something"; on the input element. For instance,
to set the default value on a text field, you would do .
HTML:
<webobject name="Form">
<webobject name="SomeText" />
</webobject>
<webobject name="TextHinter"/ >
WOD:
TextHinter : AjaxTextHinter {
form = "EditForm";
}
Form : ERXWOForm {
id = "EditForm";
....
}
SomeText: WOTextField {
default = "Name oder Titel";
....
}
- Author:
- ak
| Bindings |
form | ID of the form to apply the hints to |
| Methods inherited from class er.ajax.AjaxDynamicElement |
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, invokeAction, setValueForBinding, stringValueForBinding, takeValuesFromRequest, valueForBinding, valueForBinding |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
AjaxTextHinter
public AjaxTextHinter(String name,
NSDictionary associations,
WOElement children)
handleRequest
public WOActionResults handleRequest(WORequest request,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to return the response for an Ajax request.
- Specified by:
handleRequest in interface IAjaxElement- Specified by:
handleRequest in class AjaxDynamicElement
addRequiredWebResources
protected void addRequiredWebResources(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to append the needed scripts for this component.
- Specified by:
addRequiredWebResources in class AjaxDynamicElement
appendToResponse
public void appendToResponse(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Overridden to call
#addRequiredWebResources(WOResponse).
- Overrides:
appendToResponse in class AjaxDynamicElement
Copyright © 2002 – 2007 Project Wonder.