Calling a ZUL URL using a RESTful method
30 Nov 2011 22:03:43 GMT
29 Dec 2011 06:40:45 GMT
29 Dec 2011 06:40:45 GMT
Hi nocturnal,
when yo request a zul page, the ZK servlet will response a jason array and zk will invoke javascript to create the view, you have to include zk cilent library to create the view.
ZK - Open Source Ajax Java Framework
Hey guys,
I would like to invoke a ZUL page posting it some JSON (RESTful call), the page must then convert the JSON to a Java object and display the data.
Is this possible with ZK?
So, if I execute the following:
curl http://example.com/renderBean.zul -H "content-type: application/json" -d "{ \"woof\": \"bark\", \"de\": \"do doo\" }"
The ZUL page should show up with the JSON data rendered in view.
Any suggestions will be highly appreciated.