wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sardo <mark.willi...@power-oasis.com>
Subject Class that extends AjaxTabbedPanel does not remember selected panel on page refresh
Date Thu, 19 Jul 2012 21:29:30 GMT


I have a class that extends AjaxTabbedPanel, it displays a busy indicator
while the ajax call is running (see code below). This all works fine during
these ajax calls; so a busy indicator is displayed and the tab that has been
selected is displayed correctly in the view.  However, if the page is
refreshed the first tab in the group of tabs is shown as being selected and
the app forgets which tab was previously selected.  To me it seems like the
initial page state for the tabs has been preserved and used again on
refreshing the page (a bit like it's a static model). I can't figure out
though what needs to be done to fix.

public class IndicatingAjaxTabbedPanel extends AjaxTabbedPanel {

	private static final long serialVersionUID = 1L;

	public IndicatingAjaxTabbedPanel(String id, List<ITab> tabs) {
		super(id, tabs);

	protected WebMarkupContainer newLink(String linkId, final int index) {
		return new IndicatingAjaxFallbackLink(linkId) {
			private static final long serialVersionUID = 1L;

			public void onClick(AjaxRequestTarget target)
				if (target != null)


View this message in context: http://apache-wicket.1842946.n4.nabble.com/Class-that-extends-AjaxTabbedPanel-does-not-remember-selected-panel-on-page-refresh-tp4650642.html
Sent from the Users forum mailing list archive at Nabble.com.

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

View raw message