On Fri, 18 Mar 2011 01:25:43 -0300, sunmoor007 <sunmoo...@gmail.com> wrote:

Added the below method to AppModule.java

public LinkCreationListener buildLinkCreationListener(
                        LinkCreationHub hub) {

Make the method static and try again please.


                LinkCreationListener listener = new
MyLinkCreationListenerImpl();
                hub.addListener(listener);
                return listener;
        }


Created a sample impl class something like one below..

package test.abc

import org.apache.tapestry5.Link;
import org.apache.tapestry5.services.LinkCreationListener;

public class MyLinkCreationListenerImpl implements LinkCreationListener {

        public void createdComponentEventLink(Link arg0) {
                arg0.addParameter("test",
String.valueOf(System.currentTimeMillis()));

        }

        public void createdPageRenderLink(Link arg0) {
                arg0.addParameter("test",
String.valueOf(System.currentTimeMillis()));

        }

}

I assumed the above code should be sufficient to provide link creation
service as i have even kept the method name using the notation
"build"+service name. Despite that i observed that url is not getting
modified at all. Would be really helpful if you can provide some inputs on
this.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-cache-issue-when-accessed-via-proxy-tp3388994p3929745.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Coordenador e professor da Especialização em Engenharia de Software com Ênfase em Java da Faculdade Pitágoras
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to