org.apache.myfaces.commons.facelets.util
Class FaceletsFunctionLibrary

java.lang.Object
  extended by org.apache.myfaces.commons.facelets.util.FaceletsFunctionLibrary

public final class FaceletsFunctionLibrary
extends java.lang.Object


Constructor Summary
FaceletsFunctionLibrary()
           
 
Method Summary
static javax.faces.component.UIComponent findComponent(java.lang.String expr)
          Return a UIComponent instance based on the passed findComponent expression.
static javax.faces.component.UIComponent findComponentFrom(javax.faces.component.UIComponent c, java.lang.String expr)
          Invoke findComponent() taking as reference the passed component and as param the expression defined.
static java.lang.String outputClientId(java.lang.String expr)
          Return the client id of the component returned by the findComponent expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaceletsFunctionLibrary

public FaceletsFunctionLibrary()
Method Detail

findComponent

@JSFFaceletFunction(name="mc:findComponent")
public static javax.faces.component.UIComponent findComponent(java.lang.String expr)
Return a UIComponent instance based on the passed findComponent expression. The viewRoot instance is used as component reference

Parameters:
expr -
Returns:

outputClientId

@JSFFaceletFunction(name="mc:outputClientId")
public static java.lang.String outputClientId(java.lang.String expr)
Return the client id of the component returned by the findComponent expression.

Parameters:
expr -
Returns:

findComponentFrom

@JSFFaceletFunction(name="mc:findComponentFrom")
public static javax.faces.component.UIComponent findComponentFrom(javax.faces.component.UIComponent c,
                                                                                     java.lang.String expr)
Invoke findComponent() taking as reference the passed component and as param the expression defined.

Parameters:
c -
expr -
Returns:


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.