cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angeloimm" <>
Subject Information about cocoon portal and its links
Date Tue, 31 May 2005 07:29:06 GMT
Hi all; we are using cocoon portal (cocoon version 2.1.7); now we have had some problems about
coplet links; our target was this one:
we must change dinamically the coplet instance data in a coplet layout when somebody clicks
on a link; in order to have this feature we have changed the coplet transformer (class name:
CopletTransfomer); is there any other way to have the same feature without changing the transformer?
Here i post the java code i have modified:

 if ( attr.getValue("mylayout") != null && attr.getValue("coplet")!= null) {
    System.out.println("mylayout init... ");
     final String layoutId = attr.getValue("mylayout");
     final String mycopletId = attr.getValue("coplet");
     //layout coplet
     Object layout = this.getPortalService().getComponentManager().                      
     //coplet da inserire nel layout
     final CopletInstanceData cid = this.getCopletInstanceData(mycopletId);
     if (layout != null) {
         event = new JXPathEvent(layout, path, cid);

So i can use this tag c:link="mylayout" tag and it seems to work. I have not yet tested all
the other link but this one gives to me the desired feature.
Can anybody tell me if this is the right way?
Thanks to all.

Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message