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. Note this method should NOT return null

        Overrides:
        getFamily in class UIInput
        Returns:
        the component family (not null).
      • getName

        public java.lang.String getName​()

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

        Returns:
        the name.
        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
        Returns:
        true if immediate, false otherwise.
        Since:
        2.0
      • getSubmittedValue

        public java.lang.Object getSubmittedValue​()

        Assume that the submitted value is always a string, but the return type from this method is Object..

        Specified by:
        getSubmittedValue in interface EditableValueHolder
        Overrides:
        getSubmittedValue in class UIInput
        Returns:
        the submitted value.
        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
      • 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.

        Parameters:
        context - the Faces context.
        Returns:
        the string 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.

        Parameters:
        context - the Faces context.
        Returns:
        the string value from the model.
        Throws:
        ConverterException
        Since:
        2.0