2010/1/13 LiborGMC <l.pre...@gmc.net> > > Hi, > I'm trying develop component which is basically Grid which is quite dynamic > (count of columns, different types of displayed objects). This table is in > Zone to ensure that if user wants refresh just grid then page is not > reloaded. I would like to have more these components on single page. > I have problem with obtaining proper Zone for proper Grid. I generate ID > for > zone according to id of component. But I don't know how to get zone > according its ID. I have checked > "ComponentResources.getComponentModel().getEmbeddedComponentIds()" but this > method returns only ids which are injected into Java class of component. > Could anybody helps me? > Thanks > > You can use prop prefix to get your zone id.
<t:loop ... value="entity"> <t:actionlink t:id="refreshData" context="some parameter" zone="prop:zoneId">refresh data</t:actionlink> <t:zone id="prop:zoneId"> </zone> </t:loop> In page class: public String getZoneId(){ return "zone_"+entity.getId(); } > -- > View this message in context: > http://old.nabble.com/get-component-according-to-ID-tp27144243p27144243.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 > > -- regards, Jun Tsai