You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Job de Noo <jg...@gmail.com> on 2008/10/23 18:08:52 UTC

GridView adding item after calling populate item

Hi all,

i hava a question about the behaviour of GridView.
GridView calls the populateItem before adding the item to the rowview.
So all components i add to the gridview don't have the page reference
yet.

Is this meant to be like this?

Because it is giving me errors while adding ajax links and getting
their url. Error message i get is: No Page found for component

Job de Noo

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


Re: GridView adding item after calling populate item

Posted by Igor Vaynberg <ig...@gmail.com>.
you should not depend on the page being set in the constructor of your
components.

-igor

On Thu, Oct 23, 2008 at 9:08 AM, Job de Noo <jg...@gmail.com> wrote:
> Hi all,
>
> i hava a question about the behaviour of GridView.
> GridView calls the populateItem before adding the item to the rowview.
> So all components i add to the gridview don't have the page reference
> yet.
>
> Is this meant to be like this?
>
> Because it is giving me errors while adding ajax links and getting
> their url. Error message i get is: No Page found for component
>
> Job de Noo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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