use of org.olat.search.ui.SearchInputController in project OpenOLAT by OpenOLAT.
the class SearchUserTool method getMenuComponent.
@Override
public Component getMenuComponent(UserRequest ureq, VelocityContainer container) {
if (searchC == null) {
String resourceUrl = null;
BusinessControl bc = wControl.getBusinessControl();
if (bc != null) {
resourceUrl = bc.getAsString();
}
searchC = new SearchInputController(ureq, wControl, resourceUrl, DisplayOption.STANDARD);
searchC.setResourceContextEnable(false);
searchC.setAssessmentListener(ureq);
}
String componentName = "search-menu-" + CodeHelper.getRAMUniqueID();
String velocity_root = Util.getPackageVelocityRoot(SearchControllerFactory.class);
String pagePath = velocity_root + "/search_tool.html";
VelocityContainer search = new VelocityContainer(componentName, pagePath, container.getTranslator(), this);
search.setDomReplacementWrapperRequired(false);
search.put("search_input", searchC.getInitialComponent());
container.put(componentName, search);
return search;
}
use of org.olat.search.ui.SearchInputController in project openolat by klemens.
the class SearchUserTool method getMenuComponent.
@Override
public Component getMenuComponent(UserRequest ureq, VelocityContainer container) {
if (searchC == null) {
String resourceUrl = null;
BusinessControl bc = wControl.getBusinessControl();
if (bc != null) {
resourceUrl = bc.getAsString();
}
searchC = new SearchInputController(ureq, wControl, resourceUrl, DisplayOption.STANDARD);
searchC.setResourceContextEnable(false);
searchC.setAssessmentListener(ureq);
}
String componentName = "search-menu-" + CodeHelper.getRAMUniqueID();
String velocity_root = Util.getPackageVelocityRoot(SearchControllerFactory.class);
String pagePath = velocity_root + "/search_tool.html";
VelocityContainer search = new VelocityContainer(componentName, pagePath, container.getTranslator(), this);
search.setDomReplacementWrapperRequired(false);
search.put("search_input", searchC.getInitialComponent());
container.put(componentName, search);
return search;
}
Aggregations