Class OutcomeTargetUtils
java.lang.Object
org.apache.myfaces.renderkit.html.util.OutcomeTargetUtils
Utility methods for OutcomeTarget components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
OutcomeTargetUtils
public OutcomeTargetUtils()
-
-
Method Details
-
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
-