Any tips to preload application on startup?

2006-03-14 Thread Wayland Chan
Struts has a Plugin interface that you can implement which allows you to do some initialization of the webapp once it's deployed on a server to alleviate startup time on first request. Does Tapestry have anything similar? My Tap4+Spring+Hibernate application takes almost a full minute to bring up

Re: Tapestry vs JSF benchmark

2006-03-14 Thread Robert Zeigler
Interesting. Some thoughts and/or questions: 1) Why are the page classes for success and fail abstract? They can be concrete. 2) For testing 4.0 stuff, why not use the 4.0 dtd? 3) You've implemented the home page name,password, etc. properties as simple properties... that is, you're not allowing ta

Library - Page Not Found in Namespace Problem

2006-03-14 Thread Mike Pestorich
I have some pages, components, and assests that I put into a library. The components and assets I have no problem accessing. However, when I try to use a page fom the library I get an exception stating that the page cannot be found in the namespace. Here are my relevent files: context/ | |__H

Re: Tapestry vs JSF benchmark

2006-03-14 Thread Wayland Chan
Yes I would have to agree that the startup time for my Tap4 application is horrid (no quantitative measures but compared to my Struts apps which are larger by several degrees of magnitude). I thought I read something by Howard that said T4 should be alot faster because of less reflection being used

Tapestry vs JSF benchmark

2006-03-14 Thread Alexander Varakin
Hi, I ran a simple Tapestry vs JSF benchmark, results are posted on my blog: http://www.resupedia.com/blojsom/blog/Java/2006/02/28/Tapestry-vs-JSF.html Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: tapestry on liferay server session expired question

2006-03-14 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zheng JinYuan wrote: > Deploy a portlet write by tapestry to liferay with a form ,when submit > form ,liferay report > > An exception has occured. > Click here to continue > > Your server session has expired. > > and there are no log infomation on t

tapestry on liferay server session expired question

2006-03-14 Thread Zheng JinYuan
Deploy a portlet write by tapestry to liferay with a form ,when submit form ,liferay report An exception has occured. Click here to continue Your server session has expired. and there are no log infomation on the webservice console ,What's wrong ? my webserver is tomcat-5.5.16 thanks ---

Issue about "DirectLink"

2006-03-14 Thread Ryan Pan
Hi all, When I use "DirectLink" to pass a object as parameter,I encountered this exception. Can anybody tell me how to solve this issue? Thanks, Ryan. java.lang.ArrayIndexOutOfBoundsException 1994 Stack Trace: org.apache.tapestry.util.io.SerializableAdaptor.decode( SerializableAdaptor.jav

Re: Show/Hide text fields

2006-03-14 Thread Jesse Kuhnert
var elm = document.getElementById('yourfieldid'); elm.style.display="none"; //to hide elm.style.display=""; //to show Or, you could use the AjaxEventSubmit control from tacos at http://tacos.sourceforge.net to do the same without writing any javascript code. On 3/14/06, Daud <[EMAIL PROTECTED]> w

Re: Tacos @AjaxForm and @Upload

2006-03-14 Thread andyhot
Yep, that was a very ugly IE+dojo+multipart-http-request king of bug. The actual problem is that the response xml decides to play hide & seek with IE, transforms all its content into a 'simple' text node, and gets stored somewhere inside the first iframe it finds :) Anyway, get the latest from h

Show/Hide text fields

2006-03-14 Thread Daud
Hi, I am trying to show/hide tapestry text fields. But i have no idea how to do it. Basically the form fields are generated dynamically and then when i click on a radio button want to hide some text fields and show others. Any help would be really appreciated as i am stuck and don't know how to ach

Re: org.apache.hivemind.ApplicationRuntimeException

2006-03-14 Thread Jesse Kuhnert
I don't remember any scenerios where tapestry has "swallowed" any exceptions thrown by me or other libraries. Perhaps you should put a cow catcher in your listener method to be sure something funky isn't going on? On 3/14/06, Wayland Chan <[EMAIL PROTECTED]> wrote: > > More info > > What usual

Re: org.apache.hivemind.ApplicationRuntimeException

2006-03-14 Thread Wayland Chan
More info What usually happens while debugging/stepping the code, something bad happens and next thing I know, I'm in the AbstractPage.renderPage(IMarkupWriter, IRequestCycle) method. On 3/14/06, Wayland Chan <[EMAIL PROTECTED]> wrote: > > I find I'm getting this > org.apache.hivemind.Appl

org.apache.hivemind.ApplicationRuntimeException

2006-03-14 Thread Wayland Chan
I find I'm getting this org.apache.hivemind.ApplicationRuntimeExceptionwhenever an exception is thrown in my code. Problem is, Tapestry must be just eating it up because it's now showing any stack traces and the page shows: An Error Occurred org.apache.hivemind.ApplicationRuntimeException An E

Re: tapestry and site mesh

2006-03-14 Thread Jesse Kuhnert
*shudders* at the mention of tiles ;) On 3/14/06, Wayland Chan <[EMAIL PROTECTED]> wrote: > > Ed, > > You can use both. Take a look at http://equinox.dev.java.net for an > example > of how Matt Raible has integrated both. > > IMO, tapestry components don't really do much for you in terms of >

Re: tapestry and site mesh

2006-03-14 Thread Wayland Chan
Ed, You can use both. Take a look at http://equinox.dev.java.net for an example of how Matt Raible has integrated both. IMO, tapestry components don't really do much for you in terms of layout/design. That's why you should use sitemesh/tiles/css2 for that stuff. On 3/14/06, Ed Ross <[EMAIL PRO

tapestry and site mesh

2006-03-14 Thread Ed Ross
Im new to tapestry and would like to know if in general practice, it it better to use the tapestry components or something like sitemesh to provide a common look and feel. The navigational menu items will need to change depending on the user and page visited. thx --

Re: Tapestry on GlassFish

2006-03-14 Thread Howard Lewis Ship
>From some discussions with people at conferences, the main problem is the stringent security contraints inside GlassFish. Tapestry does some "non-kosher" things in terms of creating class loaders and using reflection (a lot of this is related to using Javassist), and these things need to be expr

Login Window <-> Login Page

2006-03-14 Thread Apache
I have a Login page with a username/password field and a login method. I also added a login box with the a username/password field. The logic of processing the login is within the login page class. I want to the login page also to process the login request that comes from a login box as I do no

Re: Tacos @AjaxForm and @Upload

2006-03-14 Thread Jesse Kuhnert
I saw some recent bugfix changes by andreas...Anyone tried making this work from the latest code? On 3/14/06, Jeremy Kassis <[EMAIL PROTECTED]> wrote: > > > Hi Denis, > > Any luck with this? I too am struggling with the Upload within an > AjaxForm. > Symptoms similar to what you described. Would b

RE: Tacos @AjaxForm and @Upload

2006-03-14 Thread Jeremy Kassis
Hi Denis, Any luck with this? I too am struggling with the Upload within an AjaxForm. Symptoms similar to what you described. Would be great to hear if you actually got it working or not. All the best, Jeremy > -Original Message- > From: Denis Souza [mailto:[EMAIL PROTECTED] > Sent: M

Re: Tapestry on GlassFish

2006-03-14 Thread Filip S. Adamsen
He's not on this mailing list. : P Chris Chiappone skrev: Could you explain what GlassFish offers that JBOSS does not, what are the improvements? Thanks, ~chris On 3/13/06, Shreedhar Ganapathy <[EMAIL PROTECTED]> wrote: Hello I am part of the GlassFish project that is developing an open sourc

Re: show validation messages

2006-03-14 Thread Jesse Kuhnert
The tapestry workbench example application has a generic component that does this. It's called "ShowMessage" or "ShowError", something like that. It should be included with the standard tapestry download from jakarta.apache.org . On 3/14/06, Craig Hamilton <[EMAIL PROTECTED]> wrote: > > Hi, > > Is

show validation messages

2006-03-14 Thread Craig Hamilton
Hi, Is there a component that I can include in the html to show general validation messages? I have a shopping cart, and need to say the credit card is declined for instancehow do I show that on the page, not tied to a specific input box? Thanks, Craig -

Re: Component with Stylesheet asset... how?

2006-03-14 Thread Alan Chandler
On Tuesday 14 March 2006 16:20, John Hendrikx wrote: > I'm building my first Tapestry Component and I'm trying to encapsulate > some common HTML components for my applications into a Tapestry > Component. The component also needs a few styles to look and function > properly, and I'd like these sty

RE: Best way to give pojo access to a file?

2006-03-14 Thread Rob Dennett
OK, I got it. The path to my resource was in the META-INF folder. The actual resource was in the WEB-INF folder. Thanks, Rob -Original Message- From: Rob Dennett Sent: Tuesday, March 14, 2006 9:59 AM To: Tapestry users Subject: RE: Best way to give pojo access to a file? Thanks for y

Re: Component with Stylesheet asset... how?

2006-03-14 Thread Andreas Andreou
Yep, this too generally works in most browsers - it's just that the link tag should only appear inside Prince John, Bedag wrote: >Hi John, > >I don't know if this is kosher, but what I have on occasion done is >something like this: > >type="text/css"> > >I also used a variant with javascript to

RE: Component with Stylesheet asset... how?

2006-03-14 Thread Prince John, Bedag
Hi John, I don't know if this is kosher, but what I have on occasion done is something like this: I also used a variant with javascript to check if the stylesheet had already been added (just add an id to the link). Hope that helps Best wishes John -Original Message- From: John Hen

Re: Component with Stylesheet asset... how?

2006-03-14 Thread Andreas Andreou
A very popular subject indeed. I think it's gonna get addressed sooner or later but for the time being check out these thoughts: http://tinyurl.com/z3k2d and Ron's* *http://www.tutim.net/wiki/index.php/Tapestry_Css and the Style component from http://tapfx.sourceforge.net/ John Hendrikx wrote:

Re: Tapestry on GlassFish

2006-03-14 Thread Chris Chiappone
Could you explain what GlassFish offers that JBOSS does not, what are the improvements? Thanks, ~chris On 3/13/06, Shreedhar Ganapathy <[EMAIL PROTECTED]> wrote: > Hello > I am part of the GlassFish project that is developing an open source > application server based on Java EE 5. (http://glassfi

Component with Stylesheet asset... how?

2006-03-14 Thread John Hendrikx
I'm building my first Tapestry Component and I'm trying to encapsulate some common HTML components for my applications into a Tapestry Component. The component also needs a few styles to look and function properly, and I'd like these styles to be included on the page whenever the component is

RE: Best way to give pojo access to a file?

2006-03-14 Thread Rob Dennett
Thanks for your help. I am still having a little trouble with this though. My hivemodule looks like this: My MenuCRUDXML.init method looks like this:

Re: Overriding gif images for contrib:Table

2006-03-14 Thread Martin Carel
Hi! > Uh... maybe I'm missing something here Nope, you're not missing anything! I didn't have the reflex to look into that direction. I did use the "arrowUpAsset" and "arrowDownAsset", referring to my own GIF's and it worked just fine. Thank you very much, that's exactly the type of simple solu

Tapestry on GlassFish

2006-03-14 Thread Shreedhar Ganapathy
Hello I am part of the GlassFish project that is developing an open source application server based on Java EE 5. (http://glassfish.dev.java.net). We are looking to better understand how well popular frameworks, and apps work with GlassFish. These have the dual benefits of identifying any bugs

Re: Inject locale

2006-03-14 Thread Martin Strand
Thank you, James. It all works great now. :) Martin On Tue, 14 Mar 2006 12:50:54 +0100, James Carman <[EMAIL PROTECTED]> wrote: You put it right next to your module definition and it's called hivemodule.properties (the different language versions are placed there too, like hivemodule_fr.

Re: "double-clicking" user - a possible problem?

2006-03-14 Thread Inge Solvoll
I've tried that one, couldn't make it work. As far as I can remember, there were issues with putting the HttpServletRequest into the session, because it isn't serializable. Same thing with java.lang.Object. Anyone with a working version of this? http://www.onjava.com/onjava/2004/03/24/examples/Re

Localize validation message

2006-03-14 Thread Rudolf Baloun
Hi, my localization works fine. I just got one problem: When i change the local in Engine (Engine.setLocale(..)) and load another page, the right properties are shown. But the validation message of tapestry is still in the old language. What shall i do to localize the validation-message? Bes

RE: Inject locale

2006-03-14 Thread James Carman
You put it right next to your module definition and it's called hivemodule.properties (the different language versions are placed there too, like hivemodule_fr.properties). http://jakarta.apache.org/hivemind/localization.html The docs are kind of hidden. They're not with all the other general in

Re: Gridsphere user infmation and Tapestry

2006-03-14 Thread Kent Tong
Jim gmail.com> writes: > I'm using gridsphere as my portal container ,But how can I get current > login user infomation from my tapestry portlet? Try: class MyPage { @InjectObject("service:Tapestry.Globals.WebRequest") public abstract WebRequest getRequest(); void foo() { getRequest(

Re: Inject locale

2006-03-14 Thread Martin Strand
Thanks, but where do I put the *.properties file? I tried looking at HiveMind's source for ModuleMessages but couldn't quite figure it out. Martin On Mon, 13 Mar 2006 13:48:55 +0100, James Carman <[EMAIL PROTECTED]> wrote: You can use your HiveMind Messages object to do the i18n/formatti

Re: locale of validation

2006-03-14 Thread Vincent
Hi Ryan, I think we can manually set the locale in System.setProperty. On 3/14/06, Ryan Pan <[EMAIL PROTECTED]> wrote: > Hi all, > I encount a problem that when I validate the Data from UI,I got the > chinese characters. > So what I wanna is how to set the locale in tapestry so that it ca

locale of validation

2006-03-14 Thread Ryan Pan
Hi all, I encount a problem that when I validate the Data from UI,I got the chinese characters. So what I wanna is how to set the locale in tapestry so that it can not be changed according to the real locale of PC. Thanks, Ryan.

Question about Validation in Tapestry

2006-03-14 Thread Ryan Pan
Hi all, I have a question in validation function of tapestry. When I store the error message through "delegate.record()" method,there will be always one error record stored in delegate,so I wanna how to store all validation error into delegate? Is there anyone can help me? Thanks, Ryan