T5: Occasional NPE (thread locale issues, maybe?)

2007-09-25 Thread Robert Zeigler
Hi, I've got an app in T5 (5.0.5) which intermittently throws an exception like: [ERROR] ExceptionReport Render queue error in BeginRender[core/ ExceptionReport:renderobject_0]: org.apache.tapestry.ioc.internal.util.TapestryException org.apache.tapestry.ioc.internal.util.TapestryException [a

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread Howard Lewis Ship
And 2.2 worked fine. On 9/25/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I'll try downgrading to 2.2. > > > On 9/25/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote: > > There's a link to your earlier opened issue now. What's the version > javadoc > > plugin you are using? It seemed like it wor

Re: [T5] Linkable rows with Grid component

2007-09-25 Thread Howard Lewis Ship
You just leverage the ability to override how particular columns are rendered: This assumes that your items have a property named label that you want to convert into a link. ${item.label} On 9/25/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > I would like to make each of

Re: Using PageTester with tapestry-spring

2007-09-25 Thread Doublel
My Application use spring2+tapestry5+hibernate3 ,it can work well in me IE or FF so,I want to use Unit Test with testNG .I followed http://tapestry.apache.org/tapestry5/tapestry-core/guide/unit-testing-pages.html configrate spring with

[T5] Linkable rows with Grid component

2007-09-25 Thread Jean-Philippe Steinmetz
I would like to make each of the rows in my grid component output link to some page. For instance have each row link to a detail page about that row. Is this possible with the grid component? If so how can I do it? Thanks Jean-Philippe Steinmetz

Re: T5 BigDecimalTranslator and Coercion of null to type java.math.BigDecimal

2007-09-25 Thread 蝈蝈龙
It has been fixed in the newest 5.0.6-SNAPSHOT 2007/9/26, Nick Westgate <[EMAIL PROTECTED]>: > > Probably this: > https://issues.apache.org/jira/browse/TAPESTRY-1648 > > Cheers, > Nick. > > > Josh Penza wrote: > > I have build my own BigDecimalTranslator, because this translator was > not > > in

Re: session state vs application state?

2007-09-25 Thread Marcus
Josh, Again, I agree, every method that change the _lista should be synchronized. Marcus

Re: session state vs application state?

2007-09-25 Thread Josh Canfield
On 9/25/07, Marcus <[EMAIL PROTECTED]> wrote: > > Hi Josh, > > I agree with your comment. Add synchronization to "add" method is a good > practice. > > Marcus > Synchronizing "add" won't solve the problem. Any time you are going to structurally change the list then any iterator becomes invalid and

Re: T4.1: html tag property xmlns with Shell

2007-09-25 Thread Andreas Andreou
No, not possible - you can add a feature request though at http://issues.apache.org/jira/browse/TAPESTRY On 9/25/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > Can I make the Shell component write the xmlns property to the html tag? > > Cheers, > Malin > -- Andreas Andreou - [EMAIL PROTECTED]

Re: session state vs application state?

2007-09-25 Thread Marcus
Hi Josh, I agree with your comment. Add synchronization to "add" method is a good practice. Marcus

Re: Dr. Seuss for the day, too far out of date

2007-09-25 Thread Jesse Kuhnert
Wow, that's f-ing hilarious and super awesome at the same time. Thanks for making an otherwise stressful day a little bit better. =) On 9/25/07, Bill Holloway <[EMAIL PROTECTED]> wrote: > Will you work with JSP? > > They mess up my MVC. > I will not work with JSP. > > We'll put them in an IDE. >

Re: session state vs application state?

2007-09-25 Thread Josh Canfield
I'm thinking that you are going to run into problems with this technique. While page instances are thread safe, your page class will definitely be used by multiple threads. If you are adding to _lista while iterating over it then you are going to get an ConcurrentModificationException. Performing a

Re: session state vs application state?

2007-09-25 Thread Marcus
Hi Robert, Anyway, if you create a class with static methods and attributes, your object will be shared for entire application. public class ListaEstatica { private static List _lista; public static List getLista() { if (_lista==null)

Re: T5 and Enum

2007-09-25 Thread Howard Lewis Ship
${} in text, or in an attribute, evaluates its expression and converts it to a string, which is then streamed out as part of the response. You need something else, something similar to the GridCell component, capable of extracting a property and finding a strategy for presenting it to the user

T4.1: html tag property xmlns with Shell

2007-09-25 Thread Malin Ljungh
Can I make the Shell component write the xmlns property to the html tag? Cheers, Malin

Re: Comparison

2007-09-25 Thread Christian Gruber
I agree with Francois, but would add WebObjects, since it is going to be open-sourced, and has a long history and is a "mature" product. I'd fit it between Wicket and Tapestry 5. It has the core component architecture that inspired Tapestry, has some nice tools, and can run outside of a

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread Howard Lewis Ship
I'll try downgrading to 2.2. On 9/25/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote: > > There's a link to your earlier opened issue now. What's the version > javadoc > plugin you are using? It seemed like it works in 2.2, maybe the latest > snapshot or you may need to build the latest yourself. > >

Re: T5 BigDecimalTranslator and Coercion of null to type java.math.BigDecimal

2007-09-25 Thread Nick Westgate
Probably this: https://issues.apache.org/jira/browse/TAPESTRY-1648 Cheers, Nick. Josh Penza wrote: I have build my own BigDecimalTranslator, because this translator was not in the current Tapestry Release 5.0.5. The textfield on my html page has a BigDecimalTranslator attached. But when the

Re: Comparison

2007-09-25 Thread Francois Armand
Borut Bolčina wrote: Hello, has anyone done a fair comparison of T5, JSF (any incarnation), Wicket or/and any other Java web framework. I Well, realy broad question. You should find some ideas here : http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1 and all around the web. Of

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread Kalle Korhonen
There's a link to your earlier opened issue now. What's the version javadoc plugin you are using? It seemed like it works in 2.2, maybe the latest snapshot or you may need to build the latest yourself. Kalle On 9/25/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > http://jira.codehaus.org/bro

T5 BigDecimalTranslator and Coercion of null to type java.math.BigDecimal

2007-09-25 Thread Josh Penza
I have build my own BigDecimalTranslator, because this translator was not in the current Tapestry Release 5.0.5. The textfield on my html page has a BigDecimalTranslator attached. But when the textfield is empty and I submit the page it results in a NullpointerException: Coercion of null to type

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread Howard Lewis Ship
http://jira.codehaus.org/browse/MJAVADOC-150 I thought I had added it previously, but couldn't find it. So I just (re-)added it. On 9/25/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote: > > What's the Maven bug you are trying to work around? Maybe we could help. > > Kalle > > On 9/25/07, Howard Lew

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread Kalle Korhonen
What's the Maven bug you are trying to work around? Maybe we could help. Kalle On 9/25/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > I'm not sure how upto date the snapshots are. > > That's likely caused by using too old a version of Log4J in your project. > You want to ensure that you are

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread Howard Lewis Ship
I'm not sure how upto date the snapshots are. That's likely caused by using too old a version of Log4J in your project. You want to ensure that you are using 1.2.14. I'm trying to work around a Maven bug so that I can set up nightly builds for T5. On 9/25/07, SergeEby <[EMAIL PROTECTED]> wrote:

RE: Comparison

2007-09-25 Thread Kolesnikov, Alexander GNI
One objective and undisputable benefit of any version of Tapestry over JSF is that in Tapestry you can create custom controls very easily, and so you have plenty of freedom in designing your interfaces. Everything else is arguable. You cannot compare frameworks without specifying some set of crit

Comparison

2007-09-25 Thread Borut Bolčina
Hello, has anyone done a fair comparison of T5, JSF (any incarnation), Wicket or/and any other Java web framework. I have WebObjects background and some T4 demo apps. I read Neil Ford's "Art Of Java Web Development" a book a while ago, but it is outdated now. Still, it has guidelines for web frame

RE: Using PageTester with tapestry-spring

2007-09-25 Thread Joel Wiegman
Sure... what questions do you have? I'd rather not write 8 paragraphs and still not answer your questions... -Original Message- From: Doublel [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 7:59 PM To: Tapestry users Subject: Re: Using PageTester with tapestry-spring I run in

T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread SergeEby
Hi, I tried to update my application from 5.0.5 to 5.0.6-SNAPSHOT. The main change was the use of slf4j. However, I am getting the following error when starting the application via maven: java.lang.AbstractMethodError at org.apache.tapestry.ioc.internal.RegistryImpl.(RegistryImpl.java:1

Re: Dr. Seuss for the day, too far out of date

2007-09-25 Thread Nick Westgate
Not for those of us who've had to drop Tapestry for JSPs. :-( Cheers, Nick. Filip S. Adamsen wrote: Haha, excellent! : D -Filip Bill Holloway skrev: Will you work with JSP? They mess up my MVC. I will not work with JSP. We'll put them in an IDE. I don't want them in an IDE. They screw up

T5 and Enum

2007-09-25 Thread Josh Penza
In the tapestry 5 Forms tutorial, is demonstrated how one can customize the options in the drop down list. The Honorific Enum values are customized in the page.properties This works really nice. Next I added an AddressDetail page that display address information. For example like this: ${addre

Re: Dr. Seuss for the day, too far out of date

2007-09-25 Thread Filip S. Adamsen
Haha, excellent! : D -Filip Bill Holloway skrev: Will you work with JSP? They mess up my MVC. I will not work with JSP. We'll put them in an IDE. I don't want them in an IDE. They screw up the MVC. I will not work with JSP. We'll put them down inside some struts. You'll never see them, In t

T5, Customized Validation

2007-09-25 Thread Josh Penza
I have a question about validation in Tapestry 5 My page contains two components. A textfield and a select. These components are related and only one of them has to be filled in. When the textfield has a value, then the select value is ignored. And when the select has a value, then the textfield

Re: client validation problem with 4.1.3

2007-09-25 Thread Martino Piccinato
I reply to myself, there's already a bug opened for this: http://issues.apache.org/jira/browse/TAPESTRY-1753 Hivemind is throwin an exception if I try to override the required validator contribution, isn't it possible to override it? On 9/25/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: > We h

client validation problem with 4.1.3

2007-09-25 Thread Martino Piccinato
We have recently upgraded to tapestry 4.1.3 and started having a relatively random problem with client side validation: in some cases, apparently where we have "validators:required" bindings it appears an empty validation box (no message, just the "ok" button) even though all required fields are no

Re: Thread continuation after client disconnection

2007-09-25 Thread #Cyrille37#
Thanks to you two for those ligths. cheers cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [T5] Broken links in documentation

2007-09-25 Thread Robin Helgelin
On 9/25/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: > Hello, > > just reporting some broken links > Maybe all API links are broken. Yes, Howard updated the documentation to 5.0.6-SNAPSHOT whilst the website is probably referring to 5.0.5 at the moment. -- regards, Robin

Re: T5: Initial value for a field (persisted, parameter or just a plain field)

2007-09-25 Thread Ted Steen
Ok, So this means that private MyObject myObject = new MyObject(); would not give me a new MyObject for every request? only a reference to that object (that was created once at page creation time) is this correct? this means that I would need something like this in onActivate() if (myObject == null

how to reference public field of included component in template (T5)

2007-09-25 Thread Britske
Some context first: I'm using the T5 grid with the row-parameter to bind the current-row to a property 'cityresult' so that I can edit the contents of all cells of the name-column (works splendid by the way) ${cityresult.city.name} However, I forsee that some pages will contain

[T5] Broken links in documentation

2007-09-25 Thread Borut Bolčina
Hello, just reporting some broken links at http://tapestry.apache.org/tapestry5/tapestry-core/guide/lifecycle.html this three http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/annotations/PageLoaded.html http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/annotations/P

Re: Thread continuation after client disconnection

2007-09-25 Thread Renat Zubairov
Hi Another problem with that approach that Threads in java generally can not be killed (or not recommended to be killed) therefore I would assume that Servlet Container just dumps the output to /dev/null :) in case user is gone Renat On 24/09/2007, #Cyrille37# <[EMAIL PROTECTED]> wrote: > #Cyril