Given your example... The Simulation and Dashboard pages could implement
PolicyProvider

Then, in your Layout

public class Layout {
   @InjectPage
   private Page page;

   public Policy getPolicy() {
      if (page instanceof PolicyProvider) {
         return ((PolicyProvider) page).getPolicy();
      }
      return null;
   }
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Sidepanel-with-pagespecific-items-tp5679939p5680495.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

Reply via email to