Note that there are some explanatory texts on larger screens.

plurals
  1. PODOJO CRUD Spring MVC
    primarykey
    data
    text
    <p>Is there any reference available for DOJO UI with Spring MVC for CRUD operations DOJO form submit yields ResponseMethod.POST not supported when using RequestMapping annotation on Spring Controller?</p> <p>Providing partial snippet for better understanding</p> <p>Annotated Spring Controller code(partial):</p> <pre><code>@RequestMapping( value = "/create", headers="Accept=application/json", method=RequestMethod.POST) public @ResponseBody Map&lt;String, ? extends Object&gt; create(@RequestParam() Object data) throws Exception { //Request processing } </code></pre> <p>Dojo Code(partial): </p> <pre><code>dojo.rawXhrPost({ postData: dojo.formToJson("contactFormDialog"), handleAs: 'json', headers: { "Content-Type": "application/json"}, load:testLoadfunction, error:testError }); </code></pre> <p>Form code: </p> <pre><code>&lt;form id="contactFormDialog" action="create.action" method="post"&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;label for="loc"&gt;Name: &lt;/label&gt;&lt;/td&gt; &lt;td&gt;&lt;input dojotype="dijit.form.TextBox" type="text" name="name" id="name"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;label for="date"&gt;Phone: &lt;/label&gt;&lt;/td&gt; &lt;td&gt;&lt;input dojotype="dijit.form.NumberTextBox" type="text" name="phone" id="phone"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;div class="dijitDialogPaneActionBar"&gt; &lt;button dojotype="dijit.form.Button" id="submit" type="submit" label="Submit" onClick="testFormAction"&gt;&lt;/button&gt; &lt;button dojotype="dijit.form.Button" id="cancel" type="button" onClick="alert('no');"&gt;Cancel &lt;/button&gt; &lt;/div&gt; &lt;/form&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload