You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by DLLongo <di...@gmail.com> on 2008/06/12 16:08:55 UTC
Problem with checkgroup and tree
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org