You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by nino martinez wael <ni...@gmail.com> on 2011/07/04 10:07:44 UTC

1.5 rc5.2 IVisitor on page?

Hi

I've had an interesting experience,  I have a visitor that searches
for certain panels on a page. The page contains a few listviews and 2
forms as children these 2 contain the panels that the listviews also
contain. In the onConfig of the webpage I call the visitor.

So the strange thing is that the visitor in the initial render of the
page only finds the 2 form panels, and not the ones in the listviews,
in the subsequent renders via ajax or page refresh it does find them.

What could be the cause?

regards nino

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


Re: 1.5 rc5.2 IVisitor on page?

Posted by Andrea Del Bene <ad...@ciseonweb.it>.
mmm...I didn't find any wiki about it.
> I sorta figured it had something todo with the fact that
> onbeforerender was called at a later time than onConfigure.
>
> Is there a good description of the timeline of these methods somewhere?
>
> 2011/7/4 Andrea Del Bene<ad...@ciseonweb.it>:
>> Hi nino,
>>
>> AbstractRepeater class (superclass of ListView) calls onPopulate during
>> onBeforeRender, so as long as this event is not triggered listviews should
>> be empty.
>>> changing it from onconfigure to onbeforerender does the trick.. Im not
>>> sure what the difference are though..
>>>
>>> 2011/7/4 nino martinez wael<ni...@gmail.com>:
>>>> Hi
>>>>
>>>> I've had an interesting experience,  I have a visitor that searches
>>>> for certain panels on a page. The page contains a few listviews and 2
>>>> forms as children these 2 contain the panels that the listviews also
>>>> contain. In the onConfig of the webpage I call the visitor.
>>>>
>>>> So the strange thing is that the visitor in the initial render of the
>>>> page only finds the 2 form panels, and not the ones in the listviews,
>>>> in the subsequent renders via ajax or page refresh it does find them.
>>>>
>>>> What could be the cause?
>>>>
>>>> regards nino
>>>>
>>>>


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


Re: 1.5 rc5.2 IVisitor on page?

Posted by nino martinez wael <ni...@gmail.com>.
I sorta figured it had something todo with the fact that
onbeforerender was called at a later time than onConfigure.

Is there a good description of the timeline of these methods somewhere?

2011/7/4 Andrea Del Bene <ad...@ciseonweb.it>:
> Hi nino,
>
> AbstractRepeater class (superclass of ListView) calls onPopulate during
> onBeforeRender, so as long as this event is not triggered listviews should
> be empty.
>>
>> changing it from onconfigure to onbeforerender does the trick.. Im not
>> sure what the difference are though..
>>
>> 2011/7/4 nino martinez wael<ni...@gmail.com>:
>>>
>>> Hi
>>>
>>> I've had an interesting experience,  I have a visitor that searches
>>> for certain panels on a page. The page contains a few listviews and 2
>>> forms as children these 2 contain the panels that the listviews also
>>> contain. In the onConfig of the webpage I call the visitor.
>>>
>>> So the strange thing is that the visitor in the initial render of the
>>> page only finds the 2 form panels, and not the ones in the listviews,
>>> in the subsequent renders via ajax or page refresh it does find them.
>>>
>>> What could be the cause?
>>>
>>> regards nino
>>>
>> ---------------------------------------------------------------------
>> 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
>
>

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


Re: 1.5 rc5.2 IVisitor on page?

Posted by Andrea Del Bene <ad...@ciseonweb.it>.
Hi nino,

AbstractRepeater class (superclass of ListView) calls onPopulate during 
onBeforeRender, so as long as this event is not triggered listviews 
should be empty.
> changing it from onconfigure to onbeforerender does the trick.. Im not
> sure what the difference are though..
>
> 2011/7/4 nino martinez wael<ni...@gmail.com>:
>> Hi
>>
>> I've had an interesting experience,  I have a visitor that searches
>> for certain panels on a page. The page contains a few listviews and 2
>> forms as children these 2 contain the panels that the listviews also
>> contain. In the onConfig of the webpage I call the visitor.
>>
>> So the strange thing is that the visitor in the initial render of the
>> page only finds the 2 form panels, and not the ones in the listviews,
>> in the subsequent renders via ajax or page refresh it does find them.
>>
>> What could be the cause?
>>
>> regards nino
>>
> ---------------------------------------------------------------------
> 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


Re: 1.5 rc5.2 IVisitor on page?

Posted by nino martinez wael <ni...@gmail.com>.
changing it from onconfigure to onbeforerender does the trick.. Im not
sure what the difference are though..

2011/7/4 nino martinez wael <ni...@gmail.com>:
> Hi
>
> I've had an interesting experience,  I have a visitor that searches
> for certain panels on a page. The page contains a few listviews and 2
> forms as children these 2 contain the panels that the listviews also
> contain. In the onConfig of the webpage I call the visitor.
>
> So the strange thing is that the visitor in the initial render of the
> page only finds the 2 form panels, and not the ones in the listviews,
> in the subsequent renders via ajax or page refresh it does find them.
>
> What could be the cause?
>
> regards nino
>

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