Did you look at wicket ajax debugin browser? It usually gives quite good clues about what's missing ...
2012/6/9 kshitiz <[email protected]>: > Hi, > > I am trying to refresh ajax container after firing an event. The code is: > > *final WebMarkupContainer searchContainer = new WebMarkupContainer( > "searchContainer"); > searchContainer.setOutputMarkupId(true);* > > > AjaxFallbackButton ajaxSearchButton = new AjaxFallbackButton( > "searchButton", searchForm) { > > @Override > public void onSubmit(AjaxRequestTarget target, final > Form<?> form) { > if (target != null) { > > try { > // some actions... > } catch (Exception exception) { > } > *target.add(searchContainer);* > } > } > } > > > Label userLabel = new Label("userLabel", "List of Users"); > Label numberOfUserLabel = new Label("numberOfUserLabel", new > Integer( > numberOfUsers).toString()); > > final PageableListView<UserDomain> userDomainListView = new > PageableListView<UserDomain>( > "user", userDomainList, resultsPerPage) { > private static final long serialVersionUID = 1L; > > @Override > protected void populateItem(final ListItem<UserDomain> > listItem) { > // populating list > } > > }; > > * userDomainListView.setVisible(!userDomainList.isEmpty()); > userLabel.setVisible(!userDomainList.isEmpty()); > numberOfUserLabel.setVisible(!userDomainList.isEmpty()); > > searchContainer.add(userLabel); > searchContainer.add(userDomainListView); > searchContainer.add(numberOfUserLabel); > * > > But the list view is not getting refreshed? I am using the same technique in > other pages and it is working.. what be the reason..?? Any suggestion can > work for me... > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Ajax-refresh-not-working-in-a-case-while-working-in-similar-other-cases-tp4649794.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
