RE: multiple select

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Jancsi,

Use a ListSelectionModel (which supports multiple selections), and put that
in the state. In other words,

    ListSelectionModel lsm = DefaulListSelectionModel();
    lsm.addSelectionInterval(1);
    lsm.addSelectionInterval(2);
    sm.putState(GForm.DAMAGE_CONCERNS_ID, lsm);

Then later you can pull the the lsm out of state and apply it to a BSelect
via bselect.setSelectionModel(...)

That make sense?

Christian
----------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Jancsi A.
> Farkas(fx)
> Sent: Saturday, July 12, 2003 2:34 AM
> To: [email protected]
> Subject: [Barracuda] multiple select
>
>
> Hello!
>
> I have a problem with a multiple select. How can I save in StateMap the
> value of the selected indexes?
>
> sm.putState(GForm.DAMAGE_CONCERNS_ID, new String[]{"1","2"});
>
> seems like is not working. (1,2 are the values of the selected indexes)
>
> Thank you
>
> 	Jancsi
>
>
>
>
>
>
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.