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. However, it's displaying all persons correctly in the dropdown, but it won't set the selected person to my data.manager. This is the code from the demo:
And this is what I wrote:
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. asked 13.03.2014 at 10:29 ahatius |
The Hash in value is not set: wrong: ... value="{data.manager}" ... correct: ... value="#{data.manager}" ... answered 30.04.2014 at 17:17 StoRicMan |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 13.03.2014 at 10:29
Seen: 8,547 times
Last updated: 30.04.2014 at 17:19
Hi. Do you have any errors in the Runtime Log? Is the person not set if you look at the history of the element? If you copy the SelectOneMenu sample to your multiview Dialog is it also not set correctly?
@Peter Stöckli No, unfortunately it doesn't even show up in the history. I tried the snippet of the demo in my view, won't work either. Might this be a problem with switching views?
Hi did you try to Change the value to example itemvalue="#{it.logon}" ? we had also Problems writing object into a value.
@roland But that would only save one attribute of the object instead of the whole object. What bugs my mind is the fact that it works in the demo, so it can't be impossible. I suspect somethings wrong with the multiview, but I have no idea what it might be.