Hi,
I'm trying to make an image subclass that shows an icon. Which icon it
shows depends on its model object, which is a boolean. Problem is, I'm
not getting the model object: it's always null. If I use a Label instead
of InStockIconImage, it works: the label shows a boolean (true/false).
, but not if I depend
on the automatic property resolution that works well if I use a Label.
How can I get it to work if I don't want to pass a PropertyModel explicitly?
Erwin
On 6/4/10 9:15 AM, Erwin Bolwidt wrote:
Hi,
I'm trying to make an image subclass that shows an icon. Which icon it
shows
then.
Cheers,
Erwin Bolwidt
On 6/4/10 9:33 AM, Ernesto Reinaldo Barreiro wrote:
Maybe this is related to this override on Image class?
@Override
protected IModel? initModel()
{
// Images don't support Compound models. They either have a
simple
what the wicket designers think about this.
Kind regards,
Erwin Bolwidt
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
().getParent();
int index = dataTable.getCurrentPage() * dataTable.getRowsPerPage() +
item.getIndex() + 1;
cellItem.add(new Label(componentId, String.valueOf(index)));
}
}
Regards,
Erwin Bolwidt
On 5/11/10 9:56 AM, cleverpig wrote:
hi,everybody!
I used this way to build dataTable:
DataProvider+Column
versus Pages. I also
introduce two new useful components: GenericPanel and ComponentLink.
This is the second post on the topic of Components versus Pages and the
last one for now; next article will be about models.
Regards,
Erwin Bolwidt
that we've found
most convenient.
Regards,
Erwin Bolwidt