<?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 retrieve selectValues for h:selectOneMenu in editDialog in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-selectvalues-for-h-selectonemenu-in-editdialog/m-p/50547#M29342</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;I created a custom jsp/content/edit-content-properties.jsp for my model using &amp;lt;h&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utputText ../&amp;gt; and &amp;lt;h:inputText ../&amp;gt; tags. The model also have some LIST-constraints with values for the &amp;lt;h:selectOneMenu ../&amp;gt; tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to retrieve the values for the &amp;lt;h:inputText&amp;gt;-tags using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;h:inputText value='#{DialogManager.bean.editableNode.properties["my:field"]}'&amp;gt;&amp;lt;/h:inputText&amp;gt;&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;But I don't know how to fetch the values for the selectItems for the &amp;lt;h:selectOneMenu../&amp;gt;-Tag&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;h:selectOneMenu value='#{DialogManager.bean.editableNode.properties["my:status"]}'&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;f:selectItems value='????' /&amp;gt;&lt;BR /&gt;&amp;lt;/h:selectOneMenu&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Georg&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2006 15:26:53 GMT</pubDate>
    <dc:creator>georg</dc:creator>
    <dc:date>2006-11-08T15:26:53Z</dc:date>
    <item>
      <title>retrieve selectValues for h:selectOneMenu in editDialog</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-selectvalues-for-h-selectonemenu-in-editdialog/m-p/50547#M29342</link>
      <description>HiI created a custom jsp/content/edit-content-properties.jsp for my model using &amp;lt;h&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utputText ../&amp;gt; and &amp;lt;h:inputText ../&amp;gt; tags. The model also have some LIST-constraints with values for the &amp;lt;h:selectOneMenu ../&amp;gt; tag.I was able to retrieve the values for the &amp;lt;h:inputText&amp;gt;-tags</description>
      <pubDate>Wed, 08 Nov 2006 15:26:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-selectvalues-for-h-selectonemenu-in-editdialog/m-p/50547#M29342</guid>
      <dc:creator>georg</dc:creator>
      <dc:date>2006-11-08T15:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve selectValues for h:selectOneMenu in editDialog</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-selectvalues-for-h-selectonemenu-in-editdialog/m-p/50548#M29343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need to write a custom managed bean (if you haven't already) that has a method that returns a List of SelectItem objects for each property you have. See CreateSpaceWizard.getTemplateSpaces() as an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll then need to use the data dictionary to get hold of the constraints object for the property and build up the list you need from the values. Have a look at TextFieldGenerator for an example of doing this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 09:30:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-selectvalues-for-h-selectonemenu-in-editdialog/m-p/50548#M29343</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-11-09T09:30:54Z</dc:date>
    </item>
  </channel>
</rss>

