Hi,
Vincent Dutat a écrit :
For that part too, I am a bit lost. I found the taglib file and tld file
where I can create my own tag but I dont know what type I can use for
the attribute actionListener. By 'type', I suppose it's a class I have
to specify.
You should not need to write a new tag to do that.
The commandLink tag takes an actionListener attribute for instance. From
the documentation: "actionListener: String. MethodBinding representing
an action listener method that will be notified when this component is
activated by the user. The expression must evaluate to a public method
that takes an ActionEvent parameters, with a return type of void."
The nxd:documentLink tag should accept the same attribute (but I admit I
never tested it) so you could write:
<nxd:documentLink title="#{currentDocument.dublincore.title}"
document="#{document}" actionListener="#{myBean.countDocumentClick}" />
If you'd like to count when an user clicks on an attached file, in
theory you could write:
<nxd:outputFile value="#{currentDocument.file.content}"
actionListener="#{myBean.countFileClick}" />
But this is not implemented, so you can add a feature request in jira or
try to code it :)
You can have a look at the UIOutpoutFile component : a command link
component is created on the fly, copying the outout file attributes /
bindings to the command link component would be the solution.
Regards,
--
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm