org.apache.myfaces.custom.util
Class ComponentUtils

java.lang.Object
  extended by org.apache.myfaces.custom.util.ComponentUtils

public final class ComponentUtils
extends java.lang.Object

User: treeder Date: Nov 21, 2005 Time: 9:20:14 PM


Method Summary
static javax.faces.component.UIComponent findComponentByClientId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent root, java.lang.String clientId)
          TR- This was moved from AjaxPhaseListenere on checkin 344383
static javax.faces.component.UIComponent findComponentById(javax.faces.context.FacesContext context, javax.faces.component.UIComponent root, java.lang.String id)
          Useful if you don't know the clientId

TR- This was moved from AjaxPhaseListenere on checkin 344383 Seems like this could be made more efficient

static javax.faces.component.UIComponent findFirstMessagesComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findComponentByClientId

public static javax.faces.component.UIComponent findComponentByClientId(javax.faces.context.FacesContext context,
                                                                        javax.faces.component.UIComponent root,
                                                                        java.lang.String clientId)
TR- This was moved from AjaxPhaseListenere on checkin 344383

Parameters:
context -
root -
clientId -
Returns:
component referenced by clientId or null if not found

findComponentById

public static javax.faces.component.UIComponent findComponentById(javax.faces.context.FacesContext context,
                                                                  javax.faces.component.UIComponent root,
                                                                  java.lang.String id)
Useful if you don't know the clientId

TR- This was moved from AjaxPhaseListenere on checkin 344383 Seems like this could be made more efficient

Parameters:
context -
root -
id -
Returns:
component referenced by id or null if not found

findFirstMessagesComponent

public static javax.faces.component.UIComponent findFirstMessagesComponent(javax.faces.context.FacesContext context,
                                                                           javax.faces.component.UIComponent base)


Copyright © 2011. All Rights Reserved.