Class CommonHtmlEventsUtil
- java.lang.Object
-
- org.apache.myfaces.renderkit.html.util.CommonHtmlEventsUtil
-
public class CommonHtmlEventsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description CommonHtmlEventsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getMarkedEvents(UIComponent component)
static boolean
renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, 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 sourceId, String eventName, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName)
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 void
renderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedFieldEventHandlers(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors)
static void
renderBehaviorizedFieldEventHandlersWithoutOnfocus(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors)
-
-
-
Method Detail
-
getMarkedEvents
public static long getMarkedEvents(UIComponent component)
-
renderBehaviorizedAttribute
public static boolean renderBehaviorizedAttribute(FacesContext facesContext, ResponseWriter writer, String componentProperty, UIComponent component, String sourceId, String eventName, Map<String,List<ClientBehavior>> clientBehaviors, String htmlAttrName) throws IOException
- Throws:
IOException
-
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 sourceId, 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 commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
renderBehaviorizedEventHandlers
public static void renderBehaviorizedEventHandlers(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
renderBehaviorizedEventHandlersWithoutOnclick
public static void renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
renderBehaviorizedEventHandlersWithoutOnclick
public static void renderBehaviorizedEventHandlersWithoutOnclick(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Parameters:
facesContext
-writer
-uiComponent
-clientBehaviors
-- Throws:
IOException
-
renderBehaviorizedFieldEventHandlers
public static void renderBehaviorizedFieldEventHandlers(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Parameters:
facesContext
-writer
-uiComponent
-clientBehaviors
-- Throws:
IOException
-
renderBehaviorizedFieldEventHandlersWithoutOnfocus
public static void renderBehaviorizedFieldEventHandlersWithoutOnfocus(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
renderBehaviorizedFieldEventHandlersWithoutOnchange
public static void renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
renderBehaviorizedFieldEventHandlersWithoutOnchange
public static void renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect
public static void renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect
public static void renderBehaviorizedFieldEventHandlersWithoutOnchangeAndOnselect(FacesContext facesContext, ResponseWriter writer, long commonAttributesMarked, long commonEventsMarked, UIComponent uiComponent, String sourceId, Map<String,List<ClientBehavior>> clientBehaviors) throws IOException
- Throws:
IOException
-
-