<?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: Dynamic Choice lists in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71721#M46482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Gavin!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, my question was is it possible to provide a combo box list in the content creation wizard/user creation wizard which shows the data from the lookup table in the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 12:42:45 GMT</pubDate>
    <dc:creator>renga</dc:creator>
    <dc:date>2006-12-01T12:42:45Z</dc:date>
    <item>
      <title>Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71714#M46475</link>
      <description>Hi I was wondering if anyone had created a dynamic choice list for entering metadata???I would like to have one list and then based on what value is selected I would like to populate a second list??? This is something I have done before using javascript in web apps but I am not sure how to proceed w</description>
      <pubDate>Thu, 16 Nov 2006 06:13:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71714#M46475</guid>
      <dc:creator>dcrossma</dc:creator>
      <dc:date>2006-11-16T06:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71715#M46476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The JSF selectOne component (and many others) has the valueChangedListener attribute available. If you bind this to a method on your bean it will get called back when the user makes a change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code in the managed bean called can create the items for the other list so when the page refreshes those values are shown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;h:selectOneMenu … valueChangeListener="#{YourBean.somethingChanged}"&amp;gt;&lt;BR /&gt;…..&lt;BR /&gt;&amp;lt;/h:selectOneMenu&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;h:selectOneMenu …&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;f:selectItems value="#{YourBean.dynamicValues}" /&amp;gt;&lt;BR /&gt;&amp;lt;/h:selectOneMenu&amp;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 12:49:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71715#M46476</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-11-16T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71716#M46477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks gavin I will give that a go&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 03:15:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71716#M46477</guid>
      <dc:creator>dcrossma</dc:creator>
      <dc:date>2006-11-18T03:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71717#M46478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The JSF selectOne component (and many others) has the valueChangedListener attribute available. If you bind this to a method on your bean it will get called back when the user makes a change.&lt;BR /&gt;&lt;BR /&gt;The code in the managed bean called can create the items for the other list so when the page refreshes those values are shown.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;h:selectOneMenu … valueChangeListener="#{YourBean.somethingChanged}"&amp;gt;&lt;BR /&gt;…..&lt;BR /&gt;&amp;lt;/h:selectOneMenu&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;h:selectOneMenu …&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;f:selectItems value="#{YourBean.dynamicValues}" /&amp;gt;&lt;BR /&gt;&amp;lt;/h:selectOneMenu&amp;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created my custom metadata by following the tutorial Displaying Custom Metatdata &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata&lt;/A&gt;&lt;SPAN&gt; . This works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What Im not sure of is how do I bind a bean to my config evaluator????Preferably I would have thought you would want the binding to be on the property sheet????&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gavins example above seems to almost be creating a custom .jsp page ? I would rather use the web-client-config-custom.xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also if anyone could provide me with the path for .jsp file that is used to display the editable properties with the metadata that would be appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have never used JSF so this is new to me thanks for your patience&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 03:02:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71717#M46478</guid>
      <dc:creator>dcrossma</dc:creator>
      <dc:date>2006-11-20T03:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71718#M46479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, my example was presuming a custom page, the property sheet does not have built in support for what you want to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "editContentProperties" dialog deals with the saving of properties, the JSP for this is "/jsp/content/edit-content-properties.jsp" and the managed bean for the dialog is "EditContentPropertiesDialog".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to do something custom then you'll need to override the editContentProperties dialog definition with your own bean. However, if you're just editing properties from your model you shouldn't need to use a custom bean the built in one should suffice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 10:50:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71718#M46479</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-11-21T10:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71719#M46480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to read the custom properties from a database table. And also is it possible to provide a maintenace screens to manage these custom tables from administrator&amp;nbsp; console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 04:56:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71719#M46480</guid>
      <dc:creator>renga</dc:creator>
      <dc:date>2006-11-22T04:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71720#M46481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it is possible to read the properties directly from the database, they will be in the alf_node_properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is on the roadmap to provide an interface for administering custom models but there isn't a specific time set for this feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 22:10:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71720#M46481</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-11-23T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71721#M46482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Gavin!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, my question was is it possible to provide a combo box list in the content creation wizard/user creation wizard which shows the data from the lookup table in the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:42:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71721#M46482</guid>
      <dc:creator>renga</dc:creator>
      <dc:date>2006-12-01T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71722#M46483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not out of the box, but yes, with some custom code it's certainly possible to do this. You'll need to follow the same pattern used in the existing wizards to get the values i.e. a method that returns a List of SelectItem objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at the getObjectTypes() method in BaseContentWizard.java.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2006 22:04:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71722#M46483</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-12-02T22:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71723#M46484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gavinc said " the property sheet does not have built in support for what you want to do", but if we developp a new componenet generator based on TextFieldGenerator, it should be possible to associate a valueChangedListener programatically ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;component = context.getApplication().createComponent(UISelectOne.COMPONENT_TYPE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;…&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;component.setValueChangeListener(…);&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;/SPAN&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;But, UIComponent don't have setValueChangeListener method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2007 17:45:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71723#M46484</guid>
      <dc:creator>nahanni</dc:creator>
      <dc:date>2007-05-20T17:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Choice lists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71724#M46485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you call createComponent() you have to cast the return object to the appropriate type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;UISelectOne component = (UISelectOne)context.getApplication().createComponent(UISelectOne.COMPONENT_TYPE); &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Another one of those JSF quirks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 10:05:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-choice-lists/m-p/71724#M46485</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-05-21T10:05:11Z</dc:date>
    </item>
  </channel>
</rss>

