|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jsfunit.jsfsession.ClientIDs
public class ClientIDs
This immutable helper class gathers all the client IDs from the current component tree. It then allows finding a full client ID given a suffix of that ID. This suffix is usually just the component ID, but for specificity it can also include one or more of a component's naming containers such as in "mysubview:myform:mycomponentID".
Method Summary | |
---|---|
void |
dumpAllIDs()
Debugging method that dumps all Client IDs to standard out. |
String |
findClientID(String suffix)
Given a client ID or client ID suffix, find the fully-qualified client ID. |
javax.faces.component.UIComponent |
findComponent(String suffix)
Given a client ID suffix, find the matching UIComponent. |
Object |
getComponentValue(String componentID)
Find a component in the JSF component tree and return its value. |
boolean |
isAncestor(String clientID,
String ancestorClientID)
Determines if a component with a given clientID has an ancestor with a given ancestorClientID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String findClientID(String suffix)
suffix
- The full client ID or a suffix of the client ID.
ComponentIDNotFoundException
- if no client ID matches the suffix
DuplicateClientIDException
- if more than one client ID matches the suffixpublic javax.faces.component.UIComponent findComponent(String suffix)
suffix
- The full client ID or a suffix of the client ID.
ComponentIDNotFoundException
- if no client ID matches the suffix
DuplicateClientIDException
- if more than one client ID matches the suffixpublic Object getComponentValue(String componentID)
componentID
- The JSF component ID or client ID suffix.
ComponentIDNotFoundException
- if the component can not be found
DuplicateClientIDException
- if more than one client ID matches the componentID suffix
ClassCastException
- if the found component does not implement ValueHolderpublic boolean isAncestor(String clientID, String ancestorClientID)
public void dumpAllIDs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |