queryResultPanel = new SwitchableQueryResultPanel("queryResultPanel", queryResultModel,
ViewType.fromOrientation(preferences.getResultOrientation()));
add(queryResultPanel);
queryResultPanel.setOutputMarkupPlaceholderTag(true);
EditorPanel queryEditorPanel = initQueryEditorPanel(params);
Form<String> editorForm = initForm(queryEditorPanel);
initButtons(queryEditorPanel, editorForm);
queryResultExport = new QueryResultExport(this, exporter);