C H A P T E R  34

dateTimeView


<jatox:dateTimeView>

Renders six combo boxes (month, day, year range, hour, minute and am/pm options), and optionally, a graphic button that pops up a small calendar from which a date can be selected and the month/day/year combo boxes will reflect this selection. This tag is only valid when nested inside of a useViewBean or containerView or tiledView tag body.

If the popup calendar property is enabled for this component, then the tag will require JavaScript. This JavaScript is automatically included in the JSP's header section as follows:

<script language="JavaScript" type="text/javascript" src='<%= request.getContextPath()+ "/com/sun/jatox/view/popupminicalendar.js"%>'></script>

This tag is only valid when enclosed by both an HTML <form> element and a useViewBean, containerView, or tiledView tag. This tag may not contain any body content.

Example:

<jatox:dataView name="dateTimeView1"/>

The above would be rendered into the following HTML (too much HTML to list here):

[month combo box] [day combo box] [year range combo box] [hour combo box]: [minute combo box] [am/pm combo box] [popup calendar graphic button]


Attribute Name

Description

Notes

name

The name of the DisplayField peer. This peer must be a child of the current parent ContainerView, TiledView, or ViewBean. The DisplayField name is resolved relative to the current parent view.

The view peer must be of type <JATOX package>.view.DateView

This name may be a qualified view path, using forward slashes ("/") as delimiters. All components in the path except the last must refer to a ContainerView or a derivative of ContainerView (such as TiledView). Both relative and absolute paths are possible. If a name path begins with a forward slash, the name is assumed to be relative to the root view (the ViewBean). If the path does not begin with a forward slash, the name is assumed to refer to a child relative to the current container. Two dots ("..") may be used to refer to the container that is the parent of the current container.

Examples:

/header/orderList/customerName (absolute from root view)

orderList/customerName (relative to current container)

../footer/orderList/customerName (relative to parent)

Req

 

This tag does not support any JavaScript events.