Based on input text i am populating selectone menu ,via ajax.
I am using Jquery GetJSON method,leave that. In the server side,In a managed bean function i am trying to populate an ArrayList,and return it to the jquery function.I need a method to return JSONtext as my response,so that I can populate my drop down via js:ie(ajax)
My question is: How to write code in my managed bean to return that as a JSON response. (with option name and value embedded in the response).
posted 12 years ago
If I understand you correctly, using Stringtree JSON it should be as simple as:
This should result in a valid JSON string such as: