Re: Tapestry calls the getter 3 times!

2008-07-18 Thread MBBert
I have no form. You can see my whole hello world app in my reply to Robert. Norbert Ulrich Stärk wrote: > > If you are using the property inside a form it can be accessed 3 times: > first time when the page > renders, second time when the form gets submitted and is rewinding and > third time

Re: Tapestry calls the getter 3 times!

2008-07-18 Thread MBBert
- Home.html -- Tutorial: HelloWorld HelloWorld Tutorial The current data and time is: June 26 2005 - Home.page --- http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>

Re: T5 tapestry-hibernate

2008-07-18 Thread keesvb
Which dependencies were you missing? sparqle wrote: > > I figured it out. I was missing some dependencies. It works now. > > -- View this message in context: http://www.nabble.com/T5-tapestry-hibernate-tp17591952p18539517.html Sent from the Tapestry - User mailing list archive at Nabble.co

Re: T5: cache image created by StreamResponse?

2008-07-18 Thread ronaldlee
oh ok, now I get it. Too bad the "component" approach doesn't work. Creating a component makes more sense to me, I wonder if it can be fixed by the framework.. thx for clearing this up! Ronald Harald Geritzer-2 wrote: > >> So what do you mean by letting the page to render the image? Do you

Re: T5: cache image created by StreamResponse?

2008-07-18 Thread Harald Geritzer
So what do you mean by letting the page to render the image? Do you mean that every page will have the two functions above?? And what the poster component needs to do then?? instead of having a component providing the image you could have a page: public class Preview { public

Re: Tapestry calls the getter 3 times!

2008-07-18 Thread Ulrich Stärk
If you are using the property inside a form it can be accessed 3 times: first time when the page renders, second time when the form gets submitted and is rewinding and third time when the result page (if it's the same page) gets rendered. Is this your case? You might want to have a look at the

Re: T5: cache image created by StreamResponse?

2008-07-18 Thread ronaldlee
Hi Josh, I don't quite understand what you mean... My component is called "Poster" which renders an image. The TML of this component is like this: . ${userPosterImageLink} . And the component code has a function "getUserPosterImageLink" return a link: public Link getUserPoster

Re: T5: cache image created by StreamResponse?

2008-07-18 Thread Josh Canfield
It sounds like you are using an action to render the image. What I did was had my image rendered by page instead of the component. The component just puts the img element into the page. consider using expires instead or/in addition to cache-control in your StreamResponse. public

T5: cache image created by StreamResponse?

2008-07-18 Thread ronaldlee
Hi, In my StreamResponse class I set the header like this: arg0.setHeader("Cache-Control", "max-age=3600, must-revalidate"); I created a component responsible to render this StreamResponse, and this component is being used in multiple pages. It appears that even though the function in my compon

Re: Tapestry calls the getter 3 times!

2008-07-18 Thread Robert Zeigler
Can't explain without more information about your page. That said, you can always throw a @Cached annotation on there if needed. Robert On Jul 18, 2008, at 7/182:20 PM , MBBert wrote: Hi! I set up a new environment with Hibernate, Spring and Tapestry. After the first tests I wondered why

Tapestry calls the getter 3 times!

2008-07-18 Thread MBBert
Hi! I set up a new environment with Hibernate, Spring and Tapestry. After the first tests I wondered why each DB access was done 3 times. For verification I set up a simple Hello World App and there is this strange behaviour also. When I set a break point in the getter method, I can see that it w

[T5] Rendering a block new - per Java Script

2008-07-18 Thread Tobias Wehrum
Hi there, still developing my tree component, now I have a new problem. My tree consists of a recursive list, each entry is a rendered block. While this works great while being in the rendering phase (by returning the correct block from my beginRender method, and looping said method by return

Re: t5components - Window

2008-07-18 Thread Petros Petrou
The demo source code uses this code in the WindowPage.tml function showWindow2() { ${window2.componentResources.id}.setTitle("This is Window 2") ${window2.componentResources.id}.setHTMLContent("... here come some senseless content ...") ${window2.componentResources

Re: [T5] where is the component reference of Block

2008-07-18 Thread Martijn Brinkers (List)
A block is not a component afaik but a Tapestry element See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html Martijn On Fri, 2008-07-18 at 15:22 +0200, Andy Pahne wrote: > I looked for the component refernece of Block at: > http://tapestry.apache.org/tapestry5/tapestry-co

Re: [T5]Could not load org.apache.tapestry5.ioc.internal.services.ServiceMessages when run the JumpStart example!

2008-07-18 Thread Geoff Callender
Hi Oliver, Any chance that Java 6 is being used? Please re-check steps 4 and 10 of http://files.doublenegative.com.au/jumpstart/installation.html If that doesn't fix it, what OS are you using? Which version of Eclipse? Cheers, Geoff On 18/07/2008, at 1:04 AM, Oliver Lee wrote: hi,al

[T5] where is the component reference of Block

2008-07-18 Thread Andy Pahne
I looked for the component refernece of Block at: http://tapestry.apache.org/tapestry5/tapestry-core/ref/index.html It's not there, but in T5 there still is a Block component (at least I expect one, as the component reference of Grid references Blocks) Andy