Re: Page caching nightmare

2006-03-25 Thread Raul Raja Martinez
no problem, everybody runs in the same problem, I had the exact same problem as you and thanks to "Enjoying Web development with Tapestry" by Kent Tong, a must for a tapestry developer, I figured it out. http://www.agileskills2.org/EWDT/ Jean-Eric Cuendet wrote: Exactly! I understand one st

Protected scope for OGNL calls ?

2006-03-25 Thread Adam Zimowski
Hi, I'm not sure if this should be OGNL forum question, or something that can be addressed by Tapestry. Seems like OGNL requires methods be public. Anybody knows of a workaround to use protected scope methods for OGNL calls? Regards, Adam -

Re: Client Side Caching/Paging with Table View

2006-03-25 Thread Leonardo Quijano Vincenzi
FormSubmit and table source are 2 different things. Form Submit is necessary when you click the paging links, to save data on the web session while the page is refreshed. If you don't want Tapestry to hit your database on a page link click, you should actually move the DB hit *out* of the form

Client Side Caching/Paging with Table View

2006-03-25 Thread John Menke
I recently posted another question but i fear that i was not specific enough. Forgive the apparent repost. I am using Tapestry 4 with the TableView component to implement paging in my application I have it configured like this: I was expec

Re: configuring session paging with Table View

2006-03-25 Thread John Menke
Mike we do delegate our database access code to a hivemind service but that is on the server. I want the results to be cached on the cliient. Been thinking about it having a concrete method on my page may not be a threading problems methods are thread safe right? I just can't have concrete class

Re: Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Adam Zimowski
> I really appreciate using OGNL expressions but as at many places > in computer science: Comfort is expensive.. You're right :-) Good luck. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Andreas Bulling
Hi Adam, On 25. Mär 2006 - 11:37:40, Adam Zimowski wrote: | FYI, OGNL is one of the biggest bottlencecks in Tapestry. I'm learning | about it from performance testing my own app, but I could not say it | better than what Patrick explained a while back on this list. His post | was regarding Tap 3.0

Re: Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Adam Zimowski
Hi Andreas, FYI, OGNL is one of the biggest bottlencecks in Tapestry. I'm learning about it from performance testing my own app, but I could not say it better than what Patrick explained a while back on this list. His post was regarding Tap 3.0.3, but from my Tap4 tests, the OGNL performance is st

Re: Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Andreas Bulling
On 25. Mär 2006 - 12:21:57, Mike Snare wrote: | Yes, it means that tableRow is null. | | Where is title being used? it only makes sense to access the table | row during iteration over the source collection. If it's not being | used in a Block for the table I'm not sure you can do this. Well, th

Re: Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Mike Snare
Yes, it means that tableRow is null. Where is title being used? it only makes sense to access the table row during iteration over the source collection. If it's not being used in a Block for the table I'm not sure you can do this. -Mike On 3/25/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: >

Once again OGNL in Tapestry *sigh*

2006-03-25 Thread Andreas Bulling
Hi all, another small (and probably for all experts around also are very simple) question concerning OGNL. I want to do the following: title="ognl:getMessage('page-title') + components.recordList.tableRow.person.formalName" but I get the error message --- source is null for getProperty(null, "p

Re: configuring session paging with Table View

2006-03-25 Thread Mike Snare
If you use a hivemind service to access the database and cache the results then it will be thread safe if you use the singleton service model (the default). In general, pages and components should delegate business logic like this to services, so it would be a good idea to do it that way anyway.

Re: JSESSIONID and cookie

2006-03-25 Thread Andreas Bulling
On 25. Mär 2006 - 16:42:43, Raphaël Jean wrote: | I see this same behavior with our application. Apparently nothing to worry about. That sound goot - thanks! :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: JSESSIONID and cookie

2006-03-25 Thread Raphaël Jean
I see this same behavior with our application. Apparently nothing to worry about. Raphael Jean EntropySoft > -Original Message- > From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of > Andreas Bulling > Sent: samedi 25 mars 2006 14:14 > To: Tapestry users > Subject: Re: JSESSIONI

Re: Component wraps itself

2006-03-25 Thread Andreas Bulling
On 25. Mär 2006 - 15:12:01, [EMAIL PROTECTED] wrote: | BaseComponents can have html templates. | But you can also override their | renderComponent(IMarkupWriter writer, IRequestCycle cycle) and: | - output your own stuff in writer, | - call super.renderComponent(IMarkupWriter writer, IRequestCycle

Re: Help with getLink() in IEngineService

2006-03-25 Thread Peter Svensson
What a coincidence. I battered my head against this yesterday. The array will be what makes up you path to the link. It' s so generic it makes me scream, but when I understood that the only things the the link helps me with is to construct something I could write myself, I wrote it myself instead.

Re: Help with getLink() in IEngineService

2006-03-25 Thread andyhot
I'm not sure you're on the right track there. Instead, check out DirectLink and ExternalLink components: http://jakarta.apache.org/tapestry/tapestry/ComponentReference/DirectLink.html http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ExternalLink.html also http://jakarta.apache.org

Re: JSESSIONID and cookie

2006-03-25 Thread Andreas Bulling
On 25. Mär 2006 - 13:09:59, Martin Strand wrote: | I don't know for sure, but I think this is what's going on: | When the session is first created, a cookie is set and JSESSIONID is | appended to all links. If your browser doesn't send back the cookie, the | JSESSIONID will continue being appen

Re: Component wraps itself

2006-03-25 Thread andyhot
>From Andreas Bulling <[EMAIL PROTECTED]>: > Hi all, > and here is another short question: > As I didn't get to know how to "mix" a BaseComponent derived > component with a AbstractComponent derived one (using a > component html template _and_ output some html code with > IMarkupWriter) I decided

Re: Help with getLink() in IEngineService

2006-03-25 Thread Jean-Eric Cuendet
No answer... Could anybody point me to some doc? Explainations? Thanks a lot. -jec Jean-Eric Cuendet wrote: Hi, Could someone help me on the second parameter of this method? getLink(boolean post, Object[] params); What should I give as params in my case: I Want a URL on MyPage passing 2 extra

Re: Page caching nightmare

2006-03-25 Thread Jean-Eric Cuendet
Exactly! I understand one step more in Tapestry now! Thanks a lot. -jec Raul Raja Martinez wrote: Are you using instance variables such as?: private String text; public String getText() { return this.text; } public void setText(String text) { this.txt = text; } The approach above should n

Re: JSESSIONID and cookie

2006-03-25 Thread Martin Strand
I don't know for sure, but I think this is what's going on: When the session is first created, a cookie is set and JSESSIONID is appended to all links. If your browser doesn't send back the cookie, the JSESSIONID will continue being appended to all links. If your browser accepts the cookie a

Component wraps itself

2006-03-25 Thread Andreas Bulling
Hi all, and here is another short question: As I didn't get to know how to "mix" a BaseComponent derived component with a AbstractComponent derived one (using a component html template _and_ output some html code with IMarkupWriter) I decided to switch to AbstractComponent completely. I was able

JSESSIONID and cookie

2006-03-25 Thread Andreas Bulling
Hi all, just a short question - I will see if the answer will also be that short, as I have no clue what's going wrong here I don't know... :( After logging in into my plattform (built with Tapestry) a JSESSIONID is appended to all links to the different subpages. But: As I can see a cookie is al