Hi, the question is, why is the value empty? If you do correct work inside the getAsString(..) method of the converter, there must be a corresponding value mapped to each label on client side.
You can easily confirm this by using a http-debugger, the JSON format must consist of something like [["yourFistLabel","yourFirstValue"],["yourSecondLabel","yourSecondValue"]..]. When choosing a value out of the popUp list, the value is written into a hidden field and posted back to server, which in turn should *not* be empty. Any new cognitions? cheers, Gerald On 1/24/07, Thomas Kurzman <[EMAIL PROTECTED]> wrote:
Hi experts! Like in http://wiki.apache.org/myfaces/InputSuggestAjax i worked out an example-app for advanced key/value usage. Everything works fine. The only problem is when i choose an value and submit the form the value string of the getAsObject-method is empty (not null but empty -> ""). When i was looking for a solution i found this: http://www.mail-archive.com/[email protected]/msg31764.html In addition to this post i could say (because i have logged all the stuff what's going on) that the setter of the choosenValue will be called (when the form is submitted i.e. BEFORE page refresh) and also the getAsObject-method, as i mentioned before, will be called (AFTER page refresh) but with an empty String as value. So, as a logic konsequence, i never get a correct chooseValue when the page is refreshed after the form-submit. So does anybody know how to fix this or has an solution for this? best, tom -- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
-- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

