I have a WebPage , containing a gmap2 and a Panel with a ListView inside.
I added the panel to the gmap2's onClick(AjaxRequestTarget ...) ,
So when user clicks the gmap , the ListView (in the Panel) will be updated.
It worked fine.

Today , I want to add a "show/hide" link in the panel , to show/hide the
ListView.

Because of the error :
"This component is a repeater and cannot be repainted via ajax directly"
so , I wrap the ListView with a WebMarkupContainer : listViewContainer.
And I also added this :
listViewContainer.setOutputMarkupPlaceholderTag(true);

The listView show/hide now works fine.
BUT , when user clicks the gmap , the ListView doesn't update anymore.
Why ?
Is there any solutions ? Thanks a lot.

Reply via email to