Re: problem with editable datatable
When I've had to do this, I usually use a fragment. It keeps all the HTML on a single page and is a bit cleaner I think: http://wicket.apache.org/learn/examples/usingfragments.html Bill- On Fri, Nov 30, 2012 at 8:14 AM, hannes1608 wrote: > Just realized that I have to create a new component for this. That works, > but > it's not really a nice solution. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/problem-with-editable-datatable-tp4654370p4654381.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: problem with editable datatable
thank you, but then I get the following error: Last cause: The component(s) below failed to render. Possible reasons could be that: 1) you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered), 2) if your components were added in a parent container then make sure the markup for the child container includes them in . 1. [MyPanel [Component id = panel]] 2. [CheckBox [Component id = status]] 3. [MyPanel [Component id = panel]] 4. [CheckBox [Component id = status]] 5. [MyPanel [Component id = panel]] 6. [CheckBox [Component id = status]] -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problem-with-editable-datatable-tp4654370p4654375.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
problem with editable datatable
Hi, I am using Wicket 6.3. I have searched a lot, but somehow didn't find how to solve this: I would like to have texfields and checkboxes in a datatable. The following code is not working: Java: List> columns = new ArrayList>(); columns.add(new PropertyColumn(new Model("Status"), "status") { @Override public void populateItem(Item> item, String componentId, IModel rowModel) { super.populateItem(item, componentId, rowModel); item.add(new CheckBox("status")); } }); this.table = new DefaultDataTable("feststellungen", columns, this.dataProvider, 10); Html: I get the following error message: Last cause: The component(s) below failed to render. Possible reasons could be that: 1) you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered), 2) if your components were added in a parent container then make sure the markup for the child container includes them in . 1. [CheckBox [Component id = status]] 2. [CheckBox [Component id = status]] 3. [CheckBox [Component id = status]] Is it possible what I want to do? Kind regards, Hannes -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problem-with-editable-datatable-tp4654370.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org