Re: @SessionState Bug?

2011-01-06 Thread Pierce Wetter
> > I'd like to suggest that @SessionState be deprecated in favor of > @SessionAttribute in the future. > > Thoughts? This is ultimately a _documentation_ error. (If we ignore the problem with generics for the moment.) That is, the real problem is that the docs for @SessionState/@Sessio

Best Practice for flash Messages?

2011-01-06 Thread Pierce Wetter
What's the best practice for pushing and displaying "flash" messages? It's easy enough for me to add an variable for this: @Persist("flash") List messages; along with associated display HTML to my layout component, but then getting access to the current layout component from various places so

Re: [T5.2] Problem with nested Ajax Updates

2010-08-17 Thread Pierce Wetter
On Aug 17, 2010, at 12:21 PM, Thiago H. de Paula Figueiredo wrote: > On Tue, 17 Aug 2010 15:33:09 -0300, Pierce Wetter wrote: > >>> To avoid creating elements with repeated ids, when you don't provide one >>> explicitly, the components generate an id with a random

Re: [T5.2] Problem with nested Ajax Updates

2010-08-17 Thread Pierce Wetter
On Aug 17, 2010, at 8:53 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 17 Aug 2010 10:40:36 -0300, Pierce Wetter wrote: > >> Yes, but id kind-of-sort-of gets set by t:id already if its not set. >> Setting the client id as a workaround to force the id seems bassackwa

Re: [T5.2] Problem with nested Ajax Updates

2010-08-17 Thread Pierce Wetter
On Aug 16, 2010, at 8:14 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 16 Aug 2010 23:51:00 -0300, Pierce Wetter wrote: > >> Ah, just found that in Jira. >> So shouldn't setting t:id set the id as well? > > They're different ids: t:id is server-si

Re: [T5.2] Problem with nested Ajax Updates

2010-08-16 Thread Pierce Wetter
On Aug 16, 2010, at 6:50 PM, Thiago H. de Paula Figueiredo wrote: > Hi! > > Provide the zones' ids explicitly and you don't probably have more problems. > > There was a recent similar discussion here: > http://tapestry.1045711.n5.nabble.com/Component-with-a-Zone-and-ActionLink-in-a-loop-td2634

[T5.2] Problem with nested Ajax Updates

2010-08-16 Thread Pierce Wetter
I found a cool Safari Extension called "Better Source" that helped me get closer on this problem, I'm hoping someone can help me beyond this. . Basically, the idea is that I want a grid that is initially hidden. Clicking on a button reveals a grid, clicking on an item in the grid reveals a d

Re: Why would I choose JQuery?

2010-08-09 Thread Pierce Wetter
On Aug 9, 2010, at 5:50 AM, Michael Gentry wrote: > A downside to Tapestry adopting JQuery at this point is it hurts those > of us who bit the bullet and used Prototype (since it comes with T5 > for "free"). It would make upgrading more time consuming. > Personally, I would prefer JQuery, but th

Re: T5 Dispatcher: How to correctly order the Pipeline

2010-08-02 Thread Pierce Wetter
On Jul 31, 2010, at 2:13 AM, Daniel Henze wrote: > Thanks Kalle and Pierce for your feedback, it's interesting to read a little > more about other experiences. I can completely understand the login form > issue, something I stopped considering after a short period of time. The > tynamo project

Re: [Tapestry Central] Choosing the Right Web Framework

2010-07-30 Thread Pierce Wetter
On Jul 30, 2010, at 10:24 AM, Howard wrote: > Thank you Google Alerts, for pointing out this article on choosing a > Java web framework. It's over a year old, but I think the things that > make Tapestry special have only gotten stronger in the intervening time. Here's the link: http://olex.

Re: T5 Dispatcher: How to correctly order the Pipeline

2010-07-30 Thread Pierce Wetter
I followed a similar path. I started trying to use tapestry-spring-security, couldn't figure out how to customize the login form, and switch to Kalle's tapestry-security project, and I'm now a happy customer, and I ended up contributing back to the tapestry-security project some components.

Re: Need advice on scrubbing .internal. stuff.

2010-07-20 Thread Pierce Wetter
On Jul 19, 2010, at 2:35 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 19 Jul 2010 18:18:14 -0300, Pierce Wetter wrote: > >> On Jul 15, 2010, at 11:33 PM, Andreas Andreou wrote: >> >>> Pierce raises a valid point though - tapestry-hibernate ideally shouldn&#

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-19 Thread Pierce Wetter
On Jul 9, 2010, at 1:40 PM, Kalle Korhonen wrote: > Sorry to be a pest, but how could I find a champion to apply the patch > for TAP5-1201? I understand Howard's busy and his time is probably > better spent on bigger issues than this, but I hope that some other > committer would be able to pick t

Re: Need advice on scrubbing .internal. stuff.

2010-07-19 Thread Pierce Wetter
On Jul 15, 2010, at 11:33 PM, Andreas Andreou wrote: > Pierce raises a valid point though - tapestry-hibernate ideally shouldn't need > to depend on internal core / ioc classes Exactly! Is that a bug in tapestry or tapestry-hibernate? Pierce --

Re: Need advice on scrubbing .internal. stuff.

2010-07-15 Thread Pierce Wetter
On Jul 15, 2010, at 3:46 PM, Howard Lewis Ship wrote: > Only bad in that things can be deleted, renamed, refactored or moved > around without notice. Well, yeah, so I shouldn't depend on them, right? That was my assumption. Except tapestry-hibernate does, so tapestry-jpa does... So should

Need advice on scrubbing .internal. stuff.

2010-07-15 Thread Pierce Wetter
Background: I ported part of tapestry-hibernate to tapestry-jpa, which lives over at tynamo.org. When I did that, I mostly just cribbed directly from tapestry-hibernate. tapestry-hibernate uses some internal stuff though, so this morning, all my apps broke because T5.2 deleted Defense in favor o

Re: [Tapestry Central] Everyone out of the Pool! Tapestry goes singleton!

2010-07-15 Thread Pierce Wetter
On Jul 15, 2010, at 9:41 AM, Howard Lewis Ship wrote: > As soon as we have the new Confluence documentation system up and > running, I'll be pushing to get an alpha out, switch to beta > development (bug fixing) and documentation. I think it'll be a short > beta ... but we do have an awful lot o

Re: [Tapestry Central] Everyone out of the Pool! Tapestry goes singleton!

2010-07-15 Thread Pierce Wetter
This seems like a pretty dramatic change. Should it go into a 5.3, with 5.2 frozen except for fixes and targeted for release? Pierce - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-

Re: Ajax Problem with 5.2

2010-07-02 Thread Pierce Wetter
On Jul 1, 2010, at 4:57 PM, Howard Lewis Ship wrote: > Details about Tapestry version, browser version, any custom JS you've > written, steps taken, maybe some of your page class and template. Ok, issue entered: https://issues.apache.org/jira/browse/TAP5-1200 Templates provided. Pierce

Re: Tapestry-security 0.2.0 released!

2010-07-02 Thread Pierce Wetter
>> That is a wonderful news! As it just happens, I will begin to code a new T5 >> app just today, and guess what, I won't craft a new security solution by >> myself thanks to you guys. :-) Oh, and the whole permissions thing rocks. Having just roles was never going to do it for me. Pierce

Re: Tapestry-security 0.2.0 released!

2010-07-02 Thread Pierce Wetter
On Jul 1, 2010, at 11:39 PM, Borut BolĨina wrote: > That is a wonderful news! As it just happens, I will begin to code a new T5 > app just today, and guess what, I won't craft a new security solution by > myself thanks to you guys. :-) > > I've used tapestry-spring-security for our former projec

Re: Ajax Problem with 5.2

2010-07-01 Thread Pierce Wetter
gt; On Thu, Jul 1, 2010 at 4:01 PM, Pierce Wetter wrote: >> Background: >> >>Page of data, you can click on a "show" button to see a grid for a >> to-many relationship. You can think click on items in the grid to get a >> second reveal with some

Ajax Problem with 5.2

2010-07-01 Thread Pierce Wetter
Background: Page of data, you can click on a "show" button to see a grid for a to-many relationship. You can think click on items in the grid to get a second reveal with some more data and some buttons. But: It broke sometime in the last few weeks. I'm getting an error on line 2067

Re: Tapestry using 1.3Gb of heap space after capacity testing

2010-06-29 Thread Pierce Wetter
> > > Anyone think I'm on the right track, or barking up the wrong tree completely? Here's a completely obscure question out of left field. Are you launching the JVM with -server? Here's a pretty useful blog post: http://jfarcand.wordpress.com/2009/11/27/putting-glassfish-v3-in-production

Re: Layout Component

2010-06-28 Thread Pierce Wetter
On Jun 25, 2010, at 1:31 PM, Magnus Kvalheim wrote: > Hi, > I have a similar requirement for our project where we plan to 'white label' > an application and brand it in different ways. > Have been thinking about a way of reusing pages by changing the layout > dynamically - for example triggered b

Re: T5: Dashboard Application

2010-06-21 Thread Pierce Wetter
> > > More broadly speaking has anyone managed to implement a dashboard style > application (i.e.layouts/panels) and what is the correct pattern to use? I'm not a T5 expert, but I think you want to use a delegate. Pierce -

Re: Complex Question about Templates and Inheritance

2010-06-16 Thread Pierce Wetter
For the record, I found out today that I had to remove the ComponentClassResolver contribution from the library module, and then do both of them in the AppModule: public static void contributeComponentClassResolver(Configuration configuration) { configuration.add(new LibraryMappi

Re: Complex Question about Templates and Inheritance

2010-06-14 Thread Pierce Wetter
On Jun 12, 2010, at 9:54 PM, Josh Canfield wrote: >> But I think there should be a mechanism for overriding core components, even >> if you had to do each one explicitly. > > Thiago is right. Currently the way this works is an implementation > detail and not a documented feature so you end up s

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 12, 2010, at 1:08 PM, Thiago H. de Paula Figueiredo wrote: > On Sat, 12 Jun 2010 16:41:56 -0300, Pierce Wetter wrote: > >> Well, despite your reservations it seems to be working. Perhaps the other >> modules are loaded before the app module so that >> contribu

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 11, 2010, at 8:53 PM, Josh Canfield wrote: >> So in PlatformModule, I would need to do: >> >> public static void >> contributeComponentClassResolver(Configuration >> configuration) { >> configuration.add(new LibraryMapping("paceap", "com.paceap.platform")); >> } >> >> Then in AppMo

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 12, 2010, at 11:09 AM, Jim O'Callaghan wrote: > Pierce, > > The RegexAuthorizer has been removed from more recent snapshots of T5.2.0 - > search the list - I've posted a few questions about it in the last few > weeks. Doh! The formos docs about making a component library are out of dat

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 11, 2010, at 8:53 PM, Josh Canfield wrote: >> So in PlatformModule, I would need to do: >> >> public static void >> contributeComponentClassResolver(Configuration >> configuration) { >> configuration.add(new LibraryMapping("paceap", "com.paceap.platform")); >> } >> >> Then in AppMo

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
> If you map your PlatformModule to "core" then your components and > pages can be accessed without a prefix. Your page classes would live > in x.y.platform.pages. > > In PlatformModule.java > public static void > contributeComponentClassResolver(Configuration > configuration) { >configur

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
On Jun 11, 2010, at 3:31 PM, Manuel Sugawara wrote: > On Fri, Jun 11, 2010 at 4:35 PM, Josh Canfield wrote: > >> Read the bit about template inheritance at the bottom of this page: >> http://tapestry.apache.org/tapestry5.1/guide/templates.html >> Although I agree with the sentiment in that page

Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
Ok, so I need to build 3 different apps that are very, very similar. App #1 is for our customers, we'll call this app "cust" App #2 is for our support staff, we'll call this app "support" App #3 is for our engineering staff, we'll all this app "eng". So my plan is to start by building

Re: Dumb Question about Project Layout

2010-06-07 Thread Pierce Wetter
On Jun 7, 2010, at 3:00 PM, Howard Lewis Ship wrote: > Yes, the basic rule for pages is that the name, beneath the root pages > package, is the logical page name. The logical page name appears in URLs. What is the rule for components? > > So class appname.pages.EditUsers will have a logical

Dumb Question about Project Layout

2010-06-07 Thread Pierce Wetter
Ok, so I have 327 pages and 393 components in my application. (It's a crud tool so 20 things times 20 objects = 400 pages get automatically built) It's time to organize. So right now, I have: appname.pages appname.components There are hints here and there in the docs that if I add a

Re: First impresions from the Jazoon

2010-06-04 Thread Pierce Wetter
On Jun 3, 2010, at 11:43 PM, Igor Drobiazko wrote: > Hi all, > > as you might know I was giving a JSF 2.0 vs. Tapestry 5 talk at Jazoon. If > you are interested in this topic you can download my slides: > > http://blog.tapestry5.de/index.php/2010/06/04/first-impressions-from-jazoon/ > > As sum

Re: Scrolling to make sure that a Zone is visible

2010-06-03 Thread Pierce Wetter
>> b. If I should contribute some sort of "scroll" effect to >> Tapestry.ElementEffect. > > I'd pick this route, then you can just set the "show" attribute to > "scroll" in whatever zones you want to have this behavior and not > duplicate the code. You might want to use > http://www.proto

Scrolling to make sure that a Zone is visible

2010-06-02 Thread Pierce Wetter
It doesn't seem like the default zone update functions will ensure that the browser scrolls to show a zone. Ex: I have that zone at the bottom of a long table, if you click at the top of a table, the zone gets populated, but you might not notice. I

Re: LinkSubmit with Context?

2010-06-01 Thread Pierce Wetter
On Jun 1, 2010, at 10:17 AM, Inge Solvoll wrote: > Yes there is :) > > https://issues.apache.org/jira/browse/TAP5-1167 Darn I already voted for it. Stupid one man/one vote democracy stuff. - To unsubscribe, e-mail: users

Re: LinkSubmit with Context?

2010-06-01 Thread Pierce Wetter
On Jun 1, 2010, at 4:43 AM, Inge Solvoll wrote: > I added the value of the input element as context in my AnySubmit mixin, > check it out. It is very easy to modify the LinkSubmit, you all should > experiment with it :) > > http://tinybits.blogspot.com/2010/05/mixin-to-allow-any-element-to-submi

Re: ClassTransformation API change for 5.2.0

2010-05-26 Thread Pierce Wetter
On May 26, 2010, at 10:13 AM, Howard Lewis Ship wrote: > You now getOrCreateMethod() to create an empty placeholder (that > calls the super implementation, if there is one). You then use the > TransformMethod to addAdvice() to get it to do what you want. It > seems more complicated, but it has

Re: TSS with T5 5.2.0-SNAPSHOT

2010-05-26 Thread Pierce Wetter
On May 24, 2010, at 10:14 AM, Jim O'Callaghan wrote: > Thanks for the information Pierce - do you happen to have the url for the > trunk? All I can see is 2.1.0 at > http://www.localhost.nu/java/mvn/nu/localhost/tapestry/tapestry-spring-secur > ity/ - thanks. http://www.localhost.nu/svn/publi

Re: TSS with T5 5.2.0-SNAPSHOT

2010-05-24 Thread Pierce Wetter
On May 24, 2010, at 7:06 AM, Jim O'Callaghan wrote: > Has anyone a home brew of TSS 2.1.1. SNAPSHOT that works with T5 > 5.2.0-SNAPSHOT - I'm running into issues with deprecated > ClassTransformation methods that are a side-effect of moving away from > JavaAssist. Or an alternative suggested fix