Re: array parameter bug?
"Daniel P. Berrange" <[email protected]> Wed, 28 Apr 2004 19:03:46 +0100
| Newsgroups | gmane.linux.redhat.ccm.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 12, 2004 at 11:31:31PM +0800, Jun Yamog wrote: > Hi, > > I would like to ask if there is a bug in ArrayParamter. Using a > MultipleSelect or an ArrayParameter as a Global state param makes the > values grow larger and larger. I have a test code that I have written > below to show this. I really need this in a real world scenario. In > the real world I have a form that serves as a filter of the paginated > results. What happens is after a couple of filters the query string > gets too long. I have tried several work-arounds, like using hidden var > and repopulating the multiple select. I think it boils that if the var > is a global and array parameter. I need it as global since external > stuff uses the form and also so the paginator can pickup the current > state of the filter form. > > Try the code below, you can comment out "addGlobalStateParam" and see > that it does not happen anymore. Is this a bug or am I not using > MultipleSelect properly? Thanks very much. I believe that if you have a parameter as both a global state param /and/ assigned to a form widget, then you need to call m_sel.setPassIn(true) At least I'm pretty sure this I what I used to do for one of our search forms that needed to accept a param passed in. Dan. -- |=- Daniel P. Berrange - [email protected] -=| |=- Red Hat, 338 Euston Road, London, NW1 3BT. +44 (0)7977 267 243 -=| |=- -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| -- Redhat-ccm-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/redhat-ccm-list Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQFAj/ICs9/3Qn07lQURAqg4AJ9DJ3Aqo5Wxwo6okHu2BR6PMWFxEQCeJ27K pxiDiKyGiXG8jP/gLrJgTP0= =G7bZ -----END PGP SIGNATURE-----