Hi, I have removed almost everything...resultPanel contains only sysout:
public class SearchResultPanel extends BasePanel { private static int temp = 0; @Override protected void onBeforeRender() { super.onBeforeRender(); System.out.println("I am here....."); } * public SearchResultPanel(String id) { super(id); System.out.println("temp is " + temp); temp++; *} *And there is no container now. Search page where result panel is :* public Search(final PageParameters pageParameters) { super(pageParameters); Form<SearchDomain> searchForm = new Form<SearchDomain>("searchForm", new CompoundPropertyModel<SearchDomain>(searchDomain)); final Panel searchFeedbackPanel = new FeedbackPanel( "searchFeedbackPanel"); searchFeedbackPanel.setOutputMarkupId(true); searchFeedbackPanel.setOutputMarkupPlaceholderTag(true); * final SearchResultPanel searchResultPanel = new SearchResultPanel( "searchResultPanel"); searchResultPanel.setOutputMarkupId(true); searchResultPanel.setOutputMarkupPlaceholderTag(true); * searchForm.setModelObject(searchDomain); // defining text field for user to search final RequiredTextField<String> searchTextField = new RequiredTextField<String>( "search", Model.of(searchDomain.getSearch())); AjaxFallbackButton ajaxSearchButton = new AjaxFallbackButton( "searchButton", searchForm) { @Override public void onSubmit(AjaxRequestTarget target, final Form<?> form) { if (target != null) { try { target.add(searchResultPanel); target.add(searchFeedbackPanel); } catch (Exception exception) { error(exception.getMessage()); error = true; } } } }; searchForm.add(searchTextField); * searchForm.add(searchFeedbackPanel); searchForm.add(searchResultPanel); * searchForm.add(ajaxSearchButton); add(searchForm); } *Actually what is happening, when I refresh the whole page manually, it enters the resultPanel and temp value is displayed in console. But nothing happens when that panel is refreshed...!!* -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-not-getting-refreshed-tp4649807p4649838.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org