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 :
>
>
>
> \" <request-map uri=\"finalizeOrder\">
>
> <security https=\"true\"
> auth=\"true\"/>
>
> <event type=\"java\"
> path=\"org.ofbiz.order.shoppingcart.CheckOutEvents\"
> invoke=\"finalizeOrderEntry\"/>
>
> <response name=\"addparty\"
> type=\"view\" value=\"setAdditionalParty\"/>
>
> <response name=\"customer\"
> type=\"view\" value=\"custsetting\"/>
>
> <response name=\"shipping\"
> type=\"view\" value=\"shipsetting\"/>
>
> <response name=\"options\"
> type=\"view\" value=\"optionsetting\"/>
>
> <response name=\"payment\"
> type=\"view\" value=\"billsetting\"/>
>
> <response name=\"term\"
> type=\"view\" value=\"orderTerm\"/>
>
> <response name=\"sales\"
> type=\"request\" value=\"calcShipping\"/>
>
> <response name=\"po\"
> type=\"view\" value=\"confirm\"/>
>
> <response name=\"error\"
> type=\"request\" value=\"orderentry\"/>
>
> </request-map>\"
>
>
> Thanks and regards
>
> Purani
>