java.lang.Object
jakarta.faces.render.Renderer<UIOutput>
org.omnifaces.renderer.InlineResourceRenderer
org.omnifaces.renderer.InlineScriptRenderer
org.omnifaces.cdi.viewscope.ViewScopeUnloadScriptRenderer
This renderer renders the value of the given
UIOutput as the inline script which initializes the unload of the OmniFaces ViewScoped beans of
the current view. Right before that, it puts the pending bean storage of the current view in the active view scopes, see ViewScopeStorageInSession,
because the client is then about to receive the unload script which can destroy them. A failure later in the same response leaves them active until they are
evicted from the active view scopes or the HTTP session expires. This is internally only used by ViewScopeManager.- Since:
- 3.14.28
- Author:
- Bauke Scholtz
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeChildren(FacesContext context, UIOutput component) Activate the pending view scope of the current view and then write the value of the givenUIOutputas inline script.Methods inherited from class org.omnifaces.renderer.InlineScriptRenderer
endElement, startElement, writeResourceMethods inherited from class org.omnifaces.renderer.InlineResourceRenderer
getRendersChildrenMethods inherited from class jakarta.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue
-
Field Details
-
RENDERER_TYPE
The standard renderer type.- See Also:
-
-
Constructor Details
-
ViewScopeUnloadScriptRenderer
public ViewScopeUnloadScriptRenderer()
-
-
Method Details
-
encodeChildren
Activate the pending view scope of the current view and then write the value of the givenUIOutputas inline script.- Overrides:
encodeChildrenin classInlineResourceRenderer- Throws:
IOException
-