public abstract class OutcomeTargetRenderer extends HtmlBasicRenderer
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.ParamEMPTY_PARAMS, logger| Constructor and Description |
|---|
OutcomeTargetRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNavigationParams(jakarta.faces.application.NavigationCase navCase,
Map<String,List<String>> existingParams) |
void |
decode(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
Decode any new state of the specified
UIComponent from the request contained in the specified
FacesContext, and store that state on the UIComponent. |
protected String |
getEncodedTargetURL(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component,
jakarta.faces.application.NavigationCase navCase)
Resolve the target view id and then delegate to
ViewHandler.getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) to produce
a redirect URL, which will add the page parameters if necessary and properly prioritizing the parameter overrides. |
protected String |
getFragment(jakarta.faces.component.UIComponent component) |
protected String |
getLabel(jakarta.faces.component.UIComponent component) |
protected jakarta.faces.application.NavigationCase |
getNavigationCase(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
Invoke the
NavigationHandler preemptively to resolve a NavigationCase for the outcome declared on the
UIOutcomeTarget component. |
protected Map<String,List<String>> |
getParamOverrides(jakarta.faces.component.UIComponent component) |
protected Object |
getValue(jakarta.faces.component.UIComponent component) |
protected boolean |
isIncludeViewParams(jakarta.faces.component.UIComponent component,
jakarta.faces.application.NavigationCase navcase) |
protected void |
renderPassThruAttributes(jakarta.faces.context.FacesContext ctx,
jakarta.faces.context.ResponseWriter writer,
jakarta.faces.component.UIComponent component,
Attribute[] attributes,
List excludedAttributes) |
augmentIdReference, convertClientId, decodeBehaviors, encodeEnd, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, isBehaviorSource, rendererParamsNotNull, setSubmittedValue, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessarypublic void decode(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
jakarta.faces.render.Renderer
Decode any new state of the specified UIComponent from the request contained in the specified
FacesContext, and store that state on the UIComponent.
During decoding, events may be enqueued for later processing (by event listeners that have registered an interest),
by calling queueEvent() on the associated UIComponent.
decode in class HtmlBasicRenderercontext - FacesContext for the request we are processingcomponent - UIComponent to be decoded.protected void renderPassThruAttributes(jakarta.faces.context.FacesContext ctx,
jakarta.faces.context.ResponseWriter writer,
jakarta.faces.component.UIComponent component,
Attribute[] attributes,
List excludedAttributes)
throws IOException
IOExceptionprotected String getLabel(jakarta.faces.component.UIComponent component)
protected String getFragment(jakarta.faces.component.UIComponent component)
protected Object getValue(jakarta.faces.component.UIComponent component)
getValue in class HtmlBasicRendererprotected boolean isIncludeViewParams(jakarta.faces.component.UIComponent component,
jakarta.faces.application.NavigationCase navcase)
protected jakarta.faces.application.NavigationCase getNavigationCase(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
NavigationHandler preemptively to resolve a NavigationCase for the outcome declared on the
UIOutcomeTarget component. The current view id is used as the from-view-id when matching navigation cases and
the from-action is assumed to be null.context - the FacesContext for the current requestcomponent - the target UIComponentprotected String getEncodedTargetURL(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent component, jakarta.faces.application.NavigationCase navCase)
Resolve the target view id and then delegate to
ViewHandler.getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) to produce
a redirect URL, which will add the page parameters if necessary and properly prioritizing the parameter overrides.
context - the FacesContext for the current requestcomponent - the target UIComponentnavCase - the target navigation caseprotected void addNavigationParams(jakarta.faces.application.NavigationCase navCase,
Map<String,List<String>> existingParams)
Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.