Class UIViewParameter

    • Field Detail

      • COMPONENT_TYPE

        public static final java.lang.String COMPONENT_TYPE

        The standard component type for this component.

        See Also:
        Constant Field Values
      • COMPONENT_FAMILY

        public static final java.lang.String COMPONENT_FAMILY

        The standard component family for this component.

        See Also:
        Constant Field Values
    • Constructor Detail

      • UIViewParameter

        public UIViewParameter​()

        Create a new UIViewParameter instance with default property values.

    • Method Detail

      • getFamily

        public java.lang.String getFamily​()
        Description copied from class: UIComponent

        Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance.

        Overrides:
        getFamily in class UIInput
      • getName

        public java.lang.String getName​()

        Return the request parameter name from which the value is retrieved.

        Since:
        2.0
      • setName

        public void setName​(java.lang.String name)

        Set the request parameter name from which the value is retrieved.

        Parameters:
        name - The new request parameter name.
        Since:
        2.0
      • isImmediate

        public boolean isImmediate​()

        Return false. The immediate setting is not relevant for view parameters and must be assumed to be false.

        Specified by:
        isImmediate in interface EditableValueHolder
        Overrides:
        isImmediate in class UIInput
        Since:
        2.0
      • setSubmittedValue

        public void setSubmittedValue​(java.lang.Object submittedValue)
        PENDING (docs) Interesting that submitted value isn't saved by the parent
        Specified by:
        setSubmittedValue in interface EditableValueHolder
        Overrides:
        setSubmittedValue in class UIInput
        Parameters:
        submittedValue - The new submitted value
      • processValidators

        public void processValidators​(FacesContext context)

        Specialize superclass behavior to treat null differently. In this class, a null value along with the "required" flag being set to true will cause a validation failure.

        Overrides:
        processValidators in class UIInput
        Parameters:
        context -
        Since:
        2.0
      • getStringValue

        public java.lang.String getStringValue​(FacesContext context)

        If the value of this parameter comes from a ValueExpression return the value of the expression, otherwise, return the local value.

        Since:
        2.0
      • getStringValueFromModel

        public java.lang.String getStringValueFromModel​(FacesContext context)
                                                 throws ConverterException

        Manually perform standard conversion steps to get a string value from the value expression.

        Throws:
        ConverterException
        Since:
        2.0