I have followed the example exactly(from what I can see) and when I click my
"Select All" button nothing happens to the other buttons. Here is the code:

This is in the constructor of a WizardStep:

                        Form form = new Form("form")
                        {
                                private static final long serialVersionUID = 1L;

                                @Override
                                protected void onSubmit()
                                {
                                        super.onSubmit();
                                }
                                
                        };
                        LoadableDetachableModel contactsModel = new 
LoadableDetachableModel()
                        {
                                private static final long serialVersionUID = 1L;
                                
                                @Override
                                protected Object load()
                                {
                                        ContactSession sess = new 
ContactSessionImpl();
                                        List<Contact> result = new 
ArrayList<Contact>();
                                        try
                                        {
                                                result = 
sess.getContacts(contactsLogin.getLoginName(),
contactsLogin.getPassword(), contactsLogin.getService());
                                        }
                                        catch(ContactsRetrievalException e)
                                        {
                                                //TODO:
                                                e.printStackTrace();
                                        }
                                        return result;
                                }
                                
                        };
                        CheckGroup group = new CheckGroup("group", new 
ArrayList());
                        group.add(new CheckGroupSelector("groupselector"));
                        ListView contacts = new ListView("contacts", 
contactsModel)
                        {
                                private static final long serialVersionUID = 1L;

                                @Override
                                protected void populateItem(ListItem item)
                                {
                                        Contact contact = 
(Contact)item.getModelObject();
                                        CheckBox contactCheckBox = new 
CheckBox("contactCheckBox", new
Model());//TODO: (JBC)
                                        Model titleModel = null;
                                        if(contact.getName() == null || 
contact.getName().trim().length() == 0)
                                        {
                                                titleModel = new 
Model(contact.getEmailAddress());
                                        }
                                        else
                                        {
                                                titleModel = new 
Model(contact.getName());
                                        }
                                        Label contactTitle = new 
Label("contactTitle", titleModel);
                                        Label contactEmail = new 
Label("contactEmail", new
Model(contact.getEmailAddress()));
                                        item.add(contactCheckBox);
                                        item.add(contactTitle);
                                        item.add(contactEmail);
                                }
                        };
                        group.add(contacts);
                        
                        form.add(group);
                        add(form);


Could someone please tell me what I am doing wrong?

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/CheckGroupSelector-not-working-at-all-in-a-Wizard-tp20863784p20863784.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to