Re: problem with editable datatable

2012-12-01 Thread William Speirs
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 hannes1...@yahoo.de 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




problem with editable datatable

2012-11-30 Thread hannes1608
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:
ListIColumnlt;Feststellung, String columns = new
ArrayListIColumnlt;Feststellung, String();
columns.add(new PropertyColumnFeststellung, String(new
ModelString(Status), status) {
@Override
public void populateItem(ItemICellPopulatorlt;Feststellung item,
String componentId, IModelFeststellung rowModel) {
super.populateItem(item, componentId, rowModel);
item.add(new CheckBox(status));
}
});
this.table = new DefaultDataTableFeststellung, String(feststellungen,
columns, this.dataProvider, 10);

Html:
form wicket:id=tableForm


/form

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 wicket:extend.

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



Re: problem with editable datatable

2012-11-30 Thread hannes1608
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 wicket:extend.

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