In this bookcast example there are no alert messages attached to "ratings" and "notes" elements.
http://www.orbeon.com/orbeon/xforms-bookcast/How would I add alert messages to the ratings element and textarea element in this example?
I've tried adding a line of code into <xforms:textarea element in view.xhtml .. ..
<xforms:textarea ref="notes" appearance="xxforms:autosize">
<xforms:label class="books-label">Notes</xforms:label>
<xforms:alert>testing alert .. Notes are required</xforms:alert>
</xforms:textarea>
Thanks.
[Later Edit]
I've figured it out by studying view.xhtml .. I had to add "notes" into <xforms:bind />
<xforms:bind nodeset="instance('books-instance')/book">
<xforms:bind nodeset="title" required="true()"/>
<xforms:bind nodeset="author" required="true()"/>
<xforms:bind nodeset="notes" required="true()"/></xforms:bind>