Advanced Features > Using DHTML-Based JSF Components to Build Web Applications > The JViews Framework Faces Component Set > The Manager View

The view is designed to show the content of a manager view. You can connect a manager view to a view component by using a binding:

<jvf:view [...] view="#{frameworkBean.managerView}" />

The manager view to be displayed will be retrieved in a Bean called frameworkBean declared in the JavaServer Faces environment. This Bean should then provide the manager view through its getManagerView method:

public class FrameworkBean {

  private IlvManagerView managerView;
  [...]

  public FrameworkBean() {
    [....]
    initManagerView();
  }

  protected void initManagerView() {
    [...]
  }

  public IlvManagerView getManagerView() {
    return managerView;
  }

  public void setManagerView(IlvManagerView managerView) {
    this.managerView = managerView;
  }

}

To use the value binding attribute, the Bean must be declared in the faces-config.xml file or the managed-beans.xml:

<faces-config>
  <managed-bean>
    <description>A  demo bean</description>
    <managed-bean-name>frameworkBean</managed-bean-name>
    <managed-bean-class>FrameworkBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>
</faces-config>

For further information about these configuration files, see the JavaServer Faces specifications.