Re: Image subclass not getting its model object

2010-06-04 Thread Erwin Bolwidt
re improvements in the Image class 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 suppor

Re: Image subclass not getting its model object

2010-06-04 Thread Erwin Bolwidt
, it works, 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.

Image subclass not getting its model object

2010-06-04 Thread Erwin Bolwidt
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). A

How to make sure that you always have a CompoundPropertyModel

2010-05-28 Thread Erwin Bolwidt
e two concepts. I'm interested to know 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

Re: How make continous row index in dataTable

2010-05-11 Thread Erwin Bolwidt
etCurrentPage() * 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 defines+DataTable.

New blog post "Refactoring wicket Pages to Components"

2010-05-06 Thread Erwin Bolwidt
Components 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, Erw

New blog post "Components v.s. Pages"

2010-04-16 Thread Erwin Bolwidt
ntries on the things that we've found most convenient. Regards, Erwin Bolwidt