RE: OutOfMemoryError after serving N pages

2007-02-22 Thread Thomas.Vaughan
Yeah, that is more sinister. Try dropping a lambdaprobe.war in your container and watching what happens to your app as you serve up N pages. It isn't as detailed as JProbe or anything like that, but you'll be up and running in 5 minutes and it may give you a better overview of your runtime enviro

RE: OutOfMemoryError after serving N pages

2007-02-22 Thread Thomas.Vaughan
We had the same thing, and in our case it was related to a small PermGen Space setting in our Tomcat container. My understanding of the Sun JVM is that it partitions up its allocated memory into heap, perm gen, etc. chunks and that the Perm Gen space is where all "meta data" about classes gets sto

RE: How to customize the look of Contib TablePages subcomponent

2007-02-12 Thread Thomas.Vaughan
Is your Table component inside a Form? If so, I think there's an open bug about the TableFormPages not implementing informal parameters like the non-form "TablePages" component does. To fix this, we created a tapestry-contrib-4.0.2-patched.jar, with the only change being a slightly different org.

RE: How to customize the look of Contib TablePages subcomponent

2007-02-12 Thread Thomas.Vaughan
Hi Daniel, Did you already set a binding for the "pagesClass" attribute in your table component? For example, ... Then your style sheet can start talking about "pager", like so: .pager { display: block; text-align: center; margin-bottom: .25em; } .pager b, .pager a {

RE: handling logout

2007-02-08 Thread Thomas.Vaughan
We do the same thing Holger does. Some code, below. By the way, I heard a rumor that if you implement SSO via CAS, there's no logout function. Has anyone had any experience with that? @InjectObject("engine-service:restart") public abstract IEngineService getRestartService(); /** * Perform lo

RE: Can you comment on this?

2006-12-21 Thread Thomas.Vaughan
Yeah, but Fannie Mae uses emacs to edit all their accounting files, and look where that got 'em . . . Vi would have never let that happen. -Original Message- From: Gentry, Michael (Contractor) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:10 AM To: Tapestry users Subjec

RE: new book

2006-12-05 Thread Thomas.Vaughan
Same thing happened to me, until I realized that the link he pasted wrapped lines . . . the full link (the he *did* post) is: http://sourcebeat.com/books/tapestrylive.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:54 AM To: u

RE: @Asset problem

2006-11-27 Thread Thomas.Vaughan
We do something similar; you can have your @Border *always* pull in a single stylesheet that has a single line: @import ("http://your.style.server/blah.css";) You host blah.css off Apache (or Tomcat, or whatever) outside of the context of your webapp and change at will. You can use nested @impor

RE: Perfomance Testing Tapestry App

2006-11-27 Thread Thomas.Vaughan
I second that advice. After 30-45 minutes of following their online demo, you can have JMeter up and running and simulating dozens of users with form input, logins, etc. http://jakarta.apache.org/jmeter/ http://jakarta.apache.org/jmeter/usermanual/index.html -Original Message- From: [E

RE: Getting the ordinal # in the Contrib:Table

2006-11-07 Thread Thomas.Vaughan
Thanks, Shing. I was hoping there'd be something a little more direct (like, a meta/injected property on the getTable().getTableRow(), but oh well.) So, to close the loop, this is the "most performant" means I can think of to get the ordinal numbers displayed in a Contrib:Table *without* actually

RE: pattern validator

2006-11-07 Thread Thomas.Vaughan
For a text field where we only wanted a certain set of ascii characters allowed, one of our Tapestry guys played around with the following component & validator pair... '^[\'\"a-zA-Z0-9\\s|.\\/!# & < >,?\\[\\]{}()-_*;:[EMAIL PROTECTED]'

Getting the ordinal # in the Contrib:Table

2006-11-01 Thread Thomas.Vaughan
I *hope* there's a really straightforward answer to this and that I'm just a complete donkey for overlooking it, but. . . If you want to have a table that iterates over a List and (for example) spit out some properties of each element in the List, to wit: --- |Aaron |

RE: Re: tapestry-acegi questions

2006-11-01 Thread Thomas.Vaughan
Ohhh...sorry 'bout that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: Wednesday, November 01, 2006 9:08 AM To: Tapestry users Subject: Re: Re: tapestry-acegi questions With Tapestry-Acegi, we're not using the Acegi servlet filter. O

RE: Re: tapestry-acegi questions

2006-11-01 Thread Thomas.Vaughan
Acegi's AuthenticationProcessingFilter is, by default, coded to intercept any web request to j_acegi_security_check. You can override the actual name of the servlet with the filterProcessesUrl parameter of that class. So all you need to do to "link" Tapestry and Acegi is just throw a RedirectExce

RE: How do you manually change the page of the Contrib TablePages component

2006-11-01 Thread Thomas.Vaughan
Try looking at the Table.reset() method...it just ends up making a call to the TableView.reset() method anyway, so if you've "exploded" your Table into its composite parts, find a way to call the reset method on the TableView object. HTH, Tom -Original Message- From: Gareth [mailto:[EMAIL

RE: Upload file size limit in 4.0.2

2006-10-26 Thread Thomas.Vaughan
Trying using this class in your service-id instead: -Original Message- From: Christian Haselbach [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 6:45 AM To: Tapestry users Subject: Upload file size limit in 4.0.2 Hello, we wanted the set the file size limit for upload f

RE: Paging with contrib.tableview

2006-10-25 Thread Thomas.Vaughan
It sounds like you want to call the Table's .reset() method on the form submission of the search parameters you have above the table... -Original Message- From: Didi Chow [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 9:34 AM To: users@tapestry.apache.org Subject: Paging wi

RE: How can I do custom Exception page in tapestry portlet?

2006-10-20 Thread Thomas.Vaughan
* Yes, the "StaleLink" "StaleSession" and "Exception" keys are 'magic' * No, the "New" is just part of Andreas' class naming example * No, no special interfaces needed in the backing .java classes * Nothing needed in the hivemodule For comparison's sake, here's my StaleLink configuration: ==

RE: How to change table page index by a form submit event

2006-10-16 Thread Thomas.Vaughan
Try the .reset() method on the table. I've got a page with something like this (in the .java): @InjectComponent( "table" ) public abstract Table getTable( ); void resetFields( ) { ... setItemsPerPage( DEFAULT_PAGE_SIZE ); // Reset table, so that on next rendering it begins at

RE: Tapestry Session

2006-10-16 Thread Thomas.Vaughan
Add a block like this in your web.xml (this is for 15 minutes): ...stuff... 15 ...stuff... Tom -Original Message- From: Bibek Shrestha [mailto:[EMAIL PROTECTED] Sent: Monday, October 16, 2006 12:57 PM To: users@tapestry.apache.org Subject: Tapestry Sessio

Two rows for every item in a Contrib:Table's source collection

2006-10-06 Thread Thomas.Vaughan
Hi, I'd like to use the Contrib:Table to display a collection of search results, but I'm not sure it can provide me what I want...any suggestions would be greatly appreciated. Our GUI designer wants us to provide search results in a table format like this: ---

RE: Contrib:Table pagesClass not working

2006-10-02 Thread Thomas.Vaughan
I don't know of a clean way to do that (though my ignorance doesn't mean it isn't possible) I suspect what you'll need to do is extend whatever class provides the TablePages output and manipulate it to stream a different batch of HTML to the page. In terms of the "pagesClass" not working for you

RE: Contrib:Table pagesClass not working

2006-10-02 Thread Thomas.Vaughan
It's working for me. Here's my html: Inv Num ...snip... 123 ...snip... Here's my jwc: ...snip... And my css: #edisTable .pager {

RE: How do I intercept an org.apache.hivemind.ApplicationRuntimeException?

2006-09-22 Thread Thomas.Vaughan
Thanks for the info, Ben. This is depressing, though. This means that the entire file needs to be uploaded to the server before you can validate it is less than the max allowed size, right? Ugh. -Original Message- From: Ben Dotte [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21,

How do I intercept an org.apache.hivemind.ApplicationRuntimeException?

2006-09-21 Thread Thomas.Vaughan
I have a page that allows for file uploads, up to 10MB. The limit is enforced in my hivemodule.xml with this snippet: It works perfectly...if you upload a file larger than 10MB, you get a big "ugly" error page (pasted below). We catch all other exceptions with a configuration line in the

How do you unit test Hivemodule configurations?

2006-09-08 Thread Thomas.Vaughan
Hi - - before any flames, please know that I posted this on the hivemind user's list first, but that thing is a ghost town, so I'm hoping I can find some knowledge here... Here's the situation: I have a Tapestry 4 application with a hivemodule.xml file inside of which is a "tempUploadDir" ASO Str

RE: How to pass a reference of ASO to my SqueezeAdaptor

2006-09-06 Thread Thomas.Vaughan
Ohhh. . . .this is *so* close to what I need! I have a stand-alone HttpSessionListener impl class in my Tap 4 project that needs access to an ASO. As a hivemodule noob, how can I get access to the ApplicationStateManager like shown in Barry's awesome example below? I *assume* I can't define my H

RE: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread Thomas.Vaughan
Hi John, Just curious. . . would that code need to be inserted in *every* page's pageValidate() method considering that a user can bookmark or type in any secured URL? Acegi will intercept the request, throw up the Login page and then redirect to the requested page (which in this example would

Formatting the Contrib:TableView component

2006-08-29 Thread Thomas.Vaughan
Hi, I have a pretty simple Contrib:Table that nicely and automatically displays the "<< < 1 2 3 > >>" paginator/linker thingy. *Without* "blowing up" my Contrib:Table into a TableView, is there any way to stylize the paginator section? I know you can set the "pageSize" binding on the Table compo

RE: Underline content with properties files

2006-08-29 Thread Thomas.Vaughan
CSS has a :first-letter meta style that could do what you want. Besides, is deprecated anyway. Something like this should work: Properties file: name.key=Name CSS file: p:first-letter { text-decoration:underline; } HTML file: Name value from props file -Original Message- From: P

Variable columns in Table Component

2006-08-23 Thread Thomas.Vaughan
Hi, I've simplified this example code to make things (hopefully) clearer, because what I think I'm trying to do shouldn't be too hard... I have a page with a custom component that uses the Table component to render a list of files that a user has uploaded to my system. On one screen, I want to s