JSF Gantt: pattern format for dates in the JSF Tags

Article ID: 2474
Last updated: 28 May, 2018
Article ID: 2474
Last updated: 28 May, 2018
Revision: 3
Views: 1068
Posted: 10 Nov, 2011
by Dean J.
Updated: 28 May, 2018
by Gargani A.

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>

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2474
Last updated: 28 May, 2018
Revision: 3
Views: 1068
Posted: 10 Nov, 2011 by Dean J.
Updated: 28 May, 2018 by Gargani A.
Also listed in


Others in this category