Class ResolveComponent

    • Field Detail

      • COMPONENT_TYPE

        public static final String COMPONENT_TYPE
        The component type, which is "org.omnifaces.component.util.ResolveComponent".
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResolveComponent

        public ResolveComponent()
        Constructs the component.
    • Method Detail

      • getName

        public String getName()
        Returns name under which the component will be made available to EL.
        Returns:
        Name under which the component will be made available to EL.
      • setName

        public void setName​(String nameValue)
        Sets name under which the component will be made available to EL, scoped to the body of the Facelets tag (default) or to the request.
        Parameters:
        nameValue - Name under which the component will be made available to EL.
      • getFor

        public String getFor()
        Returns ID of the component that will be resolved (looked-up) and if found a reference of it made available to EL.
        Returns:
        ID of the component that will be resolved (looked-up) and if found a reference of it made available to EL.
      • setFor

        public void setFor​(String forValue)
        Sets ID of the component that will be resolved (looked-up) and if found a reference of it made available to EL.
        Parameters:
        forValue - ID of the component that will be resolved (looked-up) and if found a reference of it made available to EL.
      • getScope

        public String getScope()
        Returns optional scope identifier used to set the scope in which the component reference is inserted. Default is facelet.
        Returns:
        Optional scope identifier used to set the scope in which the component reference is inserted.
      • setScope

        public void setScope​(String scopeValue)
        Optional scope identifier used to set the scope in which the component reference is inserted. If no scope is specified, the default scope "facelet" will be used.

        Values values are "facelet" (default) and "request".

        Parameters:
        scopeValue - Optional scope identifier used to set the scope in which the component reference is inserted.