RE: How to display a grid with empty cells

2012-08-09 Thread Paul Bors
Make use of the EmptyPanel class for the null or empty models. You could also simply call setVisible(false) on your component if you can hide it all together. http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/panel/Emp tyPanel.html ~ Thank you, Paul Bors -Original

Re: How to display a grid with empty cells

2012-08-09 Thread Alec Swan
I tried returning nulls for blank items from data provider but as you said it feels like a hack because now my GridView#populateItem() needs to handle items with null model objects. The way GridView behaves is confusing because it displays the entire row of cells (some potentially blank) if the

How to display a grid with empty cells

2012-08-08 Thread Alec Swan
Hello, I am using Wicket 1.4.17 and need to display a 3x3 table with all of its cells, some of which may not have a model and hence blank. So, if my DataProvider returns 0 elements than I want all 9 cells to be shown as blank. I started using GridView and overrode its populateEmptyItem() method

Re: How to display a grid with empty cells

2012-08-08 Thread Bertrand Guay-Paquet
Hi, I haven't used the GridView directly so I can't help you with it specifically. However, have you considered modifying your provider to always return 9 records with some having an empty placeholder? It's definitely a hack, but it may be worth a try. Bertrand On 08/08/2012 10:56 PM, Alec