| | | | Browse by category |
Problem
It is possible to control the start and end date of the visible interval in JSF Gantt Chart and JSF Gantt Schedule view with the JSF tags startVisibleInterval
and endVisibleInterval
. What is the correct format for this setting and how to modify this format?
Symptom
Setting for the startVisibleInterval
or endVisibleInterval
tag in the <jvgf:ganttView>
or <jvgf:scheduleView>
does not work if the proper format for the date is not respected.
Resolving the problem
By default, the date pattern is "yyyy/MM/dd HH:mm:ss"
, so you should set something like the following:
<jvgf:ganttView
...
startVisibleInterval="2011/01/01 00:00:00"
endVisibleInterval="2012/01/01 00:00:00"/>
It is possible to override the pattern with the <f:convertDateTime>
tag, for instance:
<jvgf:ganttView
...
startVisibleInterval="2011/01/01"
endVisibleInterval="2012/01/01" >
<f:convertDateTime pattern="MM/dd/yyyy" />
</jvgf:ganttView>