07-16-2010 03:56 AM
// 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);
07-16-2010 04:09 AM
07-16-2010 04:55 AM
07-19-2010 06:04 AM
browseBean.updateUILocation(nodeRef);
funcionó!Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.