automatic binding of informal parameters to formal parameters

2005-11-29 Thread Norbert Sándor
Hello, What I'd like to achieve is similar to I thought that if I specify the formal parameters of TextField as informal parameters on this custom component then it would work as expected. But I've just realized that it doesn't. Is the above construct not supported? (Why? :) BR, Norbi

Re: Preventing multiple form submission within Tapestry

2005-11-29 Thread Ivano
Question: does Tap use component pooling, like it does for pages? When you lock form submission and page visiting does it block other concurrent accesses from other users to the same page and form? If your form concurrency's sound and safe, I find it's a really interesting solution, could you se

Error in UsersGuide/hivemind.xml

2005-11-29 Thread Jan Normann Nielsen
Hey I tried opening the UsersGuide/hivemind.xml file included in the tapestry-4.0-beta13 docs but is seems that the file is not valid XML. In four places, start tags are missing. Best wishes, Jan - To unsubscribe, e-mail: [

Controlling the BaseTagWriter

2005-11-29 Thread Jan Normann Nielsen
Hey I want to change injected property tapestry.url.BaseTagWriter in the Shell component. Is it safe to do so? I suspect I have to change the Hivemind configuration but what is the safe way to do this in a particular web application? I have no clue how to work the HiveMind services so could

Re: Validation

2005-11-29 Thread sreejith
Hi Ashish , You can use validators on components like Fileupload also. Use the BaseValidator's required property on you component. Thanks Ashish Raniwala wrote: Hi Guys, This should be a trivial question. How do we do validation on NON ValidField components? e.g. If I use Upload compone

Re: Validation

2005-11-29 Thread sreejith
Hi Ashish, Use org.apache.tapestry.form.validator.Required on your component. Thanks * *Ashish Raniwala wrote: Hi Guys, This should be a trivial question. How do we do validation on NON ValidField components? e.g. If I use Upload component and want to validate if user has entered a file n

Re: Validation

2005-11-29 Thread Andreas Andreou
Also check out this thread http://thread.gmane.org/gmane.comp.java.tapestry.user/26820 It has a validator for filenames to be used with the Upload component sreejith wrote: > Hi Ashish , >You can use validators on components like Fileupload also. Use the > BaseValidator's required property on

Error message using contrib:FormTable.

2005-11-29 Thread Fabiano Choueiri
Using the FormTable I am having the following message : "Could not find an adaptor for class br.com.mycompany.web.tapestry.helpers.ListItemWithSelection" Where ListItemWithSelection is a simple class with 2 atributes. Help

Re: A Bit of Profiling Goodness

2005-11-29 Thread Massimo Lusetti
On 11/29/05, Patrick Casey <[EMAIL PROTECTED]> wrote: [..] > I have to debug the Beta as well, doubling my search space. These are usual phrases, and this is an argument of usual debate. Every project has different ways of thinking (which just reflect the leading developers ideas), the general me

Re: A Bit of Profiling Goodness

2005-11-29 Thread Cliff Zhao
I understand Patrick's stand. Tapestry 4.0 is still changing its API from beta to beta. I understand different projects have different policies on betas and RCs. Does Tapestry have a stated policy somewhere? What's the milestone for an API freezing? I can feel the frustration that a big chunk of wo

Encode filename in http header

2005-11-29 Thread Martin Strand
I've written a download service where I set the filename like this: response.setHeader("Content-disposition", "attachment; filename=\"" + filename + "\""); It appears I have to encode non-ascii characters somehow, how do I do that? --Martin --

RE: A Bit of Profiling Goodness

2005-11-29 Thread Patrick Casey
> Didn't mention that if you found a bug and maybe even help to fix it > or you're experience help correcting a wired behaviour, you could > contribute something back to the project as well. > > Regards > -- > Massimo Fundamentally though, I'm not in the business of debugging Tapestry.

RE: Encode filename in http header

2005-11-29 Thread Patrick Casey
Did you try: String foo = ("Content-disposition", "attachment; filename=\"" > + filename + "\""; String bar = java.net.URLEncoder.encode(foo); Reponse.setHeader(bar); --- Pat > -Original Message- > From: Martin Strand [mailto:[EMAIL PROTECTED] >

OT: Apache Portable Runtime

2005-11-29 Thread Patrick Casey
Has anybody seen any actual performance numbers comparing Tomcat 5.5.x/JNI/APR with just plain Tomcat 5.5.x? Having built the shared libraries and installed them into my JRE, about all I can say is that using the APR makes configuration harder. The Tomcat doc makes noises to the effe

RE: A Bit of Profiling Goodness

2005-11-29 Thread Konstantin Ignatyev
When I'm > working on a commercial > product though, I'll never go out of my way to > expose myself to additional > somebody else's bugs in order to fix them. I just > can't afford that big a > potential hit in my personal productivity, whatever > the advantages to > society at large. > >

Re: OT: Apache Portable Runtime

2005-11-29 Thread Mark Wilcox
Hmm. I would think that the reason to use APR with Tomcat would be to leverage Apache's SSL libraries. I'm not even sure if there's a big performance benefit of that as opposed to alternative solutions such as offloading SSL to a load-balancer. But you might benefit from re-using Apache's SSL confi

problem starting tapestry with oracle

2005-11-29 Thread Gabriel H. Lozano M.
Hi, Our SA recently setup a new deployment environment that we're having configuration issues with. It seems to throw an argument type mismatch while trying to build the ApplicationSpecificationInitializer related services. Locates and parses the application specifi

RE: A Bit of Profiling Goodness

2005-11-29 Thread Patrick Casey
> > You cannot be serious. C'mon, are you saying that > dealing with "blackboxed" product bug helps your > personal productivity?! > > "Common good" is a worthy purpose, but even on very > pragmatic, personal and immediate level it is highly > rewarding to be able to dive into somebody else's co

RE: OT: Apache Portable Runtime

2005-11-29 Thread Patrick Casey
In the best of all possible worlds, I'm with you, I'd like to have apache in front. In the real world though, httpd.conf scares the willies out of me; it's like sendmail.cf without the clarity or ease of use :). --- Pat > -Original Message- > From: Mark Wilcox [mailto:[EM

Re: Encode filename in http header

2005-11-29 Thread Martin Strand
The URLEncoder seems to make the filename look even messier. Should I use a specific character encoding? --Martin On Tue, 29 Nov 2005 18:13:44 +0100, Patrick Casey <[EMAIL PROTECTED]> wrote: Did you try: String foo = ("Content-disposition", "attachment; filename=\"" + fi

RE: Encode filename in http header

2005-11-29 Thread Patrick Casey
I couldn't answer that unfortunately; I usually just use the default character encoding and it works for me. I suppose you could try alternate encodings (UTF-8 is always a good place to start). --- Pat > -Original Message- > From: Martin Strand [mailto:[EMAIL PROTECTED] >

Re: problem starting tapestry with oracle

2005-11-29 Thread Martijn Hinten
See the archives: http://www.tapestryforums.com/viewtopic.php?t=2748&highlight=oc4j, http://www.tapestryforums.com/viewtopic.php?t=2746&highlight=oc4j and http://www.tapestryforums.com/viewtopic.php?t=1528&highlight=oc4j It is not that hard to fix. Gabriel H. Lozano M. wrote: Hi, Our SA rec

RE: Is HttpServletRequest cached?

2005-11-29 Thread Noam Solomon
I'm trying to find a way to get at the correct IP address for the user, but am running into this problem: I always get the same value for getRemoteAddr(), and this value is wherever the first request comes from. I've seen one exception to this, and it looked like it was related to expired sessions

Re: java.lang.OutOfMemoryError: PermGen space

2005-11-29 Thread Sergei Dubov
Perm space is garbage collected when the classloader that loaded the class files is garbage collected. And this happens not only during hot redeploys. This is info is per JVM spec. Serge. Scott Russell wrote: This is a common issue that has also been noted on the hibernate forums, among othe

Re: problem starting tapestry with oracle

2005-11-29 Thread Martijn Hinten
Hm... Scanning those old posts, I might have misread your post. Maybe you are running into a different issue here. What OC4J version are you using? Regards, Martijn Martijn Hinten wrote: See the archives: http://www.tapestryforums.com/viewtopic.php?t=2748&highlight=oc4j, http://www.tapestryf

RE: java.lang.OutOfMemoryError: PermGen space

2005-11-29 Thread Patrick Casey
There's the 'yah but' though, which is that, in a web app, JVM singletons can hang onto the classloader which, in turn, keeps references to all the classes it has loaded. Hence even when the GC makes a sweep through perm space, the "old" classes are still references (by the singleton) and

Re: Is HttpServletRequest cached?

2005-11-29 Thread Andreas Andreou
It was then explained that service-properties are indeed cached. This might eventually change but for now, inject service:tapestry.globals.HttpServletRequest and do a getRemoteAddr() on it Noam Solomon wrote: >I'm trying to find a way to get at the correct IP address for the user, >but am runnin

WebRequestServicerPipeline howto?

2005-11-29 Thread kiuma . tapestry
Hello again, I've tryed to put into my tapestry app hivemotule.xml : But this doesn't work since hivemind complains that this conflicts with the previous definition. So, how could i override WebRequestServicerPipeline ? Thanks in advance, kiuma P.s.: I've worked with hivetranse, but

Re: Encode filename in http header

2005-11-29 Thread Leonardo Quijano Vincenzi
AFAIK, You should encode the file name using BASE64 or Quoted-printable encoding: Use commons-codec (it's probably in your classpath anyway): http://jakarta.apache.org/commons/codec/ fileName = new QCodec("utf-8").encode(fileName); String contentType = provider.getConten

Re: A Bit of Profiling Goodness

2005-11-29 Thread Leonardo Quijano Vincenzi
In this point I think is *very* important to have a design plan for Tapestry. Probably the main cause of going from beta to beta is random API changes because of the "this is better..."... "no! this is even better!" ... "no, that was broken, it doesn't support X"...etc cycle. A release plan ca

What's the pattern?

2005-11-29 Thread Michael Campbell
I'm a brand new Tapestry user, so I'll probably be having a lot of silly questions for a while... a priori apologies for that. I'm looking at converting an existing application, and one commonly used idiom there is that it displays a table of items. The way it does this is that it iterates over

Re: A Bit of Profiling Goodness

2005-11-29 Thread Howard Lewis Ship
This is the direction I'm looking to evolve the framework. This will start being easier in 4.1. I'll be able to seperate user code from framework code since user code will no longer extend from Tapestry base classes (a compatibility layer will remain until 4.2 or 4.3). Right now, Tapestry code and

RE: What's the pattern?

2005-11-29 Thread Patrick Casey
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Michael Campbell > Sent: Tuesday, November 29, 2005 11:02 AM > To: tapestry-user@jakarta.apache.org > Subject: What's the patte

Re: A Bit of Profiling Goodness

2005-11-29 Thread Leonardo Quijano Vincenzi
Just hypothetically, what's the possibility of throwing it all away and just include an integration layer with the old components / pages? It may be cheaper that evolving? Is it possible? -- Ing. Leonardo Quijano Vincenzi DTQ Software Howard Lewis Ship wrote: This is the direction I'm looki

RE: problem starting tapestry with oracle

2005-11-29 Thread Gabriel H. Lozano M.
I am working on Oracle 10.1.3.0.0 Developer preview 4. Please help me!!} Thanks Gabriel -Mensaje original- De: Martijn Hinten [mailto:[EMAIL PROTECTED] Enviado el: Martes, 29 de Noviembre de 2005 01:28 p.m. Para: Tapestry users Asunto: Re: problem starting tapestry with oracle Hm... Sc

Re: A Bit of Profiling Goodness

2005-11-29 Thread Cliff Zhao
I have the exactly same feeling as you. Tapestry needs to learn the management aspect from other open source projects such as Eclipse, Spring Framework, etc. On 11/29/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > > > You cannot be serious. C'mon, are you saying that > > dealing with "black

RE: problem starting tapestry with oracle

2005-11-29 Thread Mohammad Abed
I am getting the same error, here is the entire error message. Using the latest "OC4J 10g (10.1.3) Developer Preview 4". The same app starts normally on Tomcat 5. 500 Internal Server Error org.apache.hivemind.ApplicationRuntimeException: Unable to construct service tapestry.init.ApplicationSpecif

Re: A Bit of Profiling Goodness

2005-11-29 Thread Jesse Kuhnert
Hehehe,.That's easy to say ;) On 11/29/05, Cliff Zhao <[EMAIL PROTECTED]> wrote: > > I have the exactly same feeling as you. > > Tapestry needs to learn the management aspect from other open source > projects such as Eclipse, Spring Framework, etc. > > > > On 11/29/05, Patrick Casey <[EMAIL PR

Re: A Bit of Profiling Goodness

2005-11-29 Thread Howard Lewis Ship
An unfair comparison; those other projects started with a hierarchical employee situations, developed an internal framework, then open-sourced it. Tapestry has evolved as an open source project entirely. I can guide it as best I can, but nobody is in a position to "order" others to follow a proced

Re: java.lang.OutOfMemoryError: PermGen space

2005-11-29 Thread Sergei Dubov
Just out curiosity, Pat, what kind of particular "JVM level singletons" hold onto classloaders? Thanks, Serge Patrick Casey wrote: There's the 'yah but' though, which is that, in a web app, JVM singletons can hang onto the classloader which, in turn, keeps references to all the classe

Re: What's the pattern?

2005-11-29 Thread Michael Campbell
"Patrick Casey" <[EMAIL PROTECTED]> writes: > >element="tr"> > >/> > > > Thanks Patrick. I don't know what I'm looking at yet there, but I have both Howard's and Kent's books, so I know what to look FOR... -

RE: Validation

2005-11-29 Thread Ashish Raniwala
Hi Guys, In Tapestry 3, I do not see parameter Validator for Upload component though I noticed that Tapestry 4 allows to add validator for Upload component. As we are still on Tapestry 3, is there is way I can achieve similar functionality? Thanks, Ashish -Original Message- From: Andreas

Re: WebRequestServicerPipeline howto? [Virus checked]

2005-11-29 Thread Michael . Frericks
Try to add your service in the pipeline like this or replace the implemetation of WebRequestServicerPipelineBridge with your implementation ... Mit freundlichen Grüßen Michael Frericks |-+> | |

RE: java.lang.OutOfMemoryError: PermGen space

2005-11-29 Thread Patrick Casey
I believe the two most common culprits are the JDBC driver manager and Commons Logging. --- Pat > -Original Message- > From: Sergei Dubov [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 29, 2005 12:18 PM > To: Tapestry users > Subject: Re: java.lang.OutOfMemoryError:

Re: java.lang.OutOfMemoryError: PermGen space

2005-11-29 Thread Spencer Crissman
This post happens to have a fairly in depth coverage of some of the issues that can cause the OutOfMemoryErrors in web applications, and some solutions which may help you encounter it less often: http://www.patrickpeak.com/page/patrick/20050614#your_web_app_is_leaking HTH, Spencer On 11/29/05,

RE: Error message using contrib:FormTable.

2005-11-29 Thread Rigmor Ukuhe
> -Original Message- > From: Fabiano Choueiri [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 29, 2005 4:06 PM > To: Tapestry users > Subject: Error message using contrib:FormTable. > > > > Using the FormTable I am having the following message : > > "Could not find an

Error message clarity suggestion

2005-11-29 Thread Konstantin Ignatyev
Such question constantly pops up. Tapestry developers – take note, if the message said something like: +++ Could not find an adaptor for class [ZZZ]. Please make class Serializable or provide adapter ( see YYY class for inspirations) +++ That would make matters clear and greatly enhance Tapestry l

Upload component problem

2005-11-29 Thread Ashish Raniwala
Hi Guys, I am using sitemesh with tapestry. All my pages work fine except the page having Upload component. Page having upload component renders fine but once I upload a file and want to go to next page, sitemesh decorator does not decorate the response and page always forwart to "Home" page, i

Select Component

2005-11-29 Thread Todd Orr
Why does the Select component appear to be so complicated? I have an ArrayList of objects. Each object has id and label properties (among others). In order for me to display and use these objects I have to implement IProperySelector. Once one is chosen, I have to loop through the array until I find

RE: Select Component

2005-11-29 Thread Patrick Casey
You're not doing it incorrectly, but you're basing your critique on a false assumption, to whit that the property select component will always be backed by an instance of java.util.List containing valid beans. By implementing IPropertySelection, you add a layer of abstraction which means t

Re: What's the pattern?

2005-11-29 Thread Todd O'Bryan
On Nov 29, 2005, at 3:07 PM, Michael Campbell wrote: "Patrick Casey" <[EMAIL PROTECTED]> writes: Thanks Patrick. I don't know what I'm looking at yet there, but I have both Howard's and Kent's books, so I know w

Re: Select Component

2005-11-29 Thread Todd Orr
Thanks for your quick reply. You have a point. There is a great deal of flexibility in the Tapestry approach. It does seem to sacrifice some simplicity, though. I believe in the utility of Tapestry because it makes my development tasks easier, in general. So, I believe it would help to have a frame

Re: Select Component

2005-11-29 Thread Robert Zeigler
Have you tried http://www.tapestrycomponents.org/Tassel/app?service=direct/1/Search/viewComponent&sp=SrobertzListPropertySelectionModel ? It does require implementing the "NamedListItem" interface, but that's only got a single method "getItemName". Also, if you search the list archives, somebody po