I have been attempting to dynamically populate a dropdown list based on other fields on the Create User page in CA Identity Manager. I have code that will check the other field's value but I can't properly set the dropdown values, all the values I insert are shown on one line instead of separate rows as shown below...
I am wondering what the proper way to construct a dropdown list is, my code currently looks like this...
I have tried many different ways to separate these entries into rows with no success, any input would be helpful.
My java code determines what values (pipe delimited) to insert into the dropdown box:
By taking the fieldContext value and then returning it back to the dropdown everything is formatted correctly and appears on separate rows in the dropdown.
Thanks for posting the fix. I found myself in the exact same spot and this worked for me too.
One follow-up: do you know if it's possible to mark one of the options as the "selected" one in the dropdown box?