Comments? Feedback?

This wiki does not yet support public comments (a limitation of Google Sites), so we encourage you to post your comments either:

On Twitter by responding to @orbeon.

On our community mailing list: subscribe sending an email to ops-users-subscribe@ow2.org (content of subject/body doesn't matter), you'll get a response with the email to use to send your message to the community mailing list.

Recent site activity

Projects‎ > ‎

XForms - Validation enhancements

Rationale

  • Provide form author with more flexibility to indicate
    • required fields
    • visited fields
    • invalid fields
  • Currently, CSS gives some control, but not full control.

Ideas

  • Use XBL as template language to provide full flexibility?
  • Orbeon provides default implementation which satisfies most case

Issues to solve

  • "visited" property must be handled better
    • either natively
    • or using custom MIPs
    • or other solution
    • need ability to better control notion of "visit"
  • IE 6 selectors are weak so might need more combined classe produced to cover all cases

Example XBL code


<xbl:binding element="fr|input">
    <xbl:resources>
        <!-- Style determines visibility of images -->
        <xbl:style>
            ...
        </xbl:style>
    </xbl:resources>
    <xbl:template>
        <!-- Group will have MIP classes -->
        <xforms:group xbl:attr="ref bind model context">
            <xhtml:img class="fr-required-field" src="..." alt="..."/>
            <xhtml:img class="fr-required-visited-field" src="..." alt="..."/>
            <!-- Control binds to . -->
            <xforms:input ref="." xbl:attr="...">
                <xbl:content includes="xforms|label, xforms|hint, xforms|alert, xforms|help"/>
            </xforms:input>
        </xforms:group>
    </xbl:template>
</xbl:binding>

Sign in  |  Recent Site Activity  |  Revision History  |  Terms  |  Report Abuse  |  Print page  |  Powered by Google Sites