Editable schedule bug PrimeFaces 3.0.M3/JSF 2.0.3

UI Components for JSF
Post Reply
SamAntonis
Posts: 8
Joined: 08 Sep 2011, 16:37

08 Sep 2011, 17:02

Hi,

I have a problem with the editable schedule, i think it's a small bug but I'm not sure.

when adding a new event to the schedule , the date in the pop-up dialog, in which to add the event, is always the previous day of the day i actually clicked on in the calendar.
I already checked if it was a Timezone related problem but it doesn't seem to be the case.
my timezone is GMT+2 btw

the dialog form (<p:dialog>) also puts all the elements inside the dialog form to the right, when i did inspect element in the source code i found out that "overflow: auto;" in the css file was the problem , don't really know why
changing to a different PrimeFaces theme also doesn't solve the problem so i'm wondering if the css file can really be the problem.

code where the startdate is called(<p:dialog> as parent) :

<h:outputLabel for="from" value="#{lbl.eventFrom}" />
<p:inputMask id="from" value="#{scheduleController.event.startDate}" mask="99/99/9999">
<f:convertDateTime pattern="dd/MM/yyyy" />
</p:inputMask>

code from scheduleController class that sets the startDate variable :

public void onDateSelect(DateSelectEvent selectEvent) {
event = new DefaultScheduleEvent("", selectEvent.getDate(), selectEvent.getDate());
}

any help on what the problem could be would be very much appreciated
If I need to provide more info let me know.

maszub
Posts: 3
Joined: 07 Sep 2011, 14:45

09 Sep 2011, 16:17

Hello,
Try put line:

<context-param>
<param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
<param-value>true</param-value>
</context-param>

into web.xml

Regards,
Maciek

SamAntonis
Posts: 8
Joined: 08 Sep 2011, 16:37

12 Sep 2011, 09:16

that fixed it , thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests