Class UIForm

    • 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

      • UIForm

        public UIForm​()

        Create a new UIForm 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

        Specified by:
        getFamily in class UIComponent
        Returns:
        the component family (not null).
      • isSubmitted

        public boolean isSubmitted​()

        Returns the current value of the submitted property. The default value is false. See setSubmitted(boolean) for details.

        This property must be kept as a transient property using the UIComponent.getTransientStateHelper().

        Returns:
        true if the form was submitted, false otherwise.
      • setSubmitted

        public void setSubmitted​(boolean submitted)

        If this UIForm instance (as opposed to other forms in the page) is experiencing a submit during this request processing lifecycle, this method must be called, with true as the argument, during the UIComponent.decode(javax.faces.context.FacesContext) for this UIForm instance. If this UIForm instance is not experiencing a submit, this method must be called, with false as the argument, during the UIComponent.decode(javax.faces.context.FacesContext) for this UIForm instance.

        The value of a UIForm's submitted property must not be saved as part of its state.

        This property must be kept as a transient property using the UIComponent.getTransientStateHelper().

        Parameters:
        submitted - the new value of the submitted flag.
      • isPrependId

        public boolean isPrependId​()
        Is the id prepended.
        Returns:
        true if it is, false otherwise.
      • setPrependId

        public void setPrependId​(boolean prependId)
      • createUniqueId

        public java.lang.String createUniqueId​(FacesContext context,
                                               java.lang.String seed)

        Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id.

        If the prependId property has the value false, this method must call createUniqueId on the next ancestor UniqueIdVendor.

        Specified by:
        createUniqueId in interface UniqueIdVendor
        Parameters:
        context - FacesContext
        seed - an optional seed value - e.g. based on the position of the component in the VDL-template
        Returns:
        a unique-id in this component-container