An observant reader noticed that when the form is submitted after the changes in Chapter 5, the value for the text in the dijit.Editor widget is not being submitted to the server.
The problem is that an additional field must be included in the <div> for the widget and it is that field which will then be submitted to the server. Following is the corrected code for the widget (the source code download has also been updated).
<div class="formRow">
<label for="comments">Comments:</label>
<textarea name="comments" id="comments"
dojoType="dijit.Editor"
xplugins="['bold','italic','|'
>
</textarea>
</div>
<input type="hidden" name="comments2" id="comments2"
/>
</div>
You should also download the new "Shared/submit.jsp" file (included in the new source code zip) so that you can see the data once the form is submitted.
Comments