Skip to main content

BIN bayRl Documentation

  • Author:

  • Version: 2

  • Description: An standard grid control containing lists, some of numbers or dates (simple) and one of roles (complex). They both use grid.[listformat=] to format each item and the complex list use [lct.field] to show the [role.name] field. Fill an item to see it...

  • Created: 2014-12-07

  • Modified: 2015-05-13

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='An standard grid control containing lists, some of numbers or dates (simple) and one of roles (complex). They both use grid.[listformat=#all] to format each item and the complex list use [lct.field] to show the [role.name] field. Fill an item to see it in action. '>
        <field name='users' maxOccurs='n' type='User' extra:form.listview='grid'/>
    </complexType>  
    <complexType name='User' > 
         <field name='numbers' type='xs:int' minOccurs='1' extra:lc.simple='true'  maxOccurs='n'  extra:grid.listformat='#all'  />
         <field name='strings' type='xs:string' minOccurs='1' extra:lc.simple='true'  maxOccurs='n'  extra:grid.listformat='#all'  />
         <field name='stringsNotEscaped' type='xs:string' minOccurs='1' extra:lc.simple='true'  maxOccurs='n'  extra:grid.listformat='#all'  extra:lc.escape='none'/>
        <field name='dates' type='xs:date' minOccurs='1' extra:lc.simple='true'  maxOccurs='n'  extra:grid.listformat='#all'  />
        <field name='datesWithLinks' type='xs:date' extra:grid.link='http://example.org' minOccurs='1' extra:lc.simple='true'  maxOccurs='n'  extra:grid.listformat='#all'  />
        <field name='roles' type='Role'  extra:lc.simple='true' extra:grid.listformat='#all' extra:lct.field='name' minOccurs='1' maxOccurs='n'/> 
    </complexType>
    <complexType name='Role' >
        <field name='name' type='xs:string' minOccurs='1' >
            <facet name='enumeration' value='USER'/>
            <facet name='enumeration' value='ADMIN'/>
            <facet name='enumeration' value='SUPER'/>
            <facet name='enumeration' value='MANAGER'/>
        </field>
    </complexType>
    <simpleType name='NotEmptyString' type='xs:string' extra:form.empty='false'>
        <facet name='minLength' value='1'/>
    </simpleType>