java - XPages: generate JSON server side, use client side -


it should not such difficult hurdle, can't see how past this. want generate json structure on server, using arrayobject , objectobject objects, , use both server-side datasource (works) , client-side. how can transport data server client?

i tried tojson in scriptblock, fails (due java error, fbsundefined if remember correctly). tried tojson in jsonrpcservice control, same error. i'll try find other way stringify object have, that's it. ajax-call, last resort solution.

do have other/better ways transfer server object browser?

thanks!!

getting fbsundefined error indicates object want create json of explicitely contains "undefined" value. can example happen if set property of object equal property of object not contain property.

imo data problem , not way want create json. should first check code generates object. if can't find part causes problem write helper function iteratively go through object , search undefined value.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -