Re: Limiting the selections in an xforms:select

Posted by Marco Lebel on
URL: https://discuss.orbeon.com/Limiting-the-selections-in-an-xforms-select-tp32885p32887.html

Alex,

The second option that you have described where you have two select and move
one item from one select to another... Is there a chance we could have a
widget that does just that... instead of having to build it every single
time.  I am just asking :-)  or maybe you can point me in a direction that
would allow an easy template usage...  Yep I am lazy...

I think it would be a nice feature


>From: "Alessandro Vernet" <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: [ops-users] Limiting the selections in an xforms:select
>Date: Wed, 21 Feb 2007 15:09:14 -0800
>
>Hi Chris,
>
>On 2/21/07, Chris Bailey <[hidden email]> wrote:
>>I was wondering if there any way of restricting the number of selections
>>that can be made with an xforms:select?
>
>Like Ryan said, you can have an <xforms:bind constraint="..."> that
>checks if less than x values are selected. This won't prevent users
>from selecting more values, but if they do the control will become
>invalid.
>
>You can also have your own event handler for xforms-value-changed, and
>set the value of the node to the first x values. This way when the
>user selects too many values, the last value will be automatically
>removed.
>
>You can also imagine a UI with 2 lists, when the user moves items from
>the first to the second by pointing to an item in the first list and
>clicking on a button. When x values are selected, then you disable the
>button with a bind readonly.
>
>Alex
>--
>Orbeon Forms - Web 2.0 Forms for the Enterprise
>http://www.orbeon.com/
>

>
>--
>You receive this message as a subscriber of the [hidden email]
>mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

_________________________________________________________________
http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 
From January 26 to February 8, 2007




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws