cancel
Showing results for 
Search instead for 
Did you mean: 

new date type on HEAD version??

tiofelix
Champ in-the-making
Champ in-the-making
I download the last code from the web site http://www.alfresco.org/alfresco/HEAD with snv, something changes about –>

          
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
  …
<type…>
   …
  <properties>
        …
      <property name="my:dataen">
            <type>d:date</type>
      </property>
  </properties>
</type>

but now these properties can not be showed… "None" appears.
12 REPLIES 12

tiofelix
Champ in-the-making
Champ in-the-making
And this warning????

    2006-09-05 10:07:43,796 WARN  [org.hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#409

gavinc
Champ in-the-making
Champ in-the-making
The date picker renderer has changed to allow dates to be set back to "None". Now when a date property has null in the database "None" is shown in the UI (showing today's date when null was in the database is a bug).

The "None" text can be clicked on to set the date to today's date (unless the propery in question is protected, in which case the property will be shown in a gray italic font). There are now also buttons available to set the date back to null and to go to today's date.

kevinr
Star Contributor
Star Contributor
And this warning????

    2006-09-05 10:07:43,796 WARN  [org.hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#409

This warning should not cause a problem but needs to be fixed - i've raised a JIRA issue here:
http://issues.alfresco.com/browse/AR-833

Thanks,

Kevin

paulhh
Champ in-the-making
Champ in-the-making
I believe the fix has been checked in now.

Paul.

tiofelix
Champ in-the-making
Champ in-the-making
The date picker renderer has changed to allow dates to be set back to "None". Now when a date property has null in the database "None" is shown in the UI (showing today's date when null was in the database is a bug).

The "None" text can be clicked on to set the date to today's date (unless the propery in question is protected, in which case the property will be shown in a gray italic font). There are now also buttons available to set the date back to null and to go to today's date.


Hi Gavin,

  there is some patch for alfresco 1.3 release to give the same funcionality?? or some try some way to show "none" instead of showing today's date. Now i would like to create a property "delivery date" and user don't know at the time this date. Thanks Gavin.

Regards,

gavinc
Champ in-the-making
Champ in-the-making
There isn't a patch for this fix for 1.3 and as far as I know there currently aren't any plans to do so.

You maybe able to do it yourself by retrofitting org.alfresco.web.ui.common.renderer.DatePickerRenderer from 1.4 into 1.3.

tiofelix
Champ in-the-making
Champ in-the-making
There is some way to configure the new DatePickerRenderer to show today's date by default?? Because i want some d:date propertys to be shown with "none" and others with today's date.

    Thanks.

gavinc
Champ in-the-making
Champ in-the-making
Hi,

Yes, there is.

There's a property that can be set on DatePickerGenerator and DateTimePickerGenerator called "initialiseIfNull". If this is set to true then the date picker will render today's date (like in previous versions).

Have a look at faces-config-beans.xml to see an example of how you set it, it's commented out by default. Have a look at http://wiki.alfresco.com/wiki/Simple_Customisations#Resetting_Date_Picker_Behaviour for more info.

tiofelix
Champ in-the-making
Champ in-the-making
Ok, I know that, but the problem is if you want d:date propertys to be shown with "none" and others with today's date by default.