org.apache.myfaces.shared.renderkit.html
Class CommonEventUtils
java.lang.Object
org.apache.myfaces.shared.renderkit.html.CommonEventUtils
public class CommonEventUtils
- extends Object
- Author:
- Leonardo Uribe
Method Summary |
static long |
getCommonEventsMarked(UIComponent component)
|
static boolean |
renderBehaviorizedAttribute(FacesContext facesContext,
ResponseWriter writer,
String componentProperty,
UIComponent component,
String eventName,
Collection<ClientBehaviorContext.Parameter> eventParameters,
Map<String,List<ClientBehavior>> clientBehaviors,
String htmlAttrName,
String attributeValue)
Render an attribute taking into account the passed event,
the component property and the passed attribute value for the component
property. |
static boolean |
renderBehaviorizedAttribute(FacesContext facesContext,
ResponseWriter writer,
String componentProperty,
UIComponent component,
String targetClientId,
String eventName,
Collection<ClientBehaviorContext.Parameter> eventParameters,
Map<String,List<ClientBehavior>> clientBehaviors,
String htmlAttrName,
String attributeValue)
|
static boolean |
renderBehaviorizedAttribute(FacesContext facesContext,
ResponseWriter writer,
String componentProperty,
UIComponent component,
String targetClientId,
String eventName,
Map<String,List<ClientBehavior>> clientBehaviors,
String htmlAttrName)
Render an attribute taking into account the passed event and
the component property. |
static void |
renderBehaviorizedEventHandlers(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedEventHandlers(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedFieldEventHandlers(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
|
static void |
renderBehaviorizedFieldEventHandlersWithoutOnfocus(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonEventUtils
public CommonEventUtils()
getCommonEventsMarked
public static long getCommonEventsMarked(UIComponent component)
renderBehaviorizedAttribute
public static boolean renderBehaviorizedAttribute(FacesContext facesContext,
ResponseWriter writer,
String componentProperty,
UIComponent component,
String targetClientId,
String eventName,
Map<String,List<ClientBehavior>> clientBehaviors,
String htmlAttrName)
throws IOException
- Render an attribute taking into account the passed event and
the component property. The event will be rendered on the selected
htmlAttrName
- Parameters:
facesContext
- writer
- component
- clientBehaviors
- eventName
- componentProperty
- htmlAttrName
-
- Returns:
-
- Throws:
IOException
- Since:
- 4.0.1
renderBehaviorizedAttribute
public static boolean renderBehaviorizedAttribute(FacesContext facesContext,
ResponseWriter writer,
String componentProperty,
UIComponent component,
String eventName,
Collection<ClientBehaviorContext.Parameter> eventParameters,
Map<String,List<ClientBehavior>> clientBehaviors,
String htmlAttrName,
String attributeValue)
throws IOException
- Render an attribute taking into account the passed event,
the component property and the passed attribute value for the component
property. The event will be rendered on the selected htmlAttrName.
- Parameters:
facesContext
- writer
- componentProperty
- component
- eventName
- clientBehaviors
- htmlAttrName
- attributeValue
-
- Returns:
-
- Throws:
IOException
renderBehaviorizedAttribute
public static boolean renderBehaviorizedAttribute(FacesContext facesContext,
ResponseWriter writer,
String componentProperty,
UIComponent component,
String targetClientId,
String eventName,
Collection<ClientBehaviorContext.Parameter> eventParameters,
Map<String,List<ClientBehavior>> clientBehaviors,
String htmlAttrName,
String attributeValue)
throws IOException
- Throws:
IOException
renderBehaviorizedEventHandlers
public static void renderBehaviorizedEventHandlers(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
renderBehaviorizedEventHandlers
public static void renderBehaviorizedEventHandlers(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
renderBehaviorizedEventHandlersWithoutOnclick
public static void renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
renderBehaviorizedEventHandlersWithoutOnclick
public static void renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Parameters:
facesContext
- writer
- uiComponent
- clientBehaviors
-
- Throws:
IOException
- Since:
- 4.0.0
renderBehaviorizedFieldEventHandlers
public static void renderBehaviorizedFieldEventHandlers(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Parameters:
facesContext
- writer
- uiComponent
- clientBehaviors
-
- Throws:
IOException
- Since:
- 4.0.0
renderBehaviorizedFieldEventHandlersWithoutOnfocus
public static void renderBehaviorizedFieldEventHandlersWithoutOnfocus(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
renderBehaviorizedFieldEventHandlersWithoutOnchange
public static void renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
renderBehaviorizedFieldEventHandlersWithoutOnchange
public static void renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect
public static void renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect
public static void renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext,
ResponseWriter writer,
long commonPropertiesMarked,
long commonEventsMarked,
UIComponent uiComponent,
String targetClientId,
Map<String,List<ClientBehavior>> clientBehaviors)
throws IOException
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.