Re: get component according to ID

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 13:23:23 -0200, LiborGMC wrote: -Component needs refresh after user click on Action. But only this component should be refreshed, not whole page Use a Zone. -There could be more these components on same page Use some Zones and a MuitiZoneUpdate. More information at

Re: get component according to ID

2010-01-15 Thread LiborGMC
Uhh I write faster then I think :-(. Now I finally understand what did you try to suggest me. Sorry for the last post ;-). Thank you for your help Libor -- View this message in context: http://old.nabble.com/get-component-according-to-ID-tp27144243p27178827.html Sent from the Tapestry - User m

Re: get component according to ID

2010-01-15 Thread LiborGMC
Ok it sound me like I hit to limit of Tapestry. Well I'm not able refresh components if there are more of them on same page. Or what strategy shall I use? Could anybody bring in how to implement this scenario: -Component needs refresh after user click on Action. But only this component should be

Re: get component according to ID

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 11:55:01 -0200, Jun Tsai wrote: Why use dynamic block id? You can use dynamic zone id,then use static block to update it's content. No component or block id can be dynamic in Tapestry: static structure, dynamic behaviour. As Jun said, you can use another approach for

Re: get component according to ID

2010-01-15 Thread Jun Tsai
Why use dynamic block id? You can use dynamic zone id,then use static block to update it's content. I think you should change your strategy. 2010/1/15 LiborGMC > > This quite good but my problem still persist. To have more components on > same > page block ID should be variable as well. But I'm

Re: get component according to ID

2010-01-15 Thread LiborGMC
This quite good but my problem still persist. To have more components on same page block ID should be variable as well. But I'm facing to similar problem, how to get instance of Block according its ID? If I set block ID as constant i.e. "myBlock" then I cannot have more than one component on a sam

Re: get component according to ID

2010-01-14 Thread Jun Tsai
I think your problem that How to update a zone content. .tml refresh data .java @Inject private Block myBlock; Object onActionFromRefreshData(some parameter){ //do something return myBlock; } Then T5 can use the myBlock content to update the zone with prop:zoneId; Good luck. 2010/1/

Re: get component according to ID

2010-01-13 Thread LiborGMC
Thanks for the reply. Sorry but I still don't understand. I think my problem is not to obtain id of Zone but get Zone as an object according to this ID. A can obtain from actionLink only zoneID not the Zone as instance, right? I have handler for handle action when user click "Refresh table" link

Re: get component according to ID

2010-01-13 Thread Jun Tsai
2010/1/13 LiborGMC > > > > You can use prop prefix to get your zone id. > > > > zone="prop:zoneId">refresh data > > > > > In page class: > public String getZoneId(){ > return "zone_"+entity.getId(); > } > > -- > regards, > Jun Tsai > > Thank you for quick reply. I'm not sure if I understan

Re: get component according to ID

2010-01-13 Thread LiborGMC
> You can use prop prefix to get your zone id. refresh data In page class: public String getZoneId(){ return "zone_"+entity.getId(); } -- regards, Jun Tsai Thank you for quick reply. I'm not sure if I understand properly your code. I have used prop prefix as you have mentioned. And I

Re: get component according to ID

2010-01-13 Thread Jun Tsai
2010/1/13 LiborGMC > > 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