hi,

is there a way to add an event listener for a event that was triggered 
by a component which was added to the current page through a block 
from another page?


some pseudo code:

Page1
{
      @Comonent({2parameters=prop:navigation"})
      private Delegate delegate;

      public Block getNavigation()
      {
      Page pooledPage = pageCache.get("somepage"); 

      return pooledPage.getRootElement().getBlock("navigationblock");
      } 

}

SomePage
{
    @Component // has some action methods that trigger the event
    private ComponentThatTriggersScrollEvent comp; 
}

ComponentThatTriggersScrollEvent 
{
    void onActionFromNext()
    {
         resources.triggerEvent("scroll", new Object[] {current.getId()}, 
null);
    }
}

g,
kris

Reply via email to