|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComplexComponent
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 | |
---|---|
java.lang.String |
getPrimaryElementID(javax.faces.context.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. |
Method Detail |
---|
java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
context
- The FacesContext for the request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |