<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I get DateTimePicker to allow empty entry? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41984#M22510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have any guidance on how I can replace the renderer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a case where I can put my own component generator together to solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2006 12:50:13 GMT</pubDate>
    <dc:creator>csiege</dc:creator>
    <dc:date>2006-07-18T12:50:13Z</dc:date>
    <item>
      <title>How do I get DateTimePicker to allow empty entry?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41982#M22508</link>
      <description>For example, take the effectivity aspect.&amp;nbsp; Once applied to a document, when editing the document details, there is no way to get an empty date entered!For more specific examples, we want to capture some metadata dates.&amp;nbsp; However some dates are not known at the early stage of the document, but there i</description>
      <pubDate>Tue, 18 Jul 2006 02:43:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41982#M22508</guid>
      <dc:creator>csiege</dc:creator>
      <dc:date>2006-07-18T02:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get DateTimePicker to allow empty entry?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41983#M22509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, you are not missing anything, you can not set a date to null as you say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have raised this in JIRA: &lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/jira/browse/AWC-797" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/jira/browse/AWC-797&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 11:10:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41983#M22509</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-07-18T11:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get DateTimePicker to allow empty entry?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41984#M22510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have any guidance on how I can replace the renderer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a case where I can put my own component generator together to solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 12:50:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41984#M22510</guid>
      <dc:creator>csiege</dc:creator>
      <dc:date>2006-07-18T12:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get DateTimePicker to allow empty entry?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41985#M22511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is indeed, you will probably need both a renderer for the date picker and the component generator to hook in the new renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the existing renderer as a starting point (org.alfresco.web.ui.common.renderer.DatePickerRenderer) and output the relevant HTML to allow the user to say "None". Your renderer then needs to handle the null value, which it doesn't at the moment!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Register your new renderer in faces-config-custom.xml (see faces-config-common.xml as an example).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll then need to do a new component generator, again you can use the current one as a starting point (org.alfresco.web.bean.generator.DatePickerGenerator). You just need to replace the following line&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;component.setRendererType(RepoConstants.ALFRESCO_FACES_DATE_PICKER_RENDERER);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;with the id you use for your renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then to configure in your component generator you'll need to override the existing defintion in faces-config-beans.xml. Copy and paste the entry into your faces-config-custom.xml and change the class to point to your component generator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this should do it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:32:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-datetimepicker-to-allow-empty-entry/m-p/41985#M22511</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-07-20T08:32:59Z</dc:date>
    </item>
  </channel>
</rss>

