You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Corbin, James" <jc...@iqnavigator.com> on 2011/12/09 00:28:57 UTC

Grid Layout Question

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.





Re: Grid Layout Question

Posted by Igor Vaynberg <ig...@gmail.com>.
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 <jc...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org