<?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: Create refreshable field in edit properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225427#M178557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Glenn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See these posts&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/jbarmash/2008/08/18/implementing-cascading-dropdowns-for-editing-properties/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/jbarmash/2008/08/18/implementing-cascading-dropdowns-for-editing-properties/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/jbarmash/2008/08/08/dynamic-data-driven-drop-downs-for-list-properties/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/jbarmash/2008/08/08/dynamic-data-driven-drop-downs-for-list-properties/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2009 07:59:18 GMT</pubDate>
    <dc:creator>pjcaracuel</dc:creator>
    <dc:date>2009-10-29T07:59:18Z</dc:date>
    <item>
      <title>Create refreshable field in edit properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225426#M178556</link>
      <description>Hello,In a custom content model I'm creating I added dynamic drop downs (as explained in the article by Jean Barmash).This all works nicely but I can figure out how to create a dynamic non editable field (no dropdown).So in the first dropdown I select a company, then I have a second dropdown the sel</description>
      <pubDate>Wed, 28 Oct 2009 08:31:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225426#M178556</guid>
      <dc:creator>glaenen</dc:creator>
      <dc:date>2009-10-28T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create refreshable field in edit properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225427#M178557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Glenn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See these posts&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/jbarmash/2008/08/18/implementing-cascading-dropdowns-for-editing-properties/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/jbarmash/2008/08/18/implementing-cascading-dropdowns-for-editing-properties/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/jbarmash/2008/08/08/dynamic-data-driven-drop-downs-for-list-properties/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/jbarmash/2008/08/08/dynamic-data-driven-drop-downs-for-list-properties/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 07:59:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225427#M178557</guid>
      <dc:creator>pjcaracuel</dc:creator>
      <dc:date>2009-10-29T07:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create refreshable field in edit properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225428#M178558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used those 2 post to configure what I have now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already have cascading dropdowns that refresh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I would like to have a not editable field that refreshes (so no dropdown).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I can't figure out is how to create a field that a user can't modify but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gets refreshed with a single value from a constraint. And when you click &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ok it should save the value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glenn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 08:40:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225428#M178558</guid>
      <dc:creator>glaenen</dc:creator>
      <dc:date>2009-10-29T08:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create refreshable field in edit properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225429#M178559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that this requeriments involves two step:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.- Create a metadata not editable, using tag &amp;lt;protected&amp;gt;true&amp;lt;/protected&amp;gt; in the metadata definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.-Try to populate this metadata with a value from a list constraint. . You can do it with your own constraint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Constraints" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Constraints&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PD: Sorry about my last post, I didn´t understand well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 09:50:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225429#M178559</guid>
      <dc:creator>pjcaracuel</dc:creator>
      <dc:date>2009-10-29T09:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create refreshable field in edit properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225430#M178560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This one I didn't try yet. But after a quick test, (adding "&amp;lt;protected&amp;gt;true&amp;lt;/protected&amp;gt;" in the content model on a property with dropdown)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives the same result as :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - making the property read-only in the web-client-config-custom.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - changing JAVAX_FACES_INPUT to JAVAX_FACES_OUTPUT by overriding "UIcomponent generate" from org.alfresco.web.bean.generator.IComponentGenerator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - overriding "UIComponent createComponent" from org.alfresco.web.bean.generator.TextFieldGenerator to use createOutputTextComponent in edit mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The field indeed turns grayed out but it doesn't refresh when choosing an other value in the first dropdown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Causing the constraint on the property to fail when saving the metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After overriding "UIComponent createComponent" to remove " &amp;amp;&amp;amp; propDef.isProtected() == false" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result is what I'm looking for. But on saving the GUI sends back the original value of the property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Causing the constraint to fail again because it's expecting the new value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was also looking in the direction of changing the type of output field in "UIComponent createComponent" which now is &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;component = context.getApplication().createComponent(UISelectOne.COMPONENT_TYPE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to something else. But everything I try here fails to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 10:38:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-refreshable-field-in-edit-properties/m-p/225430#M178560</guid>
      <dc:creator>glaenen</dc:creator>
      <dc:date>2009-10-29T10:38:44Z</dc:date>
    </item>
  </channel>
</rss>

