Re: Grid Layout Question

2011-12-11 Thread Igor Vaynberg
gridview kind of gives it to you...

populateitem(item i) {
int x=i.getindex();
int y=i.findparent(item.class).getindex();


-igor

On Thu, Dec 8, 2011 at 3:28 PM, Corbin, James jcor...@iqnavigator.com wrote:
 I have a grid layout where I have the need to ask for the content at a 
 particular grid location.  For example, I have a 2x2 grid, give me the 
 component that I should render in slot 2,1.

 I was wondering if any of the base repeaters that wicket (or 
 wicket-extensions) would provide this kind of capability.

 The repeaters like DataTable, GridView, etc., look like they only support 
 data providers that return an iterator where I would need one that says give 
 me the component that I need to render at row A, column B and so on as the 
 Grid is rendered.

 Is there such a component in Wicket or can it be accomplished using the data 
 provider interfaces?

 Thanks,
 J.D.





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Grid Layout Question

2011-12-08 Thread Corbin, James
I have a grid layout where I have the need to ask for the content at a 
particular grid location.  For example, I have a 2x2 grid, give me the 
component that I should render in slot 2,1.

I was wondering if any of the base repeaters that wicket (or wicket-extensions) 
would provide this kind of capability.

The repeaters like DataTable, GridView, etc., look like they only support data 
providers that return an iterator where I would need one that says give me the 
component that I need to render at row A, column B and so on as the Grid is 
rendered.

Is there such a component in Wicket or can it be accomplished using the data 
provider interfaces?

Thanks,
J.D.