[5.2.1] @ActivationRequestParameter field and superclass "activate" ordering bug?

2010-10-14 Thread Vjeran Marcinko
Hi. Tapestry sets @ActivationRequestParameter fields on page instance before calling "activate" handler. But it seems that this ordering is only respected when both fields and activate handler are on the same page class, but in subclass-superclass cases, superclass "activate" handler is called

Re: T5 - Refresh 1 second Ajax method

2010-10-14 Thread iberck
Bryan Lewis wrote: > > This tutorial might be helpful. It shows a page being periodically > updated. > > http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5/ > > > On Thu, Oct 14, 2010 at 7:04 AM, LLTYK wrote: > >> >> I don't think there's an existing howto floating around so

Re: how to create a loop of parameters?

2010-10-14 Thread ael
JQuery on the Go... http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/ Simple Stupid JQuery Accordion :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-create-a-loop-of-parameters-tp3212860p3213031.html Sent from the Tapestry - User mailing list archiv

Re: Fetch Prototype library via Google DNS?

2010-10-14 Thread ael
You can configure the Tapestry Scriptaculous Path to get prototype library in google. I think that will do the trick. :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Fetch-Prototype-library-via-Google-DNS-tp3212754p3213027.html Sent from the Tapestry - User mailing lis

Re: Should Tapestry phone home?

2010-10-14 Thread Norman Franke
Another good reason to not do this is if the server that was being reported to dies or malfunctions, it could prevent startup or otherwise cause problems. I've had similar problems with the XML libraries doing validation to DTDs that don't exist anymore due to domain name registration issue

Re: Fetch Prototype library via Google DNS?

2010-10-14 Thread Howard Lewis Ship
Why do you want this? In a production application, Prototype will be bundled with the necessary Scriptaculous and Tapestry libraries into a single "virtual" asset. On Thu, Oct 14, 2010 at 1:05 PM, stephanos wrote: > > How can I configure Tapestry to fetch the Javascript Prototype library from >

Re: how to create a loop of parameters?

2010-10-14 Thread Howard Lewis Ship
There isn't a good way to do this. You could inject the "parameters" as Blocks into your code, then pass a List or Map of those Blocks to your component. It isn't as pretty in the markup. Alternately, you could have a naming convention, i.e. ... ... ... ... On Thu, Oct 14, 2010 at 2:2

Re: SessionStateObject lost with 5.2

2010-10-14 Thread Howard Lewis Ship
I don't ever see Jetty starting strangely ... what else is going on in your application besides Tapestry. Also ... it's always a good idea to "audit" your runtime classpath, make sure there isn't anything odd going on there. On Thu, Oct 14, 2010 at 2:17 PM, Moritz Gmelin wrote: > Getting closer.

Re: [T5.2.1] TAP5-1177 In a partial page update request, if the server returns an empty string for the content, the client-side is left as is, rather than cleared

2010-10-14 Thread Howard Lewis Ship
I think you've found a bug ... I think Tapestry should not set the content property of the response when there's a MultiZoneUpdate response, so as to leave the Zone's current content unchanged. Please add to JIRA and I'll see about fixing it soon. On Thu, Oct 14, 2010 at 12:12 PM, Blower, Andy w

how to create a loop of parameters?

2010-10-14 Thread Chuck Kring
Hi everyone, I'm trying to get equanda/accordion to work with a variable set of tabs and contents.The intent is that I want to loop across a list of groups of objects, with each group a tab and each entry in the tab is a Link to a page about the object. Something like this: Group A

Re: SessionStateObject lost with 5.2

2010-10-14 Thread Moritz Gmelin
Getting closer. In the cases where it happens, the binding and unbinding is called after cleanup from different threads. Threads are named btpool0-1 -btpool0-7. But as I said, this happens only about every second time I start my jetty server. The other times, the binding- unbinding is called on

Re: No 404 error is raised

2010-10-14 Thread Thiago H. de Paula Figueiredo
On Thu, 14 Oct 2010 17:17:49 -0300, stephanos wrote: Hi guys, Hi! I'm making my first steps with Tapestry 5.2 and find one thing very peculiar: All requests seem to go to the Index page (Index.tml in 'root') by default - even if the path does not exist! Example with page Index.tml and

No 404 error is raised

2010-10-14 Thread stephanos
Hi guys, I'm making my first steps with Tapestry 5.2 and find one thing very peculiar: All requests seem to go to the Index page (Index.tml in 'root') by default - even if the path does not exist! Example with page Index.tml and Login.tml: / -> Index /blabla -> Index /login -> Login

Fetch Prototype library via Google DNS?

2010-10-14 Thread stephanos
How can I configure Tapestry to fetch the Javascript Prototype library from the http://code.google.com/apis/libraries/devguide.html#prototype Google DNS server ? Cheers! Stephan -- View this message in context: http://tapestry.1045711.n5.nabble.com/Fetch-Prototype-library-via-Google-DNS-tp32

Re: SessionStateObject lost with 5.2

2010-10-14 Thread Moritz Gmelin
Hi, I added the logging as you suggested. This is part of the logging for a _SINGLE_ page request. CurrentSessionASO is our SSO. 10-10-14 21:51:12.049 [DEBUG] de.example.aso.CurrentSessionASO.valueBound(CurrentSessionASO.java:1587) session 1vsqjhkzdsj37 asoHash 1363402032 10-10-14 21:

[T5.2.1] TAP5-1177 In a partial page update request, if the server returns an empty string for the content, the client-side is left as is, rather than cleared

2010-10-14 Thread Blower, Andy
I've spent all day chasing down an issue that appeared when we upgraded to Tapestry 5.2.1 - it doesn't occur with T5.2.0, and I finally managed to find the change that is causing the problem. It's the fix for TAP5-1177 where tapestry.js was changed from Tapestry.

Re: SessionStateObject lost with 5.2

2010-10-14 Thread Howard Lewis Ship
Tapestry manages persistent state in the HttpSession. As of 5.2, it doesn't do anything special to handle cases of multiple requests (perhaps due to Ajax) attempting to modify the same SSO in multiple threads. This aligns with Brian Goetz's observation that all stateful web applications are inher

Re: Thanks for making my life hell!

2010-10-14 Thread Howard Lewis Ship
Well, thanks these are great comments, just the thing to cheer me up while reading my morning e-mail. I'm very proud of the majority of the code in Tapestry, both the work I've done, and the work of the other committers. I've made a few mistakes, especially in terms of naming things (what the

Re: [T5.2.1] IllegalAccessError again in my utility class

2010-10-14 Thread Howard Lewis Ship
I'm surprised there still a problem, we really hit all the available cases. It's tricky to do it right. In any case, 5.2.2 has a JVM system property that turns of the live service reloading logic (it doesn't affect reloading of components). 2010/10/14 Vjeran Marcinko : > Hi. > > Similar as in ve

Re: ApplicationStateManager throws an exception when an object is requested

2010-10-14 Thread Howard Lewis Ship
I already commited a fix that would generate a more useful message in this situation. I always think an NPE from inside Tapestry is a big failure. On Thu, Oct 14, 2010 at 9:25 AM, Manuel Sugawara wrote: > On Wed, Oct 13, 2010 at 2:30 PM, Howard Lewis Ship wrote: > >> See https://issues.apache.o

Re: ApplicationStateManager throws an exception when an object is requested

2010-10-14 Thread Manuel Sugawara
On Wed, Oct 13, 2010 at 2:30 PM, Howard Lewis Ship wrote: > See https://issues.apache.org/jira/browse/TAP5-1304 > > Basically, the Request service isn't set up yet in the method you are > invoking. > > Most likely, you want to contribute a filter to the RequestHandler > service pipeline, not the

Re: how to format Calendar object inside Grid component ?

2010-10-14 Thread kamath_svk
thank you that worked... -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-format-Calendar-object-inside-Grid-component-tp3211934p3212001.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: how to format Calendar object inside Grid component ?

2010-10-14 Thread Stephan Windmüller
On 14.10.2010 13:49, kamath_svk wrote: > i want to know how to format the java's calendar object in tapestry ? > i tried to format using > 1. "" & > 2. "" with > xmlns:tx="tapestry-library:tapx" Try a simple string: | | ${birthDate} | | public String getBirthDate() { | SimpleDat

Re: can not setup tapestry-spring-security

2010-10-14 Thread Alex Kotchnev
Andrey, I'm glad that it worked, it's no big deal. The free beer offer is much appreciated :-) Regards, Alex K On Thu, Oct 14, 2010 at 12:53 AM, Andrey Gladilin wrote: > Alex, it is your right to require free beer from me :) > > I changed the version of tapestry-spring-security to 2.1.0 and

Re: how to format Calendar object inside Grid component ?

2010-10-14 Thread kamath_svk
i even tried with tapestry v 5.0.18. unable to format Calendar. Inside Grid, Date is working properly but i cannot change code as it is used in many other places. i need to find a solution with Calendar object itself -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-

how to format Calendar object inside Grid component ?

2010-10-14 Thread kamath_svk
Hello All, I am using Tapestry 5.0.1.5. please don't tell me to change the version as i need to use the same version 5.0.1.5 & calendar object itself. i have a requirement where i am using java's calendar object(java.util.Calendar) to store dateOfBirth. @DataType("dateOfBirth") private Calenda

RE: Component to format null values

2010-10-14 Thread Jim O'Callaghan
You're welcome Dmitriy. One thing I should have said was that my example ${...} forced coercion to a String, which may / may not be required in your case. Regards, Jim. -Original Message- From: Dmitriy Vsekhvalnov [mailto:dvsekhval...@gmail.com] Sent: 14 October 2010 11:27 To: Tapestry

Re: T5 - Refresh 1 second Ajax method

2010-10-14 Thread Bryan Lewis
This tutorial might be helpful. It shows a page being periodically updated. http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5/ On Thu, Oct 14, 2010 at 7:04 AM, LLTYK wrote: > > I don't think there's an existing howto floating around so you're gonna > have > to put something tog

Re: T5 - Refresh 1 second Ajax method

2010-10-14 Thread LLTYK
I don't think there's an existing howto floating around so you're gonna have to put something together. This jumpstart demo (that does something completely irrelevant) should give you an idea of how to use the t5 ajax integration (ignore 90% of it, just see how to create a zone and how to update

Re: Component to format null values

2010-10-14 Thread Dmitriy Vsekhvalnov
you opened my eyes. Thanks. On Thu, Oct 14, 2010 at 12:21 PM, Jim O'Callaghan wrote: > I think you can use the format: > > > > ... where if any of the hierarchy is null is will stop trying to evaluate > methods / properties on subordinates, avoiding your NPE. > > Regards, > Jim. > > -Origina

SessionStateObject lost with 5.2

2010-10-14 Thread Moritz Gmelin
Hi, since upgradeing to Tapestry 5.2 (5.2.0 and 5.2.1) we sometimes obseve that the contents of our SessionStateObject gets lost. The Session-ID between 2 requests is identical, but the Hashcode of the @SessionState object changes and thus the contents are lost. If everything works correctly, t

Re: Component to format null values

2010-10-14 Thread Andreas Andreou
http://tapestry.apache.org/tapestry5.1/guide/propexp.html The "safe dereference operator" On Thu, Oct 14, 2010 at 12:03, Muhammad Mohsen wrote: > Excuse me, I'm not questioning the functioning of your mentioned solution > but where in the documentation is that ? I wanna read more about this. > T

Re: Component to format null values

2010-10-14 Thread Muhammad Mohsen
Excuse me, I'm not questioning the functioning of your mentioned solution but where in the documentation is that ? I wanna read more about this. Thanks On Thu, Oct 14, 2010 at 10:21 AM, Jim O'Callaghan wrote: > I think you can use the format: > > > > ... where if any of the hierarchy is null is

Re: Thanks for making my life hell!

2010-10-14 Thread Muhammad Mohsen
To be honest, I thought tapestry had a very bad documentation too when I first started reading about it. I had to watch every screencast and turned google code upside down to collect bits and pieces from here and there to output a decent functioning web application. But the potential kept me going

RE: Component to format null values

2010-10-14 Thread Jim O'Callaghan
I think you can use the format: ... where if any of the hierarchy is null is will stop trying to evaluate methods / properties on subordinates, avoiding your NPE. Regards, Jim. -Original Message- From: Dmitriy Vsekhvalnov [mailto:dvsekhval...@gmail.com] Sent: 14 October 2010 09:01 To:

Component to format null values

2010-10-14 Thread Dmitriy Vsekhvalnov
Hello all, i'm looking to some approach to render property value or some default string if value is null. Something like: I have no problem to implement such component,but i want this to work with property chains as well: where i want default string to be rendered, if any of intermediat

[T5.2.1] IllegalAccessError again in my utility class

2010-10-14 Thread Vjeran Marcinko
Hi. Similar as in version 5.2.0, and now in 5.2.1, my custom service (ComponentRequestHandler) registered in my module class still throws IllegalAccessError as in 5.2.0 since it accesses package-private static method in utility helper class. The utility class is stateful, and later used in o