org.apache.myfaces.custom.ppr
Class PPRSupport
java.lang.Object
org.apache.myfaces.custom.ppr.PPRSupport
public class PPRSupport
- extends java.lang.Object
- Author:
- Ernst Fastl, Thomas Spiegl
Method Summary |
static void |
encodeJavaScript(javax.faces.context.FacesContext facesContext,
PPRPanelGroup pprGroup)
Renders inline JavaScript registering an onLoad function for:
Initializing the PPRCtrl for the current Form
Registering partialTriggers
Registering partialTriggerPatterns
Starting periodical updates
Registering inline Loading messages
|
static void |
encodeJavaScriptTriggerOnly(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent uiComponent,
PPRPanelGroup pprGroup,
PartialTriggerParser.PartialTrigger trigger)
|
static org.apache.myfaces.custom.subform.SubForm |
findParentSubForm(javax.faces.component.UIComponent base)
|
static java.util.List |
getComponentsByCommaSeparatedIdList(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent comp,
java.lang.String idList,
java.lang.Class desiredType)
get all components by given id-string-list ("id1,id2,id3") and appropriate type |
static void |
initPPR(javax.faces.context.FacesContext facesContext,
PPRPanelGroup uiComponent)
Renders inline JavaScript registering an onLoad function for:
Initializing the PPRCtrl for the current Form
|
static boolean |
isPartialRequest(javax.faces.context.FacesContext facesContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMAND_CONFIGURED_MARK
public static final java.lang.String COMMAND_CONFIGURED_MARK
PROCESS_COMPONENTS
public static final java.lang.String PROCESS_COMPONENTS
PPRSupport
public PPRSupport()
isPartialRequest
public static boolean isPartialRequest(javax.faces.context.FacesContext facesContext)
initPPR
public static void initPPR(javax.faces.context.FacesContext facesContext,
PPRPanelGroup uiComponent)
throws java.io.IOException
- Renders inline JavaScript registering an onLoad function for:
- Initializing the PPRCtrl for the current Form
- Parameters:
facesContext
- the current FacesContext
uiComponent
- the currently rendered PPRPanelGroup
- Throws:
java.io.IOException
- if the underlying Layer throws an IOException
it is passed through
encodeJavaScript
public static void encodeJavaScript(javax.faces.context.FacesContext facesContext,
PPRPanelGroup pprGroup)
throws java.io.IOException
- Renders inline JavaScript registering an onLoad function for:
- Initializing the PPRCtrl for the current Form
- Registering partialTriggers
- Registering partialTriggerPatterns
- Starting periodical updates
- Registering inline Loading messages
- Parameters:
facesContext
- the current FacesContext
pprGroup
- the currently rendered PPRPanelGroup
- Throws:
java.io.IOException
- if the underlying Layer throws an IOException
it is passed through
encodeJavaScriptTriggerOnly
public static void encodeJavaScriptTriggerOnly(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent uiComponent,
PPRPanelGroup pprGroup,
PartialTriggerParser.PartialTrigger trigger)
throws java.io.IOException
- Throws:
java.io.IOException
findParentSubForm
public static org.apache.myfaces.custom.subform.SubForm findParentSubForm(javax.faces.component.UIComponent base)
getComponentsByCommaSeparatedIdList
public static java.util.List getComponentsByCommaSeparatedIdList(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent comp,
java.lang.String idList,
java.lang.Class desiredType)
- get all components by given id-string-list ("id1,id2,id3") and appropriate type
- Parameters:
context
- comp
- idList
- desiredType
-
- Returns:
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.