Re: actionlink ajax double request

2009-05-14 Thread Valentin Yerastov
Sorry, I forgot Tapestry version: 5.1.0.5 Browser: Firefox Valentin Yerastov wrote: > > Hello users and developers! > > I have template: > > ${value} > UPDATE > > And page class: > > @Persist > private int value; > > @InjectComponent("output") > private Zone output; > > @Inject >

actionlink ajax double request

2009-05-14 Thread Valentin Yerastov
Hello users and developers! I have template: ${value} UPDATE And page class: @Persist private int value; @InjectComponent("output") private Zone output; @Inject private Request request; public Object onActionFromUpdate() { value++; if (request.isXHR()) {

Re: recursion in PropertyConduitSource?

2009-05-14 Thread Howard Lewis Ship
Tapestry 5.1 is really good about tracking what it was doing when one of these exceptions occur. Check the console, as Sven pointed out. On Thu, May 14, 2009 at 4:20 AM, Sven Homburg wrote: > have a look at your console output. > may be there ist another exception in front of the shown exception

[Tapestry Central] Tapestry 5 Performance Study

2009-05-14 Thread Howard
Ben Gidley has done a detailed analysis of Tapestry 5 performance He used some quite reasonable assumptions, including running tests for over an hour to gauge memory use over time. His conclusion is that Tapestry performance is excellent, which is a relief if not a surprise. What I'm really pleased

Re: Load test results

2009-05-14 Thread Howard Lewis Ship
Thanks for the great work; I think these were pretty great results. On Thu, May 14, 2009 at 10:41 AM, Ben Gidley wrote: > Hi, > As I posted a few weeks back I have been running a series of load tests and > have come to the following key conslusions > >   - *Tapestry is fast* - the response times

Re: Setting component type at runtime

2009-05-14 Thread Thiago H. de Paula Figueiredo
Em Thu, 14 May 2009 15:32:20 -0300, Borut Bolčina escreveu: My intention was that page selects its own layout, not which block gets rendered. I am using the block and delegate for other purposes. If the layouts don't differ much then one can use parameters for the layout and then conditionall

Re: Setting component type at runtime

2009-05-14 Thread Borut Bolčina
My intention was that page selects its own layout, not which block gets rendered. I am using the block and delegate for other purposes. If the layouts don't differ much then one can use parameters for the layout and then conditionally renders parts of the layout so it looks different. I wanted to h

Load test results

2009-05-14 Thread Ben Gidley
Hi, As I posted a few weeks back I have been running a series of load tests and have come to the following key conslusions - *Tapestry is fast* - the response times even under load are low. It isn't alway's fastest solution but it is sufficiently fast for me to focus my tuning attention e

Re: T5.1 - List Parameters

2009-05-14 Thread Filip S. Adamsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Geoffrey, The documentation for Tapestry 5.1 is at http://tapestry.apache.org/tapestry5.1, not http://tapestry.apache.org/tapestry5. I believe this is what you're looking for: http://tapestry.apache.org/tapestry5.1/guide/propexp.html /Filip On 2

T5.1 - List Parameters

2009-05-14 Thread Geoffrey Wiseman
I seem to recall hearing somewhere that T5.1 has support for easily binding parameter values to a List in a component. I can't find anything about it in the release notes or documentation, so I'm starting to think I imagined it. Is this ringing a bell for anyone? - Geoffrey -- Geoffrey Wisema

Re: Setting component type at runtime

2009-05-14 Thread Thiago H. de Paula Figueiredo
On Thu, May 14, 2009 at 7:12 AM, Borut Bolčina wrote: > You probably mean that I would have one layout component, but with > conditional blocks and not several layouts chosen dynamically? Not exactly. You can define one block per layout and use delegate to render one of them. The choosing logic s

Re[4]: page & components activation contexts

2009-05-14 Thread Yury Luneff
> Again Yuri you have not posted the relevant code, but at a guess it is the most relevant i have except the JS part :) > this is likely where you are going wrong: >>where "info" constructs server url from request for Ajax i think i must give full url and not the one with only context path (without

Re: recursion in PropertyConduitSource?

2009-05-14 Thread Sven Homburg
have a look at your console output. may be there ist another exception in front of the shown exception with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/5/13 Christine > After upgrading to 5.1, I get the error below. Apparently, there's an > error

Re: Re[2]: page & components activation contexts

2009-05-14 Thread Peter Stavrinides
Again Yuri you have not posted the relevant code, but at a guess this is likely where you are going wrong: >where "info" constructs server url from request Your link object should probably be constructing the relevant context for your link, and not from the request: Link el = componentResource

Re: Setting component type at runtime

2009-05-14 Thread Ulrich Stärk
Something like that, yeah. Am 14.05.2009 12:12 schrieb Borut Bolčina: You probably mean that I would have one layout component, but with conditional blocks and not several layouts chosen dynamically? -Borut 2009/5/14 Ulrich Stärk Maybe a Delegate can help you here. Uli Am 14.05.2009 10:45

Re[4]: Zone and loop problem

2009-05-14 Thread Yury Luneff
thank you for the great tip :) > This is possible, isn't it? > > @InjectComponent > private Zone myZone; > public String getCurrentZoneId() { > return "somethingUnique"; > } > myZone will be treated like a normal component id by tapestry, and makes it > possible to inject the zone in the clas

Re[2]: page & components activation contexts

2009-05-14 Thread Yury Luneff
ok. The component has: @SuppressWarnings("unchecked") public StreamResponse onGetChildren(Long watcherId, Long domId) { ...} as component event. Hence, 2 context params links are created like that: Link el = componentResources.createEventLink("getchildren"); renderSupport

Re: Setting component type at runtime

2009-05-14 Thread Borut Bolčina
You probably mean that I would have one layout component, but with conditional blocks and not several layouts chosen dynamically? -Borut 2009/5/14 Ulrich Stärk > Maybe a Delegate can help you here. > > Uli > > Am 14.05.2009 10:45 schrieb Borut Bolčina: > > Hi, >> >> I am trying to set the layo

Re: Re[2]: Zone and loop problem

2009-05-14 Thread Valentin Yerastov
Thanks to all! It`s work! Inge Solvoll wrote: > > This is possible, isn't it? > > > > @InjectComponent > private Zone myZone; > > public String getCurrentZoneId() { > return "somethingUnique"; > } > > myZone will be treated like a normal component id by tapestry, and makes > it > possibl

Re: Setting component type at runtime

2009-05-14 Thread Ulrich Stärk
Maybe a Delegate can help you here. Uli Am 14.05.2009 10:45 schrieb Borut Bolčina: Hi, I am trying to set the layout dynamically, but I guess this can not be done. The t:type="${layout}" does not get expanded to whatever I set in Index.java. PageWithLayout.tml === http://tapestry.

Setting component type at runtime

2009-05-14 Thread Borut Bolčina
Hi, I am trying to set the layout dynamically, but I guess this can not be done. The t:type="${layout}" does not get expanded to whatever I set in Index.java. PageWithLayout.tml === http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> page with ${layout} PageWithLayout.java =

Re: page & components activation contexts

2009-05-14 Thread Filip S. Adamsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You should use an EventLink instead - that's what they're for. :) /Filip Yury Luneff skrev: > Hello, users. > > Is there a way to separate activation contexts for page and its > components? > > I wrote a component that uses AJAX to interact from cl

Re: Re[2]: Zone and loop problem

2009-05-14 Thread Inge Solvoll
This is possible, isn't it? @InjectComponent private Zone myZone; public String getCurrentZoneId() { return "somethingUnique"; } myZone will be treated like a normal component id by tapestry, and makes it possible to inject the zone in the class. On Thu, May 14, 2009 at 9:08 AM, Yury Luneff

Re: xsd for 5.1 is not available(needed for upgrading)

2009-05-14 Thread Filip S. Adamsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, The documentation has been updated to reflect most, if not all, of the changes. Template inheritance etc. is described here, at the bottom: http://tapestry.apache.org/tapestry5.1/guide/templates.html /Filip On 2009-05-14 08:04, Peter Stavrinide

Re[2]: Zone and loop problem

2009-05-14 Thread Yury Luneff
well, as for template -- it should work (not so much time need for checking). as for zones injection in the page... well, i guess you need to find a way of not injecting zones, there are different possibilities that might work for you. > How can I generate dynamic ID for zone? > Can I use somethin

Re: page & components activation contexts

2009-05-14 Thread Peter Stavrinides
Hi Yury, Please post some code, it will be easier to guide you. Peter - Original Message - From: "Yury Luneff" To: users@tapestry.apache.org Sent: Wednesday, 13 May, 2009 18:59:20 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: page & components activation contexts Hello, user