| com.sun.rave.web.ui.component.ComplexComponent
All known Subclasses: com.sun.rave.web.ui.component.Property, com.sun.rave.web.ui.component.Field, com.sun.rave.web.ui.component.Hyperlink, com.sun.rave.web.ui.component.Button,
ComplexComponent | public interface ComplexComponent (Code) | | Most components whose renderers write more than one HTML
element need to implement this interface, which exists to allow
for a distinction between the component ID and the ID of the
primary element that can recieve user input or focus. The
latter is needed to allow the application to maintain
focus, and to set the for attribute on labels.
|
Method Summary | |
public String | getPrimaryElementID(FacesContext context) Implement this method so that it returns the DOM ID of the
HTML element which should receive focus when the component
receives focus, and to which a component label should apply. |
getPrimaryElementID | public String getPrimaryElementID(FacesContext context)(Code) | | Implement this method so that it returns the DOM ID of the
HTML element which should receive focus when the component
receives focus, and to which a component label should apply.
Usually, this is the first element that accepts input.
Parameters: context - The FacesContext for the request The client id, also the JavaScript element id |
|
|