I'm using a Loop now (on a different page).
Then I get a WicketRuntimeException: The component(s) below failed to
render:
1. [Component id = name, page = se.optimatika.blapp.gui.PgEvaluate, path
= 3:instruments:0:name.Label, isVisible = true, isVersioned = true]
..
I can't see what's
this usually means you added a component to the component tree, but it was never referenced in the markup so it was not rendered - nor will it ever be.If you show us more code we might be able to help you more.
-IgorOn 4/6/06, Anders Peterson [EMAIL PROTECTED] wrote:
I'm using a Loop now (on a
this is the page. Can't I add to the LoopItem?
Loop tmpLoop = new Loop(instruments, Instrument.ALL.size()) {
protected void populateItem(LoopItem anItem) {
int tmpIter = anItem.getIteration();
anItem.add(new Label(name,
you certainly can, but the problem is that you do not reference one of the components in your markup. perhaps one of those labels you add to the loop item.-IgorOn 4/6/06,
Anders Peterson [EMAIL PROTECTED] wrote:
this is the page. Can't I add to the LoopItem?Loop tmpLoop = new Loop(instruments,
Igor Vaynberg wrote:
On 4/4/06, Anders Peterson [EMAIL PROTECTED] wrote:
That worked!
I also had to move the declaration of tmpInstrument to inside the
populateItem method (otherwise all rows were the same).
not really sure what you mean here
I have two ListViews - one for the rows and one
Anything would have worked as long as the list that you return is
fresh by either using a detachable model, or one of the models that
re-evaluate on every call, like PropertyModels or e.g. a model like:
IModel listViewModel = new Model() {
Object getObject(Component c) {
return
That worked!
I also had to move the declaration of tmpInstrument to inside the
populateItem method (otherwise all rows were the same).
Thanks!
(I feel this was a bit more complicated than it should be.)
Could this have been done with a CompoundPropertyModel and Loop:s
instead of ListView:s
On 4/4/06, Anders Peterson [EMAIL PROTECTED] wrote:
That worked!I also had to move the declaration of tmpInstrument to inside thepopulateItem method (otherwise all rows were the same).not really sure what you mean here
Thanks!(I feel this was a bit more complicated than it should be.)Could this
while it is true that new Model() { getObject() . will work, it is better to use AbstractReadOnlyModel as the base instead because it will error if you call setObject() on it by mistake.-Igor
On 4/4/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Anything would have worked as long as the list
have you seen GridView in extensions? it wraps the listview inside listview idea and adds paging, etc.if you have a fixed set of columns for each row there is DataGridView or a higher level DataTable also in extensions.
there are examples of these in wicket-examples under repeaters.-IgorOn 4/4/06,
10 matches
Mail list logo