[Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-04-30 Thread James Perry
I am trying to model a hashset in a wicket webpage that allows to edit an user's details. I have a hashset of the user's roles however I cannot model them using the CheckBoxMultipleChoice component. How can I model this hashset so roles can selected and deselected. Thanks in advance, - James ---

Re: [Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-04-30 Thread Eelco Hillenius
new ArrayList(yourSet); Eelco On 4/30/07, James Perry <[EMAIL PROTECTED]> wrote: > I am trying to model a hashset in a wicket webpage that allows to edit an > user's details. I have a hashset of the user's roles however I cannot model > them using the CheckBoxMultipleChoice component. How can I

Re: [Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-05-02 Thread James Perry
I am having problems with this CheckBoxMultipleChoice component. I have converted my hashset of roles into a list but it shows the roles as check boxes; rather then choice of roles needed and their roles are correctly selected. I don't know how I can achieve this?!?!? Here is my inner class:

Re: [Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-05-02 Thread Igor Vaynberg
is there a reason you are not using a choice renderer? -igor On 5/2/07, James Perry <[EMAIL PROTECTED]> wrote: I am having problems with this CheckBoxMultipleChoice component. I have converted my hashset of roles into a list but it shows the roles as check boxes; rather then choice of roles n

Re: [Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-05-02 Thread James Perry
The default id for the roles are 'user' and 'admin', which I feel does not need rendered to any other values. On 5/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: is there a reason you are not using a choice renderer? -igor On 5/2/07, James Perry <[EMAIL PROTECTED] > wrote: > > I am having pr

Re: [Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-05-02 Thread Igor Vaynberg
so role.tostring() is consistent and can be used as id? because that is what will be used to figure out what is selected and what is not. -igor On 5/2/07, James Perry <[EMAIL PROTECTED]> wrote: The default id for the roles are 'user' and 'admin', which I feel does not need rendered to any oth

Re: [Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-05-02 Thread James Perry
Affirmitive, the name is the the primary key in my role table On 5/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: so role.tostring() is consistent and can be used as id? because that is what will be used to figure out what is selected and what is not. -igor On 5/2/07, James Perry <[EMAIL PRO

Re: [Wicket-user] Modelling HashSets in a CheckBoxMultipleChoice

2007-05-02 Thread Igor Vaynberg
well, then set a breakpoint in listmultiplechoice.isselected() and see why that returns false where you think it should return true. -igor On 5/2/07, James Perry <[EMAIL PROTECTED]> wrote: Affirmitive, the name is the the primary key in my role table On 5/2/07, Igor Vaynberg <[EMAIL PROTECTE