Re: Any Tapestry-specific performance analytics packages available?

2012-01-17 Thread Massimo Lusetti
On Tue, Jan 17, 2012 at 7:21 PM, Josh Canfield wrote: > Hey Kalle. > > I started tapestry-monitoring so that I could keep track of specific > methods runtime (loading data from the database etc). > > https://github.com/joshcanfield/tapestry-monitoring > BTW I've used it once to get idea of peaks

Re: a document defect

2012-01-17 Thread Kalle Korhonen
"owning component"? fixed. Kalle 2012/1/17 Rural Hunter : > http://tapestry.apache.org/component-rendering.html > > >   Rendering Components > > Instead of returning true or false, a render phase method may return a > component. The component may have been injected via the @Component >

a document defect

2012-01-17 Thread Rural Hunter
http://tapestry.apache.org/component-rendering.html Rendering Components Instead of returning true or false, a render phase method may return a component. The component may have been injected via the @Component

Re: Problematic frame: J org.apache.tapestry5.internal.plastic.asm.ClassReader.accept(Lorg/apache/tapestry5/internal/plastic/asm/ClassVisitor;[Lorg/apache/tapestry5/internal/plastic/asm/Attribute;I)V

2012-01-17 Thread Julien Martin
Thanks for the reply Chris. No worries as I am not yet in production. J. 2012/1/17 Chris Mylonas > Hi Julien, > > I've run into problems with openjdk on gentoo like this (unresolved). > Switching to the sun jvm (for java 6) fixed it. > > I'm looking forward to openjdk7 to try again. For me it's

Re: Problematic frame: J org.apache.tapestry5.internal.plastic.asm.ClassReader.accept(Lorg/apache/tapestry5/internal/plastic/asm/ClassVisitor;[Lorg/apache/tapestry5/internal/plastic/asm/Attribute;I)V

2012-01-17 Thread Chris Mylonas
Hi Julien, I've run into problems with openjdk on gentoo like this (unresolved). Switching to the sun jvm (for java 6) fixed it. I'm looking forward to openjdk7 to try again. For me it's in the too hard basket when there is a jvm that works, and the next openjdk promises to be better :) Cheer

Re: use WeakReference in a SelectModel

2012-01-17 Thread Thiago H. de Paula Figueiredo
On Tue, 17 Jan 2012 17:02:49 -0200, lyifan wrote: up! please help me! You said: "the Select component keeps the MyObject instance until the web application restarts, which is a sort of memory leaking" Why do you think that? Due to the way Tapestry works, parameters of components, page

Problematic frame: J org.apache.tapestry5.internal.plastic.asm.ClassReader.accept(Lorg/apache/tapestry5/internal/plastic/asm/ClassVisitor;[Lorg/apache/tapestry5/internal/plastic/asm/Attribute;I)V

2012-01-17 Thread Julien Martin
Hello all, I am a novice Tapestry user coming from a JSF background and I must admit that T5 is highly productive and very enjoyable to work with. During the course of my recent T5 developments, I came across the following error and I wondered what may have caused it: Can anyone please advise.

Re: use WeakReference in a SelectModel

2012-01-17 Thread lyifan
up! please help me! -- View this message in context: http://tapestry.1045711.n5.nabble.com/use-WeakReference-in-a-SelectModel-tp5140106p5152570.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubsc

Re: Any Tapestry-specific performance analytics packages available?

2012-01-17 Thread Josh Canfield
Hey Kalle. I started tapestry-monitoring so that I could keep track of specific methods runtime (loading data from the database etc). https://github.com/joshcanfield/tapestry-monitoring I've had visions of extending it but I haven't needed other features enough to bump up the priority. I think

Re: Class reloading

2012-01-17 Thread Howard Lewis Ship
ComponentClassInstantiatorSource service is a good place to start, as well as the Plastic code. On Mon, Jan 16, 2012 at 5:57 PM, Christian Grobmeier wrote: > Howard, > > impressive. Can you point me to some code? I would like to look at it > myself, but didn't found the right place so far. > > Ch

Re: Select throws NullPointerException

2012-01-17 Thread Paulo Ricardo Ribeiro
Hi Lenny Thank you for your reply. Unfortunately I'm in a very tight schedule and wont be able to test your solution, but on future developments of this project I'll have it in consideration. Cheers Paulo Ricardo On Tue, Jan 17, 2012 at 2:36 PM, Lenny Primak wrote: > There is a general issue

Re: Select throws NullPointerException

2012-01-17 Thread Lenny Primak
There is a general issue with Tapestry and AJAX & Expired sessions. The issue and a solution is described (2nd try!) here: http://code.google.com/p/flowlogix/wiki/TLAJAXAnnotation On Jan 17, 2012, at 7:02 AM, Paulo Ricardo Ribeiro wrote: > Hi Thiago > > I wasn't sure where I should post, sorry :)

Re: Select throws NullPointerException

2012-01-17 Thread Lenny Primak
There is a general issue with Tapestry and AJAX & Expired sessions. The issue and a solution is described here: http://code.google.com/p/flowlogix/wiki/TapestryLibrary On Jan 17, 2012, at 7:02 AM, Paulo Ricardo Ribeiro wrote: > Hi Thiago > > I wasn't sure where I should post, sorry :) > > > So

Re: Creating Model objects

2012-01-17 Thread Thiago H. de Paula Figueiredo
I'd like to add that Object-Oriented Programming is about objects, of course. :) It's about creating data structures to organize and model the data you have, plus the methods that work on them. Anyway, creating a class is such a quick thing that I can't see any reason to use lots of primiti

Select throws NullPointerException

2012-01-17 Thread Paulo Ricardo Ribeiro
Hi Thiago I wasn't sure where I should post, sorry :) So, now, in the correct mailing list, with the code :) on my tml I have: ... on the java side, I have: public Object onValueChangedFromKeySets(Object sel2) { this.setSelectedTypes(new HashSet()); if (sel2 == null) { this.eid = n

Re: Creating Model objects

2012-01-17 Thread Lance Java
For me, it's mainly about maintainability Consider the following public class ViewPersonPage { @Property @Persist private int dobDay, dobMonth, dobYear; ... } public class EditPersonPage { @Property @Persist private int dobDay, dobMonth, dobYear; ... } public interface P

Re: Creating Model objects

2012-01-17 Thread Chris Mylonas
hi captain, read my response with a touch of diplomacy. > I may have missed something here but when dealing with simple pages is it > best to simple include the fields in your page objects or group them in > 'model' classes (like Person below)? "best" :) if you're going to cut code and you wor

Creating Model objects

2012-01-17 Thread captain_rhino
I may have missed something here but when dealing with simple pages is it best to simple include the fields in your page objects or group them in 'model' classes (like Person below)? Is there good technical reasons to do it one way or does it come down to personal preference? Thx in advance.

Re: Advice on creating new components

2012-01-17 Thread captain_rhino
Thx for the advice! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Advice-on-creating-new-components-tp5142727p5151135.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscri

Re: [5.2] how to read the 'for' attribute of a t:label in a mixin ?

2012-01-17 Thread ffred
Thanks for this detailed answer. The @HeartbeatDeferred trick does the job. Seems I was really missing something ;) -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-2-how-to-read-the-for-attribute-of-a-t-label-in-a-mixin-tp5136617p5151098.html Sent from the Tapestry - U