dojoForm - Create a Dojo Form
Creates or does not create a dojo form element for the page.
Category
dojoSyntax
dojoForm="true|false"
Usage
In Design mode, click the Dojo tab under Properties and look for Include Dojo form module on page, or click All Properties and look for dojoForm under dojo.By
default, the page form is not dojo. The generated XML for a dojo
form
element
has the following appearance:<form id="view:_id1" method="post"
action="/foo.nsf/xpage2.xsp?SessionID=CIENY5RD3Q" class="xspForm"
enctype="multipart/form-data"
dojoType="dijit.form.Form">
A non-dojo form lacks the dojoType
attribute.The createForm - Create Form Flag attribute must not
be false
.
Examples
This XPage specifies a dojo form.<xp:view xmlns:xp="http://www.ibm.com/xsp/core" dojoForm="true">
<xp:this.data>
<xp:dominoDocument var="document1" formName="form1"></xp:dominoDocument>
</xp:this.data>
<xp:inputText id="inputText1" value="#{document1.subject}"
style="font-weight:bold">
</xp:inputText>
<xp:button value="submit" id="button1" style="font-weight:bold">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete" immediate="false" save="true">
</xp:eventHandler>
</xp:button>
</xp:view>