ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Levenimeux <yassine.elkachch...@gmail.com>
Subject AJAX JSON response
Date Thu, 01 Jul 2010 08:14:11 GMT

"Hi everybody ;
i'm  an ofbiz framework beginner developper and in the application i'm
developping i need to use AJAX in the client side. i'm now try to use Json
for the response but i get no result . when i fire a request to the
controler , instead of  updating the div i've prepared in the client side
page i get a downlodable file wich content is the following one :
 then  i suppose that i have this type of response because in my webapp
controller there is no handler for the type Json .so  i search in ofbiz for
any handler of the json  type and i find as reponse the common-controller of
the common component in ofbiz (common
/webcommon/webinf/common-controller.xml). while reading this controller and
looking for any handler of the json type i found this comment :
<!-- These event handlers have been deprecated, if you need to send json
responses then chain
         the json request from this controller after calling your event
    <handler name="jsonservice" type="request"
    <handler name="jsonservice-multi" type="request"
    <handler name="jsonsimple" type="request"
    <handler name="jsonjava" type="request"
so i make a copy of the last line in this comment to my app controller but i
get the same response as described before... so now i have no idea of how to
use this Json type in my webapp controller ...
 can anyone explain me the  meaning of the comment i found in the
common-cotroller or 
can anyone explain me the way to use Ajax with the JSON type in the
controller  and some link about the subject will be welcome
thank for advance ....  "

View this message in context: http://ofbiz.135035.n4.nabble.com/AJAX-JSON-response-tp2274772p2274772.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

View raw message