ResultSet resultSet = this.searchService.query(
nodeRef.getStoreRef(),
SearchService.LANGUAGE_LUCENE,
"lo q sea…");
for (NodeRef resultado : resultSet.getNodeRefs())
{
…
}
Espero que te sirva.this.navigator.setSearchContext(search);
return OUTCOME_BROWSE;
Después. el BrowseBean tiene el método de getNodes()…así que posiblemente con estas herramientas te baste sin tener que lanzar la búsqueda import org.alfresco.web.bean.*
public class MiBrowseBean extends BrowseBean{
public ReportBrowseBean() {
super();
}
public String obtenerXLS(ActionEvent event) throws Exception {
…
List<Node> results = this.getNodes();
}
…
}
<faces-config>
<!– Sobreescribimos el browse bean con el que permite descargar XLS –>
<managed-bean>
<description>
Mi bean
</description>
<managed-bean-name>BrowseBean</managed-bean-name>
<managed-bean-class>com.queres.alfresco.web.bean.MiBrowseBean</managed-bean-class>
… (continúa tú mismo)…
<a:menu id="searchMenu" itemSpacing="4" label="#{msg.more_actions}" image="/images/icons/menu.gif" menuStyleClass="moreActionsMenu" style="white-space:nowrap">
<a:booleanEvaluator value="#{NavigationBean.isGuest == false}" id="eval0">
<a:actionLink value="#{msg.save_new_search}" image="/images/icons/save_search.gif" padding="4" action="#{AdvancedSearchBean.saveNewSearch}" id="link20_1" />
<a:actionLink value="Descargar XLS" image="/images/filetypes/xls.gif" padding="4" actionListener="#{BrowseBean.obtenerXLS}" id="link20_1_1" />
…
<a:actionLink value="#{msg.save_search_pdf}" image="/images/icons/pdf.gif" padding="4" action="#{GuardarBusquedas.Consultar}"
<managed-bean>
<description>
Mi bean
</description>
<managed-bean-name>BrowseBean</managed-bean-name>
<managed-bean-class>com.queres.alfresco.web.bean.GuardarBusquedas</managed-bean-class>
… (bla bla bla)…
4.- Lo pruebo……javax.faces.FacesException: Error calling action method of component with id browse:link20_0
caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{GuardarBusquedas.Consultar}
caused by:
java.lang.NoSuchMethodException: org.alfresco.web.bean.GuardarBusquedas.Consultar()
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.