This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
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 11 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: