Hi, in Ninja, you could do something like this
@Component Katana katana; @Inject AjaxResponseRenderer ajaxResponseRenderer; onActionFromNinjaLink() { ajaxResponseRenderer.addRender(katana.getZone.getClientId(), katana.getZone()); } with a getter in the Katana component that returns the zone. Or, if katana is not in Ninja, via @InjectPage Page pageThatContainsKatana; and then pageThatContainsKatana.getKatana().getZone()... (I don't know if it's possilbe to inject components directly so you don't have to inject the page) > Here ninja is parent, and katana is child, and I want to command as the > parent, saying display. Do you mean parent/child like in class inheritance? Why would you do that? Ninja and Katana are totally different things. Or did I get you somehow wrong? René On 18.02.2013 20:13, bigcache1 wrote: > Metaphorically. I have a component, that displays ninja. When I click on > ninja -- I want to see his katana. > Here ninja is parent, and katana is child, and I want to command as the > parent, saying display. > How could ninja send commands to katana, to fire the zone update in katana? > > Alternative pattern is to host katana component in a special zone in ninja, > and update this special zone. > However, the first pattern seems less complex. > > Simpler version of the question crushes into server to client communication, > I guess. > > Would not it be great, to just call myZone.update()? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/How-to-command-the-child-component-tp5720074.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 >