You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Nick Pratt <nb...@gmail.com> on 2014/03/10 19:19:15 UTC

ListView - onComponentTag

Is there any reason why onComponentTag() wouldn't be invoked on a ListView:

ListView<User> users = new ListView<User>( "team-members", usersModel )
 {
@Override
protected void onComponentTag( ComponentTag tag )
 {
super.onComponentTag( tag );
int i = 0;
 }
...


I set a breakpoint on 'int i =0'; but its never hit - either on initial
page render or when the containing Panel is refreshed via Ajax. None of the
child behaviors attached to the ListView are triggered either (no
onComponentTag execution)
Wicket 6.14.0

N

Re: ListView - onComponentTag

Posted by Sven Meier <sv...@meiers.net>.
Hi,

ListView uses its markup tag to render each of its items and is not 
visible in the output by itself - thus it doesn't contribute anything to 
the component tag.

Sven



On 03/10/2014 07:19 PM, Nick Pratt wrote:
> Is there any reason why onComponentTag() wouldn't be invoked on a ListView:
>
> ListView<User> users = new ListView<User>( "team-members", usersModel )
>   {
> @Override
> protected void onComponentTag( ComponentTag tag )
>   {
> super.onComponentTag( tag );
> int i = 0;
>   }
> ...
>
>
> I set a breakpoint on 'int i =0'; but its never hit - either on initial
> page render or when the containing Panel is refreshed via Ajax. None of the
> child behaviors attached to the ListView are triggered either (no
> onComponentTag execution)
> Wicket 6.14.0
>
> N
>


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