Creating simple views

The view component is the central component of a JViews JSF application. All the other components depend on or interact with this view. The first and simplest page that can be made with a JViews JSF component is an empty view.

Creating a map view

The map view extends the diagram view, so the common overview, zoom tool, pan tool, and interactor components are compatible.
Creating an empty view
To specify an empty view:
<jvmf:mapView style="width:500px; height:300px;" />
This produces a 500 by 300 pixel view.
Declaring the namespace
The namespace jvmf (for JViews Maps JSF) must be declared in the page.
<%@ taglib
    uri="http://www.ilog.com/jviews/tlds/jviews-maps-faces.tld
    prefix="jvmf" %>
Using the width and height attributes
Using the style to specify the size of the component is preferable, but an alternative is to use the width and height attributes.
<jvmf:mapView width="500" height="500" />

Creating a diagram view

The diagram view extends the common view so the common overview, zoom tool, pan tool, and interactor components are compatible.
Creating an empty view
To specify an empty view:
 <jvdf:diagrammerView style="width:500px; height:300px;" />
This produces a 500 by 300 pixel view.
Declaring the namespace
The namespace jvdf (for JViews DiagrammerJSF) must be declared in the page as follows:
<%@ taglib 
    uri="http://www.ilog.com/jviews/tlds/jviews-diagrammer-faces.tld"
    prefix="jvdf" %>
Using the width and height attributes
Using the style to specify the size of the component is preferable, but an alternative is to use the width and height attributes.
 <jvdf:diagrammerView width="500" height="500" />

Creating a view with JViews Framework

This view can be extended to make more specific components.
Creating an empty view
Specify an empty view.
 <jvf:view style="width:500px; height:300px;" />
This produces a 500 by 300 pixel view.
Declaring the namespace
The namespace jvf (for JViews Framework JSF) must be declared in the page as follows:
<%@ taglib 
    uri="http://www.ilog.com/jviews/tlds/jviews-framework-faces.tld"
    prefix="jvf" %>
Using the width and height attributes
Using the style to specify the size of the component is preferable, but an alternative is to use the width and height attributes.
 <jvf:view width="500" height="500" />