Login  Register

Re: Users - how is the response identified

Posted by Souvik Saha Bhowmik on Jun 30, 2006; 7:37am
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-how-is-the-response-identified-tp140332p140333.html

I  am not sure whether this is informative or not. As far as I have
seen , in case of events the return string is read by controller as
response.
In case of service the value of key "responseMessage" in the return
Map is read as the response by the controller. So you need to
manipulate your code to give desired response.
Souvik



On 30 Jun 2006 03:04:35 -0000, [hidden email]
<[hidden email]> wrote:

> How is the response identified by the request handler when one request-map
> contains several view responses?Example :
>
>
> &nbsp;
> \" &lt;request-map uri=\"finalizeOrder\"&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;security https=\"true\"
> auth=\"true\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;event type=\"java\"
> path=\"org.ofbiz.order.shoppingcart.CheckOutEvents\"
> invoke=\"finalizeOrderEntry\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"addparty\"
> type=\"view\" value=\"setAdditionalParty\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"customer\"
> type=\"view\" value=\"custsetting\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"shipping\"
> type=\"view\" value=\"shipsetting\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"options\"
> type=\"view\" value=\"optionsetting\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"payment\"
> type=\"view\" value=\"billsetting\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"term\"
> type=\"view\" value=\"orderTerm\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"sales\"
> type=\"request\" value=\"calcShipping\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"po\"
> type=\"view\" value=\"confirm\"/&gt;
>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;response name=\"error\"
> type=\"request\" value=\"orderentry\"/&gt;
>
> &nbsp;&nbsp;&nbsp; &lt;/request-map&gt;\"
>
>
> Thanks and regards&nbsp;
>
> Purani&nbsp;
>