Thanks, it works fine with @Observer.
I need to do something even more specific : I want a method called when the user opens the content of the document (the "attached file"), is there any event triggered at that moment ?

Tiry wrote:
Le vendredi 16 mars 2007 à 09:43 +0100, Vincent Dutat a écrit :
Hi,

solution 2 is what I am looking for. I am using tag nxd:documentLink in a xhtml page and I want a bean's method being called when cliking on the link.
In this case, you have 2 solutions :
 - set an actionLister to your nxd:documentLink (need to modify xhtml)
 - define an Observer
        @Observer({ EventNames.DOCUMENT_SELECTION_CHANGED })
        public void MyListner(DocumentModel doc)
        {
        ...
        }
Tiry
Tiry wrote:
Le jeudi 15 mars 2007 à 16:05 +0100, Vincent Dutat a écrit :
Hi,

I would like, when a user clicks on a document to see its content
, that a method of a bean is called, how could I do that ?
Could you give more details on what you want to do, this will help :)
Basically, you have several options :
 1 - change the xhtml template : but I guess this is not your point
 2 - Use a seam component that observes navigation events via @Observer
 3 - use a core or JMS event listener

I would suggest solution 2 ... but I need to know more about your
usecase.

Tiry

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to