public abstract class OutcomeTargetRenderer extends HtmlBasicRenderer
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
EMPTY_PARAMS, logger
Constructor and Description |
---|
OutcomeTargetRenderer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNavigationParams(javax.faces.application.NavigationCase navCase,
Map<String,List<String>> existingParams) |
void |
decode(javax.faces.context.FacesContext context,
javax.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(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.application.NavigationCase navCase)
Resolve the target view id and then delegate to
ViewHandler.getBookmarkableURL(javax.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(javax.faces.component.UIComponent component) |
protected String |
getLabel(javax.faces.component.UIComponent component) |
protected javax.faces.application.NavigationCase |
getNavigationCase(javax.faces.context.FacesContext context,
javax.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(javax.faces.component.UIComponent component) |
protected Object |
getValue(javax.faces.component.UIComponent component) |
protected boolean |
isIncludeViewParams(javax.faces.component.UIComponent component,
javax.faces.application.NavigationCase navcase) |
protected void |
renderPassThruAttributes(javax.faces.context.FacesContext ctx,
javax.faces.context.ResponseWriter writer,
javax.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, writeIdAttributeIfNecessary
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
javax.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 HtmlBasicRenderer
context
- FacesContext
for the request we are processingcomponent
- UIComponent
to be decoded.protected void renderPassThruAttributes(javax.faces.context.FacesContext ctx, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, Attribute[] attributes, List excludedAttributes) throws IOException
IOException
protected String getLabel(javax.faces.component.UIComponent component)
protected String getFragment(javax.faces.component.UIComponent component)
protected Object getValue(javax.faces.component.UIComponent component)
getValue
in class HtmlBasicRenderer
protected boolean isIncludeViewParams(javax.faces.component.UIComponent component, javax.faces.application.NavigationCase navcase)
protected javax.faces.application.NavigationCase getNavigationCase(javax.faces.context.FacesContext context, javax.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 UIComponent
protected String getEncodedTargetURL(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.application.NavigationCase navCase)
Resolve the target view id and then delegate to
ViewHandler.getBookmarkableURL(javax.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 UIComponent
navCase
- the target navigation caseprotected void addNavigationParams(javax.faces.application.NavigationCase navCase, Map<String,List<String>> existingParams)
Copyright © 2010–2021 JBoss by Red Hat. All rights reserved.