Hello,

i have a tree and its works perfect, but when I load a gridview with the
respective data from a item, the checkgroup all doesn´t work! when I click
on the page 2 the on the navigation, checkgroup all works... why?

the page:

public class KeyPagingPanel extends Panel {

         /**
         * 
         */
        private static final long serialVersionUID = 7966985858739652043L;
        private static Logger logger = Logger.getLogger(KeyPagingPanel.class);
        
        private KeyServico keyServico;
        List<IModel> list = new ArrayList<IModel>(); 
        
        /**
     * constructor
         * @param KeyServico 
     */
    public KeyPagingPanel(String id)    
    {
        super(id);      
        this.KeyServico =
((BidManagerWebApplication)getApplication()).getKeyServico();
                
        
        DataView dataView = new DataView("pageable", new
KeysDataProvider(KeyServico))
        {

            /**
                         * 
                         */
                        private static final long serialVersionUID = 
-6643643064845215738L;
                        


                        protected void populateItem(final Item item)
            {
                Key k = (Key)item.getModelObject();
                
                item.add(new Check("checked",item.getModel()));
                list.add(new PropertyModel(item.getModel(),"checked"));
                item.add(new
Label("nome",k.getNome().getClasse().toString()));
                //other attributes
                item.add(new AttributeModifier("class", true, new
AbstractReadOnlyModel()
                {
                                        private static final long 
serialVersionUID = -7082372722222351206L;

                                        public Object getObject()
                    {
                        return (item.getIndex() % 2 == 1) ? "even" : "odd";
                    }
                }));

            }

                        
        };
        Form form = new Form("KeyFormList");   
        add(form);
        dataView.setItemsPerPage(40);
        CheckGroup checkGroup = new CheckGroup("checkgroup", list);
        form.add(checkGroup);
        checkGroup.add(new CheckGroupSelector("checkall"));
        checkGroup.add(dataView);
        form.add(new PagingNavigator("navigator", dataView));
    }
}

help...
thanks.
-- 
View this message in context: 
http://www.nabble.com/Problem-with-checkgroup-and-tree-tp17800883p17800883.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