Orbeon builder - naming limitations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Orbeon builder - naming limitations

Jarek
Hi,
what is the purpose of the limitation in name convention in the builder?
" Name is already in use or incorrect "
I want to have two controls with exactly the same name e.g.

<form>
    <section-1>
        <Name/>
        
    </section-1>
    <section-2>
        <Name/>
    </section-2>
</form>

I can guess because of the structure of the resources but I think it shouldn't be a limitation.
Labels/hints/alerts should be put in the same structure as the main instance e.g. 

<resource>
    <section-1>
        <Name>
            <label>Your name</label>
            <hint>Easy to find in your ID</hint>
        </Name>
        
    </section-1>
    <section-2>
        <Name>
            <label>Your girlfired name</label>
            <hint>You have to type only one name :)</hint>
        </Name>
    </section-2>
</resource>


Jarek

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon builder - naming limitations

Alessandro  Vernet
Administrator
Hi Jarek,

The main motivation for this restriction is that it allows form authors to
refer to fields by name, as in `$first-name`. If the name `first-name`
wasn't guaranteed to be unique, you would also have to include the section
name when referring to it (and with the support of arbitrarily nested
sections, all the sections in the hierarchy), which in most cases creates an
unnecessary overhead.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet