Hi,
I am using a RESTDatasource that get data from a sevlets in json format,
and i need to handle situations where response that this datasource gets is other than a json string, say a html page or a simple string.
I know that in situations where a auth system intercepts the ajax request and provides an html form can be handled using loginRequired marker, but for situations other than this where we dont know what response can come to this datasource how we can handle this , like in my case the static content is served by apache and dynamic content by tomcat, and in cases where tomcat is down but apache is up i can get a html error page, in this case transform response is never called and the gird attached to the datasource just keep displaying "loading data".
TIA
I am using a RESTDatasource that get data from a sevlets in json format,
and i need to handle situations where response that this datasource gets is other than a json string, say a html page or a simple string.
I know that in situations where a auth system intercepts the ajax request and provides an html form can be handled using loginRequired marker, but for situations other than this where we dont know what response can come to this datasource how we can handle this , like in my case the static content is served by apache and dynamic content by tomcat, and in cases where tomcat is down but apache is up i can get a html error page, in this case transform response is never called and the gird attached to the datasource just keep displaying "loading data".
TIA
Comment