public class TargetUtils extends Object
Constructor and Description |
---|
TargetUtils() |
Modifier and Type | Method and Description |
---|---|
static Set<org.apache.myfaces.trinidad.component.UIXComponent> |
addRenderTargetsForEvent(String eventName, javax.faces.component.UIComponent component)
Called when the component is in the right context, this method looks at its Target instances, retrieves the render list and then adds the component to render to the partial target list.
|
static StringBuilder |
encodeTargetList(javax.faces.component.UIComponent component)
Encodes the target list associated with a component for sending down to the client.
|
static Set<String> |
getExecuteIdsForEvent(String eventName, javax.faces.component.UIComponent component) |
static Set<String> |
getTargetExecuteIdsForEvent(Target target, String eventName, javax.faces.component.UIComponent baseComponent) |
static Set<String> |
getValueAsSet(javax.el.ValueExpression expr)
Returns a Set<String> of values when provided a ValueExpression or a literal String.
|
static void |
setStringSetProperty(org.apache.myfaces.trinidad.bean.FacesBean bean, org.apache.myfaces.trinidad.bean.PropertyKey key, javax.el.ValueExpression expression)
Set a property of type java.util.Set<java.lang.String>.
|
public static Set<String> getValueAsSet(javax.el.ValueExpression expr)
expr
- a ValueExpression or a literal text that is usually an attribute value for one of the attributes on the Target tag.public static StringBuilder encodeTargetList(javax.faces.component.UIComponent component)
component
-public static void setStringSetProperty(org.apache.myfaces.trinidad.bean.FacesBean bean, org.apache.myfaces.trinidad.bean.PropertyKey key, javax.el.ValueExpression expression)
bean
-key
-expression
-public static Set<String> getExecuteIdsForEvent(String eventName, javax.faces.component.UIComponent component)
eventName
- the name of the event for which the set of executeIds is being determinedcomponent
- an instance of UIComponent that is in the right context.public static Set<String> getTargetExecuteIdsForEvent(Target target, String eventName, javax.faces.component.UIComponent baseComponent)
target
- the Target object typically associated to a componenteventName
- the name of the eventpublic static Set<org.apache.myfaces.trinidad.component.UIXComponent> addRenderTargetsForEvent(String eventName, javax.faces.component.UIComponent component)
eventName
- name of the event that the event source raised and for which the render targets are determinedcomponent
- instance of UIComponent