[Catalyst] HTML::Widget - select size/multiple [patch]

ADSJ (Adam Sjøgren) adsj at novozymes.com
Fri Mar 10 16:03:48 CET 2006


  Hi.


In the pod for HTML::Widget::Element::Select it says:

       size

       The size of a select element determines whether it will be displayed as
       a dropdown (size = 1), or a multi-select list element. The default is
       1.

For a select-element of size larger than one, the attribute "multiple"
must be set for the user to be able to actually select more than one
option.

It is unclear to me whether Select.pm is supposed to do this
automatically for size > 1.

I think either the documentation should mention that you need to call
 ->attributes({multiple=>'multiple'}) - or Select.pm should do that
automatically when size > 1.

(The automatical thing may be annoying if one wants size > 1 and limit
the number of options possible to select to one or none - although I
don't know if that is a very common situation).

What do you think?

Attached is a patch against HTML::Widget 1.04 that tries to extend the
documentation.

I will be happy to provide a patch that implements the automatic thing
if y'all think that is a better approach.


  Best regards

   Adam

-- 
                                                          Adam Sjøgren
                                                    adsj at novozymes.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select-multiple-pod.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060310/8e55c27a/attachment.bin 


More information about the Catalyst mailing list