<action-listener>#{custodia.executeImpl}</action-listener>
javax.faces.el.EvaluationException: Exception while invoking expression #{custodia.executeImpl}
caused by:
java.lang.NoSuchMethodException: es.sia.alfresco.action.executer.CustodiaSIAVALActionExecuter.executeImpl(javax.faces.event.ActionEvent)
Implement the setActive method. It gets called when the UI Action is
invoked. It is passed as an ActionEvent through which you can get the
parameters:
/**
* Action handler called when the enable or disable action is
clicked.
* @param event
*/
public void setActive(ActionEvent event) {
UIActionLink link = (UIActionLink)event.getComponent();
Map<String, String> params = link.getParameterMap();
String id = params.get(PARAM_ID);
String active = params.get(PARAM_ACTIVE);
Boolean activeFlag = Boolean.parseBoolean(active);
<params>
<param name="id">#{actionContext.id}</param>
</params>
<param name="url">#{actionContext.properties['cm:url']}</param>
UIActionLink link = (UIActionLink)e.getComponent();
Map params = link.getParameterMap();
String url = (String)params.get("url");
HttpAlfrescoStore store = new HttpAlfrescoStore();
ContentReader readerURL = store.getReader(url);
InputStream is = readerURL.getContentInputStream();
La url tiene valor, su formato es:
workspace/SpacesStore/cf68c25f-458c-4f32-ade3-8d83d97b4ecb/fileIn.txt
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.