// we almost always need this bean reference
FacesContext fc = FacesHelper.getFacesContext(req, res, getServletContext());
BrowseBean browseBean = (BrowseBean)FacesHelper.getManagedBean(fc, "BrowseBean");
outcome=OUTCOME_BROWSE;
//Creamos en UIComponent, el evento y llamamos al browseBean para …
UISimpleSearch search = new UISimpleSearch();
search.setId("search");
//prueba para búsqueda del texto "index"
SearchEvent sevent= new SearchEvent(search,"index",0);
search.broadcast(sevent);
// método propio en el BrowseBean para asociar el searchContext con el evento
browseBean.setSearchContext(sevent);
fc.getApplication().getNavigationHandler().handleNavigation(fc, null, outcome);
// perform the forward to the page processed by the Faces servlet
String viewId = fc.getViewRoot().getViewId();
getServletContext().getRequestDispatcher(FACES_SERVLET + viewId).forward(req, res);
browseBean.updateUILocation(nodeRef);
funcionó!Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.