RE: First page display slowdown in v 4.0

2006-01-16 Thread Patrick Casey
That's the expected behavior. When you change a java file, your IDE recompiles the .class file. That, in turn, causes Tomcat (if reloadable is true) to throw away the current set of classes in memory and do a reload. For a simple project, this doesn't take long at all, but when you have la

Re: Kickstart 0.2 released

2006-01-16 Thread Jesse Kuhnert
I have finally sat down and done some initial examinations of the kickstart code, and I like it a lot :) I hope the project continues to flower and grow as I like the design principles and overall goals he's moving forward with very much. A little competition is always a healthy thing for soft dev

Re: Altering persisted objects. (Hibernate problem)

2006-01-16 Thread Richard Clark
On Jan 14, 2006, at 8:41, Rick Uks wrote: Is this approach most common? What are alternatives? Since Tapestry will directly modify an object when the form is submitted, if you want to control exactly when the object is changed you have to have Tapestry work on through an intermediate copy

Re: First page display slowdown in v 4.0

2006-01-16 Thread Bryan Lewis
Yes, I tried that. Whenever I changed a java file, the app context got restarted which was rather slow. Took 10 seconds for the app to be ready to use again. Is that what's supposed to happen? I was hoping for something like a one-second reload of just the one file that changed. Patrick Casey

Re: Advice on templating

2006-01-16 Thread Raul Raja Martinez
You can go specless with pages just having the .java and the html file with no .page at all but I'm not positive if this is possible in components. Raul Raja. Paul Cantrell wrote: Jerome -- My understanding is that Tapestry looks up components by .jwc file, not by .html file. I agree that th

Re: Injecting an ASO into a service

2006-01-16 Thread Raul Raja Martinez
I don't know if this might help you but just in case take a look at: I had the inverse problem and I solved using Hiveutils, its objectbuilder allows you to inject services and objects into POJOS that then can be used as ASOs. Take a look at the posting in this list whit title: PROBLEM SOLV

Re: Injection into an ASO

2006-01-16 Thread Raul Raja Martinez
I had the same problem and I solved using Hiveutils, its objectbuilder allows you to inject services and objects into POJOS that then can be used as ASOs. Take a look at the posting in this list whit title: PROBLEM SOLVED | Re: Injecting registry services to POJOS Jim Steinberger wrote:

RE: First page display slowdown in v 4.0

2006-01-16 Thread Patrick Casey
Did you set reloadable="true" in your web.xml? --- Pat > -Original Message- > From: Bryan Lewis [mailto:[EMAIL PROTECTED] > Sent: Monday, January 16, 2006 5:29 PM > To: Tapestry users > Subject: Re: First page display slowdown in v 4.0 > > I must be doing something wrong

Re: First page display slowdown in v 4.0

2006-01-16 Thread Bryan Lewis
I must be doing something wrong then. I've tried three app servers, currently trying JBoss/Tomcat. Running inside Eclipse, starting in debug mode. I have Tapestry's caching disabled in the startup properties, and changes to the html or page files do take effect immediately. But when I make a sm

Re: Adding anchor to a form submission

2006-01-16 Thread Kent Tong
Alan Chandler chandlerfamily.org.uk> writes: > Unfortunately, konqueror doesn't actually jump to the correct place ( and was > true before) but much worse, firefox seems loop calling the server for a new > page. Then I guess you may try to throw a RedirectException and put the anchor into the

Re: Kickstart 0.2 released

2006-01-16 Thread Ted Steen
This is something that is really needed, but I have some questions. Why do you not use Hivetranse for session/transaction management? There has already been done alot of work on that. It is a clean Hivemind contribution. Check it out! http://hivetranse.sourceforge.net/ Also, as you are using Java

Re: Friendly URL help in Tap 4.0

2006-01-16 Thread Paul Cantrell
There is a caveat here: If you are using a case-insensitive file system (as I believe both Windows and OS X defaults are), and if your container explodes the .war instead of working out of the archive (as I believe Tomcat does by default), then Home.html and home.html are the same file -- t

Re: Advice on templating

2006-01-16 Thread Paul Cantrell
Jerome -- My understanding is that Tapestry looks up components by .jwc file, not by .html file. I agree that the duplicated near-empty .jwcs are a little irritating, and it would be nice if the common case that amounts to a page include (body yes, informal no) were the default and .jwcs co

Re: Adding anchor to a form submission

2006-01-16 Thread Alan Chandler
On Monday 16 January 2006 23:36, Alan Chandler wrote: > On Monday 16 January 2006 13:25, Kent Tong wrote: > > Alan Chandler chandlerfamily.org.uk> writes: > > > I want to actually go to an anchor on that page rather than the head of > > > the page. > > > > In the response page, try including Scrip

Re: Adding anchor to a form submission

2006-01-16 Thread Alan Chandler
On Monday 16 January 2006 13:25, Kent Tong wrote: > Alan Chandler chandlerfamily.org.uk> writes: > > I want to actually go to an anchor on that page rather than the head of > > the page. > > In the response page, try including Script component to insert > a .script file like: > > > Re: NumericField for customer Number? etc
It return a Number so try something like: ((Number) getTranslatedFieldSupport().parse(this, value)).intValue()); On 16/01/06, spm <[EMAIL PROTECTED]> wrote: > > Seeing that Numeric Field is deprecated...what do people use for an entry > field that can contain numerics only (such as customer num

Re: Getting referer from page

I think this is what you might be after (from a page): getEngine().getInfrastructure().getRequest() once you have the request there are a number of convenient "getters" you'll probably want to use getHeader("referer") ...off the top of my head On Mon, 16 Jan 2006 16:54:11 -0500, "Michael Melvi

Getting referer from page

Hey all, I have been (ineffectually) trying to get the referrer from within a Tap4 page, and am about to rip my hair out. I know it is probably somewhere sticking right out in my face, but I am unable to find it. A little background: we are interfacing with an existing php app that is POST

Re: First page display slowdown in v 4.0

Hot-code-replace feature is available in Eclipse if you run web container in debug mode. The problem is that it takes twice longer to display first page in debug mode. Also Hot-code-replace works only if you don't touch function declarations. > I agree that it's somewhat frustrating. After up

Re: First page display slowdown in v 4.0

Sorry for double posting: I sent this message twice: 1st from a wrong e-mail account, then I realized that I made a mistake and sent it from a right account. Looks like the 1st message was released today. BTW, if I run tapestry in Eclipse using Jetty Launcher or Tomcat Launcher in debug mode,

Re: Friendly URL help in Tap 4.0

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mitch Christow wrote: > Hi Brian, > > Thanks again for your help. This works out great now. One last question > concerning friendly URL's. Is there a way to ignore case in the URL? For > example http://localhost:8080/myApp/Home.html works fine, while

Re: service:tapestry.coerce.ValueConverter

Using a List instead of Object was a good call, that did the trick. Why did I use Object? I was following Howard's getStylesheets() code On 1/16/06, Jason Suplizio <[EMAIL PROTECTED]> wrote: > > Derick...thanks alot for your help. I'm going to try this out and let you > know how things go. > Jason

Re: First page display slowdown in v 4.0

I believe what you're seeing is just the way it is at this point in time. The extra time is used for things like building the Hivemind registry. If you turn on debug logging for Tapestry you'll see all the work that's being done at startup. In this earlier posting: http://mail-archives.apache.or

Re: First page display slowdown in v 4.0

I seem to remember you already asked this question and there were several responses. Did you see them? Gregg On 1/13/06, Alexander Varakin <[EMAIL PROTECTED]> wrote: > > Hi, > > I noticed that in v4.0 first page display takes much longer than in v > 3.0.3: > 15 sec vs 7 sec. > I used the hellowo

Advice on templating

All I am relatively new to the Tapestry model (although am an old hand at web/servlets) and have made some good progress with the framework. I have a question regarding good practice and the refinement of my approach. I have constructed a page which builds itself by inline-ing other blocks of

First page display slowdown in v 4.0

Hi, I noticed that in v4.0 first page display takes much longer than in v 3.0.3: 15 sec vs 7 sec. I used the helloworld application for testing. My environment is: JBoss 4.0.2 (also tried Jetty and Tomcat, same result) Sun JDK 1.5.06 Intel Celeron 1.7GHz Laptop 512 MB RAM Debi

Injecting an ASO into a service

Hello, injecting an ASO into a page or component is simple, but I cannot figure out how to inject one into a service. Can anyone tell me what to do? Thanke Regards, Christian P.S.: Injecting the ApplicationStateManager and obtaining the state object from the it by name works fine, but this is n

Re: simplification?

On Jan 15, 2006, at 7:22 PM, Martin Strand wrote: On Mon, 16 Jan 2006 01:36:17 +0100, Paul Cantrell <[EMAIL PROTECTED]> wrote: (1) Make component infer the type from the return type of the getter. It is just silly that I have to say "TextField" twice in a row: @Component( type = "Tex

Injection into an ASO

How would I inject a property of HttpServletRequest (remoteHost) into an application-scoped object? Pre-Tapestry I would create this object in an initialization servlet (i.e. loaded on startup and not mapped to any URL), which would, of course, have access to the request-object. I'm not sur

Re: Getting the name of the component being redered.

Hello, First you must give a name to your components to be able to retrieve it: then in the java: getComponents("test").getName(); or in the html: the name of my component is value="ognl:components.test.name">Test name It works the same for any tapestry components, TextField etc... then in t

Re: Testing IntelliJ plugin

This has been fixed for version 0.2. The problem is that plugin was not installed in the user plugins directory, like specified by the idea.plugins.path variable, but instead was in the IDEA home directory plugins dir. In 0.2 the plugin won't rely anymore on the idea.plugins.pathvariable for findin

Re: service:tapestry.coerce.ValueConverter

Derick...thanks alot for your help. I'm going to try this out and let you know how things go. Jason On 1/13/06, Derick Fernando <[EMAIL PROTECTED]> wrote: > > Hello, > > Just occurred to me, try making: > > > an inherited-binding like: > > > I dont see inherited-binding in the docs at: > http://

NumericField for customer Number? etc

Seeing that Numeric Field is deprecated...what do people use for an entry field that can contain numerics only (such as customer number of length 10). I tried a translator but its trying to convert to Long...which is not what I want. Here is what I would like:

RE: Form rendering and listeners problem

Just use action instead of listener, i.e. sdfsdf hth, Marcus > -Original Message- > From: Inge Solvoll [mailto:[EMAIL PROTECTED] > Sent: Monday, January 16, 2006 4:45 PM > To: Tapestry users > Subject: Re: Form rendering and listeners problem > > > I can't seem to find any 'defer'

Re: Form rendering and listeners problem

I can't seem to find any 'defer' attribute in Tapestry 4. Has this been abandoned? Does anyone know how this is done now, is it possible to get Tapestry 4 to call all listeners at the end of the rewind, along with the form listener? Inge Joe Trewin wrote: If you're using Tapestry 4 you can

Re: Testing IntelliJ plugin

Hugo, I just downloaded the plugin (using the manual method). It looks pretty neat and the drag and drop actions work fine. One minor problem I noticed is that the Tapestry logo appears as a broken image in the lower component information panel. Shawn Quoting Hugo Palma <[EMAIL PROTECTED]>: >

RE: Friendly URL help in Tap 4.0

Hi Brian, Thanks again for your help. This works out great now. One last question concerning friendly URL's. Is there a way to ignore case in the URL? For example http://localhost:8080/myApp/Home.html works fine, while http://localhost:8080/myApp/home.html throws a PageNotFound exception. Is there

Re: simplification?

More than just Spindle. It would kill any XML editor. Geoff On 1/15/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I had thought about it, but it would mean abandoning the use of a DTD > for the specs; it gave Geoff (Mr. Spindle) a near stroke when I > mentioned it. > > On 1/15/06, Martin Stra

Getting the name of the component being redered.

Hi all. I made a component that consists in two validfields ( month and year ) and they are working fine. What I want is that when the first input text (Month) is completely filled the focus goes to the next field (Year). I tried a simple javascript but when Tape

Re: Adding anchor to a form submission

Alan Chandler chandlerfamily.org.uk> writes: > I want to actually go to an anchor on that page rather than the head of the > page. In the response page, try including Script component to insert a .script file like:

Re: Component annontation and For component

Sorry to bother you all (again ;-)) I should have created an abstract method that returned the Form component. and should not have anotated the the source of the component. On 1/16/06, Rolf Strijdhorst <[EMAIL PROTECTED]> wrote: > > Hi I am trying to replace my .page file with annotations > but wh

Re: Submit action method ignored

Hi tmarx, I am using 3.03 maybe something have changed in 4.0. 1.The listener method should look the following public void save(IRequestCycle cylcle) { } 2.Do you defined the method in your .html / .page file? 3.Do you have nested form regards, Vincent On 1/16/06, Dmitry Gusev <[EMAI

Component annontation and For component

Hi I am trying to replace my .page file with annotations but when I am using the @Component with a For Component I got an Exception. this is my annotated code: @Persist public abstract Product getCurrentProduct(); public abstract void setCurrentProduct(Product product); @Componen

Re: Testing IntelliJ plugin

Yes, the plugins requires that you run IDEA with JDK 1.5. I'm going to try the plugin with older versions of IDEA to see if i can lower the minimum build number. Thanks again. On 15/01/06, Tom Davies <[EMAIL PROTECTED]> wrote: > > > On 15/01/2006, at 11:47 AM, Tom Davies wrote: > > > > > On 15/0