Ofbiz Example ajax study enquiry

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Ofbiz Example ajax study enquiry

will
Hi All, I am a newbie of ofbiz, when I was studying the ofbiz Example. I got questions for the ajax example

<form name="ListExamplesAjax" extends="ListExamples" type="list" paginate-target="authview/findExampleAjax">
- <actions>
- <entity-condition entity-name="Example">
  <order-by field-name="exampleName" /> 
  </entity-condition>
  </actions>
- <field name="exampleName" title="${uiLabelMap.CommonName}" id-name="exampleName">
- <display>
- <in-place-editor url="/example/control/updateExample" cancel-control="button" saving-text="Updating..." text-between-controls="">
  <simple-editor /> 
  <field-map field-name="exampleId" from-field="exampleId" /> 
  <field-map field-name="statusId" from-field="statusId" /> 
  </in-place-editor>
  </display>
  </field>


1:Why there would be a authview in the target?
2:Why in-place-editor url="/example/control/updateExample ? as in the controller.xml, it is redirected to the EditExample, but in fact, it is redirected to findExampleAjax screen
<request-map uri="updateExample">
  <security https="true" auth="true" /> 
  <event type="service" invoke="updateExample" /> 
 <response name="success" type="request-redirect" value="EditExample">
  <redirect-parameter name="exampleId" /> 

3. <request-map uri="createExampleAjax">
  <security https="true" auth="true" /> 
  <event type="service" invoke="createExample" /> 
  <response name="success" type="request" value="json" /> 
  <response name="error" type="request" value="json" /> 
  </request-map>
why the value is json, and what will happen behind it

If there is any studying material regarding to the ofbiz example ?