org.apache.myfaces.shared.renderkit.html.util
Class OutcomeTargetUtils
java.lang.Object
org.apache.myfaces.shared.renderkit.html.util.OutcomeTargetUtils
public class OutcomeTargetUtils
- extends Object
Utility methods for OutcomeTarget components.
Method Summary |
static String |
getOutcomeTargetHref(FacesContext facesContext,
UIOutcomeTarget component)
|
static List<UIParameter> |
getValidUIParameterChildren(FacesContext facesContext,
List<UIComponent> children,
boolean skipNullValue,
boolean skipUnrendered)
Calls getValidUIParameterChildren(facesContext, children, skipNullValue, skipUnrendered, true); |
static List<UIParameter> |
getValidUIParameterChildren(FacesContext facesContext,
List<UIComponent> children,
boolean skipNullValue,
boolean skipUnrendered,
boolean skipNullName)
Returns a List of all valid UIParameter children from the given children. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutcomeTargetUtils
public OutcomeTargetUtils()
getOutcomeTargetHref
public static String getOutcomeTargetHref(FacesContext facesContext,
UIOutcomeTarget component)
throws IOException
- Throws:
IOException
getValidUIParameterChildren
public static List<UIParameter> getValidUIParameterChildren(FacesContext facesContext,
List<UIComponent> children,
boolean skipNullValue,
boolean skipUnrendered)
- Calls getValidUIParameterChildren(facesContext, children, skipNullValue, skipUnrendered, true);
- Parameters:
facesContext
- children
- skipNullValue
- skipUnrendered
-
- Returns:
- ArrayList size > 0 if any parameter found
getValidUIParameterChildren
public static List<UIParameter> getValidUIParameterChildren(FacesContext facesContext,
List<UIComponent> children,
boolean skipNullValue,
boolean skipUnrendered,
boolean skipNullName)
- Returns a List of all valid UIParameter children from the given children.
Valid means that the UIParameter is not disabled, its name is not null
(if skipNullName is true), its value is not null (if skipNullValue is true)
and it is rendered (if skipUnrendered is true). This method also creates a
warning for every UIParameter with a null-name (again, if skipNullName is true)
and, if ProjectStage is Development and skipNullValue is true, it informs the
user about every null-value.
- Parameters:
facesContext
- children
- skipNullValue
- should UIParameters with a null value be skippedskipUnrendered
- should UIParameters with isRendered() returning false be skippedskipNullName
- should UIParameters with a null name be skipped
(normally true, but in the case of h:outputFormat false)
- Returns:
- ArrayList size > 0 if any parameter found
Copyright © 2015 The Apache Software Foundation. All rights reserved.