RE: Performance problem : simple tapestry page takes long time to show up

2005-09-05 Thread Manoj Prakash
Thanks Pat. They are on local disk. I suspected earlier that creating a session on first page may be the cause if tapestry is doing any initialization per-new-session, or maybe unnecessary network roundtrips due to cookies but ruled them out with more tests. -Original Message- From: Patr

RE: Performance problem : simple tapestry page takes long time to show up

2005-09-05 Thread Patrick Casey
I'm with you that far, I'm trying to isolate areas where you might network bottleneck during a request. Is *anything* in your web server's context directory (or shared library directories), on NFS or other shared storage? --- Pat > -Original Message- > From: Mano

RE: Performance problem : simple tapestry page takes long time to show up

2005-09-05 Thread Manoj Prakash
No. We have created helloworld version of .jsp and tapestry app, and we see the similar issue : tomcat log shows it is taking more time to process the get requests for tapestry hellworld page than for the .jsp version. -Original Message- From: Patrick Casey [mailto:[EMAIL PROTECTED] Sent

RE: Performance problem : simple tapestry page takes long time to show up

2005-09-05 Thread Patrick Casey
Are any of your .page, .html or other assets mounted on NFS or other non-local disks? --- Pat > -Original Message- > From: Manoj Prakash [mailto:[EMAIL PROTECTED] > Sent: Monday, September 05, 2005 10:22 PM > To: Tapestry users; [EMAIL PROTECTED] > Subject: RE: Performanc

RE: Performance problem : simple tapestry page takes long time to show up

2005-09-05 Thread Manoj Prakash
JAVA_OPTS is blank. CATALINA OPTS is default -Dsun.io.useCanonCaches=false We haven't disabled caching. It seems my issue is related to network and somehow tapestry performance is affected by it. -Original Message- From: Mark Wilcox [mailto:[EMAIL PROTECTED] Sent: Monday, September 05,

Re: evaluation

2005-09-05 Thread Nugroho DS
I think you should use Nugroho Madhavan Thirumalai wrote: Here is my script: Note that the --- line below is just for debugging and I'll remove it soon. function enable_recurrence_rwp(on) { ${display_rwp} --- } I invoke the script with display_rwp set to the string 'true'. H

evaluation

2005-09-05 Thread Madhavan Thirumalai
Here is my script: Note that the --- line below is just for debugging and I'll remove it soon. function enable_recurrence_rwp(on) { ${display_rwp} --- } I invoke the script with display_rwp set to the string 'true'. Here's what gets rendered function enable_recurrence_rwp(on) {

Re: Cayenne, Tapestry, and hivemind.

2005-09-05 Thread Bryan Lewis
I don't know about Hivemind (I'm still on Tap 3) but here's a way to avoid passing the user's DataContext to each method. http://wiki.apache.org/jakarta-tapestry/CayenneTapestrySqueezer - Original Message - From: "Nick Stuart" <[EMAIL PROTECTED]> To: "Tapestry users" ; Sent: Monday, S

Re: Complete Off Topic, but I just had to mention this

2005-09-05 Thread Howard Lewis Ship
I use Paint Shop Pro (though I haven't upgraded since release 7). Best tool for the job in my opinion. On 9/4/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > The folks who designed the UI for the GIMP should be dipped in > honey, dragged out into the desert, and tied down atop la

Re: Tutorials

2005-09-05 Thread Howard Lewis Ship
I run the tutorials all the time but I'm using Jetty 4.22. Be more specific about the errors. On 9/2/05, Serge Sozonoff <[EMAIL PROTECTED]> wrote: > Hi All, > > I am new to Tapestry and have been trying to get the tutorial code (downloaded > from Tapestry/Quick Start page) to work without succes

Starting Tapestry with Parameters

2005-09-05 Thread Martin Gemballa
How can I give parameters to the entry-point (Home)? And how can I read them in Home.java? Thanks.

Cayenne, Tapestry, and hivemind.

2005-09-05 Thread Nick Stuart
So whats the best way to use these together? Right now in my DAO I'm having to pass in an instance of my DataContext to each method to use. This, overall isn't a big deal and easy to do. But it just smells bad and involves a bit of extra work to get things going. Right now, in my tapestry app I ha

Krysalis Menu and selects on IE

2005-09-05 Thread Javier Sanchez
Krysalis-menu has a problem rendering on Microsoft IE (not in any other browser). The problem ocurrs in IE when the dropdown menu overlaps a select tag. When the dropdown menu overlaps a component that generates a select tag in page (a PropertySelection, for example), the select tag prevails in th

Re: ValidationDelegate writeSuffix

2005-09-05 Thread Onno Scheffers
Kent Tong wrote: How about: public void writeSuffix(IMarkupWriter writer, IRequestCycle cycle, FormComponent component, IValidator validator) { if (component.isRequired()) { ... } } Hey thanks Kent where did that come from? It wasn't in there in T4B3. That should teach me to

Re: contrib:Table - sorting problem

2005-09-05 Thread seloha .
Is it okay if I butt in here and mention that I have had the same problem, and it is, from what Mind Bridge says, because I initialize the data in pageBeginRender(). The problem I have then is when I update the data in the table I can no longer use the getUsers() method to obtain the updated dat

Re: contrib:Table - sorting problem

2005-09-05 Thread Radim Burget
Mind Bridge wrote: The sorting listener is invoked before the page rendering starts. As a result, getUsers() is called before pageBeginRender(). If you initialize your variables there, you are going to get that problem. I would suggest a lazy intialization in getUsers() -- that should resolv

RE: Page instance variables

2005-09-05 Thread Patrick Casey
Each thread gets its own unique copy of a page. It's not guaranteed to be the *same* page each time a given user hits a page, but it's unique within the context of that request so there are no problems with concurrent access. That being said, I make all my variables concrete becau

Page instance variables

2005-09-05 Thread Leonardo Quijano Vincenzi
Just 2 quick questions: 1) Is it allowed to put instance variables on a Tapestry Page? Such as: public abstract class SomePage extends Basepage { private int someField; } I guess there are issues with concurrent access, but I couldn't find any definite source on this (a FAQ entry maybe?).

Re: Localization: problem with charset

2005-09-05 Thread Adam Greene
The problem is that windows runs under a different base codepage, and Gentoo (if like FC4) runns under UTF-8. Which means that you pages, when stored on windows, were written as the wrong codepage. If you are using Eclipse, you could switch your text editors to write UTF-8 instead and that mig

Re: stale-link- what components shouldn't be used inside form?

2005-09-05 Thread Mind Bridge
Please use the If, Else, and For components in Tapestry 4 (or if you use Tapestry 3, download them from http://www.t-deli.com). The components automatically adjust to whether they are in a form or not -- you do not have to make an explicit choice with them. hari ks wrote: hi, I got stale

Re: contrib:Table - sorting problem

2005-09-05 Thread Mind Bridge
The sorting listener is invoked before the page rendering starts. As a result, getUsers() is called before pageBeginRender(). If you initialize your variables there, you are going to get that problem. I would suggest a lazy intialization in getUsers() -- that should resolve the issue. Radim

RE: Jetty Module hivemind is duplicated

2005-09-05 Thread seloha .
After looking on google I have solved this problem. For those who come up against this it is neccessary to remove the projects library path from the Jetty launch configuration classpath which by default is loaded. Therefore if included in the run time classpath is loaded twice resulting in simil

Re: contrib:Table - sorting problem

2005-09-05 Thread Jonathan O'Connor
Radim, I had a similar problem a while ago. The only fix I found was to make the source a persistent property. The other way to do it is to make your own table model class, that always goes to the DB (or wherever the data really is) every time it is asked. However, from memory, the model also mu

stale-link- what components shouldn't be used inside form?

2005-09-05 Thread hari ks
hi, I got stale link using Foreach, Conditional, contrib:Choose tapestry components. So used FormConditional, ListEdit. Can anyone list out the components that shouldn't be used within a form? (I need list of components that could cause stale-link). And what are its alternatives. Thanks, Hari.

Re: ValidationDelegate writeSuffix

2005-09-05 Thread Kent Tong
Onno Scheffers AtomicDigitalStudios.com> writes: > > In Tapestry 3 I used to write my own ValidationDelegate, implementing > the writeSuffix method to render a '*' behind each required field in a > form or an error-message if that field was in error. > > As was discussed before on this list,

Re: access tapestry application objects in hivemind

2005-09-05 Thread Kent Tong
Pete gmx.org> writes: > does somebody know how to inject 'myState' into the marked 'MyFilter' > property 'injectedState' Try: class MyFilter { ApplicationStateManager appStateMgr; MyState getInjectedState() { return (MyState)appStateMgr.get("myState"); } } -- Author of an

contrib:Table - sorting problem

2005-09-05 Thread Radim Burget
Hi, I am trying to google answer on how to disable caching in contrib:table component to be working with sorting and page listing but without success. Here is my Home.page tab definition: (Tapestry 4.0beta-4) On sorting or page listing is th

RE: Creating an IAsset in code from a context image

2005-09-05 Thread Joe Trewin
For anyone else trying to do something similar, I eventually solved this by doing the following: ContextResource resource = new ContextResource(servletContext, "myfile.gif"); IAsset asset = new ContextAsset("images/", resource, component.getLocation()); Not sure if this is how I s

Re: can i Redirect a Request in Tapestry 4 ???

2005-09-05 Thread Leonardo Quijano Vincenzi
I was looking the other day some article about Redirect-After-Post in Tapestry. But I don't think it was updated to Tapestry 4. I guess *this* is the way to do that, or are the any special considerations? -- Ing. Leonardo Quijano Vincenzi Director Técnico DTQ Software Howard Lewis Ship escribi

Re: can i Redirect a Request in Tapestry 4 ???

2005-09-05 Thread Howard Lewis Ship
Which can be shortened to: @InjectObject("engine-service:page") public abstract IEngineService getPageService(); public ILink redirect(IPage page) { IRequestCycle cycle = getRequestCycle(); return getPageService().getLink(cycle, false, getPageName()); } On 9/5/0

RE: Creating an IAsset in code from a context image

2005-09-05 Thread Joe Trewin
Hi, Not sure if I'm missing something, but I can't find a class called 'ContextResourceLocation' in the Tapestry (4.0) framework ...? Also, the interface IResourceLocation (which I'm assuming is implemented by this?) doesn't seem to be included in the online Javadoc, although it exists in the pro

Re: can i Redirect a Request in Tapestry 4 ???

2005-09-05 Thread Pete
Will this help? [snip] @InjectObject("engine-service:page") public abstract IEngineService getPageService(); public void redirect(IPage page) { IRequestCycle cycle = getRequestCycle(); Object param = page.getPageName(); ILink link = getPageService().getLink(cycle,

Re: can i Redirect a Request in Tapestry 4 ???

2005-09-05 Thread Jone . hwk
There are two way at least: 1.try:throw new PageRedirectException("PageName"); 2.In "ExceptionPresenter" service implementation,catch "CustomException" wrapped by ApplicationRuntimeException,then active "CustomPage" in method "presentException(IRequestCycle cycle, Throwable cause) " Jone.hwk