07-02-2009 03:53 AM
<config>
<actions>
<!– Launch Add Aspect Dialog –>
<action id="custodia">
<label>Custodia</label>
<image>/images/icons/add.gif</image>
<tooltip>Envia el documento a custodia</tooltip>
</action>
<!– Add action to more actions menu for each space –>
<action-group id="document_browse_menu">
<action idref="add_aspect" />
</action-group>
</actions>
</config>
07-03-2009 03:13 AM
<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)
07-03-2009 03:43 AM
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);
07-03-2009 07:06 AM
<params>
<param name="id">#{actionContext.id}</param>
</params>
07-03-2009 07:22 AM
07-08-2009 09:14 AM
<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();
07-09-2009 02:22 AM
La url tiene valor, su formato es:
workspace/SpacesStore/cf68c25f-458c-4f32-ade3-8d83d97b4ecb/fileIn.txt
07-09-2009 02:33 AM
07-09-2009 02:36 AM
07-09-2009 03:02 AM
07-09-2009 07:04 AM
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.