public interface JavaScriptService
This service stores JavaScript objects for deffered rendering, as described on http://community.jboss.org/wiki/RichFacesJavaScripthandling
Modifier and Type | Method and Description |
---|---|
<S> S |
addPageReadyScript(javax.faces.context.FacesContext facesContext,
S script)
This method adds script that has to be executed in page.onready event listener, as required by jQuery components. |
<S> S |
addScript(javax.faces.context.FacesContext facesContext,
S script)
Adds new script to render at the end of page. |
ScriptsHolder |
getScriptsHolder(javax.faces.context.FacesContext context)
Get object with collection of scripts designeted for deffered rendering. |
<S> S addScript(javax.faces.context.FacesContext facesContext, S script)
Adds new script to render at the end of page. Is the same script already set to render ( lookup by equals() method ), no new object added.
facesContext
- TODOscript
- <S> S addPageReadyScript(javax.faces.context.FacesContext facesContext, S script)
This method adds script that has to be executed in page.onready event listener, as required by jQuery components.
S
- facesContext
- TODOscript
- ScriptsHolder getScriptsHolder(javax.faces.context.FacesContext context)
Get object with collection of scripts designeted for deffered rendering.
context
- Copyright © 2015 JBoss by Red Hat. All Rights Reserved.