Building Web Applications > Using DHTML-Based JSF Components to Build Web Applications > The JViews Maps Faces Component Set > Creating a Simple Maps View

The first and simplest page that can be made with the JViews Maps Faces component is an empty view, see Code Sample 2.1:

<jvmf:mapView style="width:500 px; height:300 px;" />

Code Sample 2.1 Creating an Empty View

This produces a 500 by 300 pixel view. The namespace jvmf (for JViews Maps Faces) must be declared in the page, see Code Sample 2.2:

<%@ taglib
    uri="http://www.ilog.com/jviews/tlds/jviews-maps-faces.tld
    prefix="jvmf" %>

Code Sample 2.2 Declaring the Namespace

An alternative to specifying the size of the component is to use the width and height attributes, but using the style is preferable, see Code Sample 2.3:

<jvmf:mapView width="500" height="500" />

Code Sample 2.3 Using the Width and Height Attributes

The view component is the central component of a JViews Maps Faces application. All the other components depend or interact on this view.

The map view extends the diagrammer view so the overview, zoom tool, pan tool, and interactors common component are compatible.