[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
calendarfield: Don't initialize with current time  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

I have a request concerning calendar field. Lets look at it in the demo workplace:
1. Start the workpage "Date Input"
2. Popup the calendar with hours and minutes
3. choose a day
--> Hours and minutes are initialized with current time

How can I avoid this initialization? I our business case, it isn't meaningful. We would like to initialize with 00:00.

Regards,
Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...yes, the problem is that there is not proper definition of a "date" with java.util.Date. But, I agree, most developers interpret "00:00" point of time as the one that is relvant for the date.

We will add an attribute EXACTTIME to the CALENDAR, CALENDARFIELD, FORMATTEDFIELD that sets all the "ugly" date-parts to 0 when the user selects a date.

Will be contained in next update.

Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

solved with 20090622
Björn

Björn Müller, CaptainCasa GmbH
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

I have installed 20090622. It seems to me that "exacttime" works for calendar but not for calendarfield. I have tried it out on my application and also on demo workplace (by modifying democalendar.jsp). For formattedfield I didn't check.

Regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...after short phone call: the exacttime-attribute works correctly. In addition to internally cutting the invisible date parts there is the requirement to propose e.g. hours/minutes/seconds with "0" when selcting a point of time.

We can add this, as well - and will bind this proposal to the same flag "exacttime".

Björn

Björn Müller, CaptainCasa GmbH
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn

When popping up the calendar with time in the "Date Input" page of the demo workplace (RISC), the time is initialized with the current time instead of zero, although the attribute "exacttime" is set to true. See attachment.

For the java version of demo workplace, the behaviour is still initializing time with zero as desired and implemented long time ago (this thread started 2009, time flies quickly...).

Could you please fix the RISC version?

Kind regards, Daniel
[Thumb - calendar_popup_time.png]
 Filename calendar_popup_time.png [Disk] Download
 Description RISC: Time is initialized with current time instead of zero.
 Filesize 16 Kbytes
 Downloaded:  286 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi David,
will update this for next update.
Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team