setStatelessHint(false);\r
setOutputMarkupId(true);\r
}\r
+ \r
+ @Override\r
+ protected boolean requiresPageMap() {\r
+ return true;\r
+ }\r
\r
protected void setupPage(RepositoryModel model) {\r
this.repositoryModel = model;\r
setOutputMarkupId(true);\r
}\r
\r
+ @Override\r
+ protected boolean requiresPageMap() {\r
+ return true;\r
+ }\r
+\r
protected void setupPage(final TeamModel teamModel) {\r
if (isCreate) {\r
super.setupPage(getString("gb.newTeam"), "");\r
setStatelessHint(false);\r
setOutputMarkupId(true);\r
}\r
+ \r
+ @Override\r
+ protected boolean requiresPageMap() {\r
+ return true;\r
+ }\r
\r
protected void setupPage(final UserModel userModel) {\r
if (isCreate) {\r
import java.util.List;\r
\r
import org.apache.wicket.PageParameters;\r
+import org.apache.wicket.Session;\r
import org.apache.wicket.markup.html.basic.Label;\r
\r
import com.gitblit.Constants.AccessRestrictionType;\r
\r
public RootSubPage() {\r
super();\r
+ createPageMapIfNeeded();\r
}\r
\r
public RootSubPage(PageParameters params) {\r
super(params);\r
+ createPageMapIfNeeded();\r
+ }\r
+ \r
+ protected boolean requiresPageMap() {\r
+ return false;\r
+ }\r
+ \r
+ protected void createPageMapIfNeeded() {\r
+ if (requiresPageMap()) {\r
+ // because Gitblit strives for page-statelessness\r
+ // Wicket seems to get confused as to when it really should\r
+ // generate a page map for complex pages. Conditionally ensure we\r
+ // have a page map for complex AJAX pages like the EditNNN pages.\r
+ Session.get().pageMapForName(null, true);\r
+ setVersioned(true);\r
+ }\r
}\r
\r
@Override\r