<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: selectOneMenu: Value will not be set</title><link>https://answers.axonivy.com/questions/576/selectonemenu-value-will-not-be-set</link><description>&lt;p&gt;I've got a dropdown menu, which gets the persons from our LDAP server. What I basically did was copying the SelectOneMenuDemo from the Demo files.&lt;/p&gt;
&lt;p&gt;However, it's displaying all persons correctly in the dropdown, but it won't set the selected person to my &lt;em&gt;data.manager&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;This is the code from the demo:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;p:selectonemenu value="#{data.selectedPerson}" converter="ivy.ListItem"&amp;gt;&lt;br&gt;
                    &amp;lt;f:selectitem itemlabel="Select One" itemvalue=""/&amp;gt;&lt;br&gt;
                    &amp;lt;f:selectitems value="#{data.persons}" var="it" itemvalue="#{it}" itemlabel="#{it.name}"&amp;gt;&amp;lt;/f:selectitems&amp;gt;
                    &amp;lt;f:selectitems value="#{data.morePersons}" var="it" itemvalue="#{it}" itemlabel="#{it.name}"&amp;gt;&amp;lt;/f:selectitems&amp;gt;
                    &amp;lt;f:selectitem itemvalue="#{data.onePerson}" itemlabel="#{data.onePerson.name}"&amp;gt;&amp;lt;/f:selectitem&amp;gt;
                &amp;lt;/p:selectonemenu&amp;gt; &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And this is what I wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;p:selectonemenu id="manager" value="{data.manager}" converter="ivy.ListItem" style="width: 200px;"&amp;gt;
                                        &amp;lt;f:selectitems value="#{data.managers}" var="it" itemvalue="#{it}" itemlabel="#{it.cn}"&amp;gt;&amp;lt;/f:selectitems&amp;gt;
                                                                            &amp;lt;/p:selectonemenu&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Is there something I've forgotten? This looks exactly the same to me. Do I have to do something when I submit? I've got a multiview HTML dialog.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/576/selectonemenu-value-will-not-be-set" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 30 Apr 2014 17:17:25 -0400</lastBuildDate><item><title>Answer by StoRicMan</title><link>https://answers.axonivy.com/questions/576/selectonemenu-value-will-not-be-set/672</link><description>&lt;p&gt;The Hash in value is not set: 
wrong: ... value="{data.manager}" ...
correct: ... value="&lt;strong&gt;#&lt;/strong&gt;{data.manager}" ...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">StoRicMan</dc:creator><pubDate>Wed, 30 Apr 2014 17:17:25 -0400</pubDate><guid>https://answers.axonivy.com/questions/576/selectonemenu-value-will-not-be-set/672</guid></item></channel></rss>