Hi Jarek,
Yes, I agree. Should making a Single checkbox "required" be "mapped" to a
constraint `. = 'true'` in the source? I reckon this would make sense.
Thinking out loud, the thing is that Form Builder doesn't have a knowledge
of specific XBL components, so we would need a mechanism for XBL components
to declare that required is enforced using a constraint they provide. When
users mark the filed as required, Form Builder would add the constraint, and
conversely, when it finds that constraint, it would indicate the field as
required in the Control Settings. Maybe inside:
<fb:metadata>
<fb:validation>
<fb:required constraint=". = 'true'"/>
</fb:validation>
</fb:metadata>
We'll need to think some more about this one! And of course, just let me
know if I missed your point.
-Alex
-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from:
http://discuss.orbeon.com/