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
---
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
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:
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
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
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
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
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