public abstract class OutcomeTargetRenderer extends HtmlBasicRenderer
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
EMPTY_PARAMS, logger
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
OutcomeTargetRenderer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNavigationParams(NavigationCase navCase,
Map<String,List<String>> existingParams) |
void |
decode(FacesContext context,
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(FacesContext context,
UIComponent component,
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(UIComponent component) |
protected String |
getLabel(UIComponent component) |
protected NavigationCase |
getNavigationCase(FacesContext context,
UIComponent component)
Invoke the
NavigationHandler preemptively to resolve a NavigationCase
for the outcome declared on the UIOutcomeTarget component. |
protected Map<String,List<String>> |
getParamOverrides(UIComponent component) |
protected Object |
getValue(UIComponent component) |
protected boolean |
isIncludeViewParams(UIComponent component,
NavigationCase navcase) |
protected void |
renderPassThruAttributes(FacesContext ctx,
ResponseWriter writer,
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
encodeBegin, encodeChildren, getConvertedValue
public void decode(FacesContext context, UIComponent component)
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(FacesContext ctx, ResponseWriter writer, UIComponent component, Attribute[] attributes, List excludedAttributes) throws IOException
IOException
protected String getLabel(UIComponent component)
protected String getFragment(UIComponent component)
protected Object getValue(UIComponent component)
getValue
in class HtmlBasicRenderer
protected boolean isIncludeViewParams(UIComponent component, NavigationCase navcase)
protected NavigationCase getNavigationCase(FacesContext context, 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(FacesContext context, UIComponent component, 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(NavigationCase navCase, Map<String,List<String>> existingParams)
protected Map<String,List<String>> getParamOverrides(UIComponent component)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.