Control API for Date Navigator (dateNavigator)

A control for advanced handling of all actions which require a date input and to visualize a date.

  • id
    Identification name of the dateNavigator.
  • model
    Defines the model which provides the dateNavigator with data.
  • monthPerColumn
    The dateNavigator can display several month. The months are arranged in matrix form. This attribute defines the number of columns of the matrix.
  • monthPerRow
    The dateNavigator can display several month. The months are arranged in matrix form. This attribute defines the number of rows of the matrix.
  • onNavigate
    The navigation fields are located left and right of the displayed month . The << and >> fields can be used to select the previous and next month. If a dateNavigator has more columns the previous month navigator is located at the first column and the next month navigator at the last column.
    The 'onNavigate' attribute defines the action that will be processed when the user clicks on the navigation fields.
  • onDayClick
    Defines the action that will be processed when the user clicks on a day.
  • onWeekClick
    Defines the action that will be processed when the user clicks on a week. The week is the first column of the dateNavigator grid.
  • onMonthClick
    Defines the action that will be processed when the user clicks on the header text string representing the month displayed.
attribute req. values default case sens. JSP taglib classlib
id yes String none yes id="VacationPlanner"  
model yes String none yes model="myBean.model" setModel
((DateNavigatorModel) model)
monthPerColumn no Numeric 1 - monthPerColumn="3" setMonthPerColumn(3)
monthPerRow no Numeric 1 - monthPerRow="4" setMonthPerRow(4)

 

events req. values default case sens. JSP taglib classlib
onNavigate no String none yes onNavigate="ProcNav" setOnNavigate("ProcNav")
onDayClick no String none yes onDayClick="DaySel" setOnDayClick("DaySel")
onWeekClick no String none yes onWeekClick="WeekSel" setOnWeekClick("WeekSel")
onMonthClick no String none yes onMonthClick="MonSel" setOnMonthClick("MonSel")

 

Example
<hbj:dateNavigator
           id="myDateNavigator1"
           model="myBean.model"
           monthsPerColumn="2"
           monthsPerRow="3"
           onNavigate="myOnNavigate"
           onDayClick="myOnDayClick"
           onWeekClick="myOnWeekClick"
           onMonthClick="myOnMonthClick"
/>

Result