Re: Tapestry 5.3.4

2012-08-15 Thread David Rees
On Sat, Aug 11, 2012 at 7:20 AM, Stephan Windmüller wrote: > On 11.08.2012 02:00, David Rees wrote: > >> I'm confused - so what's the proper fix to get the yuicompressor >> dependency downloaded when one is using a maven proxy? > > Configure your maven proxy

Re: Tapestry 5.3.4

2012-08-10 Thread David Rees
On Fri, Jul 20, 2012 at 10:11 AM, Kalle Korhonen wrote: > Yes, the pom looks correct: > http://central.maven.org/maven2/org/apache/tapestry/tapestry-yuicompressor/5.3.4/tapestry-yuicompressor-5.3.4.pom > > You are instructing Maven to use a proxy exactly so that it wouldn't > generate requests to

Re: Adding confirmation step to form

2012-06-15 Thread David Rees
On Fri, Jun 15, 2012 at 12:57 AM, Geoff Callender wrote: > See if this helps: the Wizard Using Form Fragments example on: > >     http://jumpstart.doublenegative.com.au/jumpstart Yeah - don't know how I missed that before - that looks like the perfect solution and is nearly exactly the app flow I

Adding confirmation step to form

2012-06-14 Thread David Rees
I feel like this should be something dead-simple and am missing something obvious - I'm sure you guys will have a slick solution here. :-) I'm creating a simple form which has a confirmation step. Use case goes like this: Step 1: Enter data Step 2: Validate data show "confirmation" page if OK St

Re: java.util.ConcurrentModificationException in tapestry 5.3.3 under stress

2012-05-23 Thread David Rees
On Wed, May 23, 2012 at 2:28 PM, Sean wrote: > I recently upgraded to tapestry 5.3.3 from 5.0.1.x, and while running some > load tests using jmeter, I saw some new ConcurrentModificationException > errors. The test is simple, it just selects the first checkbox on the form, > then submits it. >

Re: Recommended method to reference assets in .css file?

2012-04-24 Thread David Rees
On Tue, Apr 24, 2012 at 4:04 PM, Chris Mylonas wrote: > Good question - I don't know about from within a CSS file. > ... > Looking into the tapestry source, specifically   > src/main/resources/org/apache/tapestry5/tapestry-console.css > it uses relative links to the pics in > src/main/resources/o

Recommended method to reference assets in .css file?

2012-04-24 Thread David Rees
What's the recommended method to reference assets in a .css file - for example background images? Currently I use a hard-coded relative URL, but this has the drawback of causing the browser to cache the resource after it's changed leading to browsers caching old resources unless I change the name

Re: Disable zone update for specific form submit

2012-01-26 Thread David Rees
On Thu, Jan 26, 2012 at 1:28 PM, Thiago H. de Paula Figueiredo wrote: > On Thu, 26 Jan 2012 19:05:39 -0200, David Rees wrote: >> I've got a form in a zone with multiple submits.  If the user selects >> one of them, I'd like to not do a zone update but instead do regula

Disable zone update for specific form submit

2012-01-26 Thread David Rees
I've got a form in a zone with multiple submits. If the user selects one of them, I'd like to not do a zone update but instead do regular form submit handling (want to download a file using BinaryStreamResponse instead of render a zone update). tml looks something like this: Suggestions?

Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2012-01-20 Thread David Rees
On Wed, Jan 11, 2012 at 4:44 AM, antalk wrote: > I'm in the process of upgrading our webapps to Tap 5.3.x and we use this > library for our authentication process. I'm happy to announce that i've > updated the 3.0.0 trunk of tapestry-spring-security to work with Tapestry > 5.3.x. > > Now all i nee

Re: prototypejs is dead - time to bring t5-jquery in?

2011-12-14 Thread David Rees
On Wed, Dec 14, 2011 at 10:36 AM, Thiago H. de Paula Figueiredo wrote: > On Wed, 14 Dec 2011 16:30:15 -0200, Lenny Primak > wrote: >> I would say it's better to favor better functionality rather than >> backwards compatibility in this case. > > Backward compatibility is a very strong priority for

prototypejs is dead - time to bring t5-jquery in?

2011-12-13 Thread David Rees
Reading the prototypejs mailing list archives, it's pretty clear that prototypejs is pretty much dead at this point in time. The tapestry5-jquery team have done a great job replacing prototypejs with jquery which is pretty much the defacto javascript library these days. Is it time to bring tapest

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread David Rees
On Wed, Dec 7, 2011 at 10:53 AM, Lenny Primak wrote: > You can still get a directory listing of assets, but you can't access them > directly. > I have a fix in the flowlogix library for this, but perhaps I should file a > JIRA... Yeah, you should. That's an information disclosure security bug.

Re: Validate without a form field

2011-08-29 Thread David Rees
On Sat, Aug 27, 2011 at 9:14 AM, Robert Zeigler wrote: > FieldValidatorSource is heavily geared for form fields; form field validation > involves potentially hooking up client-side js to the form field, displaying > error messages to the user, tracking the field that generated the error, etc. >

Validate without a form field

2011-08-26 Thread David Rees
Trying to validate a request parameter but without using a form field. Was going down the route of @Injecting a FieldValidatorSource and then using that to create a validator which I can then use to validate the parameter, but that requires me to insert a Field into the tml file and the tml file i

Re: exists variable false - but sessionstate variable not null?

2011-06-13 Thread David Rees
On Mon, Jun 13, 2011 at 4:25 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 13 Jun 2011 19:58:36 -0300, David Rees wrote: > >> I've got a @SessionState variable used to track the logged in user >> declared along with an exists variable like this on multiple pag

exists variable false - but sessionstate variable not null?

2011-06-13 Thread David Rees
I've got a @SessionState variable used to track the logged in user declared along with an exists variable like this on multiple pages: @SessionState @Property private User user; private boolean userExists; Now, what I have seen on occasion is that userExists == false even when the user variable h

Re: Logo asset path

2011-05-16 Thread David Rees
On Mon, May 16, 2011 at 5:46 PM, Greg Pagendam-Turner wrote: > Perhaps the examples at > http://tapestry.apache.org/tapestry5/guide/assets.html should be changed to > include ${} Latest docs are better than those old docs. http://tapestry.apache.org/assets.html -Dave --

Re: Logo asset path

2011-05-16 Thread David Rees
On Mon, May 16, 2011 at 5:32 PM, Greg Pagendam-Turner wrote: > I'm trying to reference a logo in my Layout component. > > The logo is located in the project under > src/main/webapp/layout/images/logo.png > > After reading http://tapestry.apache.org/tapestry5/guide/assets.html I would > have though

Re: TAP5-920 rears it's head again in 5.2 with a twist

2011-05-13 Thread David Rees
On Fri, May 13, 2011 at 1:43 PM, Rich M wrote: > I've run into this issue now myself, was there ever a resolution to this or > a workaround? As David said, supply an explicit value encoder isn't able to > solve the issue for me either. My brute force workaround was to disable tapestry.hibernate.p

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread David Rees
On Fri, Apr 8, 2011 at 1:43 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Apr 2011 16:59:26 -0300, David Rees wrote: >> Yep, did that and it works great now.  Should I update the wiki or >> something? > > Please do it. Thanks in advance. :) Done. http://wik

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread David Rees
On Fri, Apr 8, 2011 at 12:01 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Apr 2011 15:44:43 -0300, Joe Klecko wrote: >> DOH!  Nice find David.   I've been using this binding in several T5.1 >> projects and now starting to use it in T5.2 projects.  Thiago is there an >> easy T5 way to mak

T5.2 BindingPrefixCycle not thread safe

2011-04-07 Thread David Rees
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle I notice that using the above code in T5.2 results in arbitrary results now on T5.2 if multiple requests are executing at the same time. It appears that the same CycleBinding ends up being used across requests. It seems that we'

DateTimeField background

2011-03-25 Thread David Rees
I'm working on upgrading an application from T5.1 to T5.2 and of course to chenille-kit 1.3.2. I have found that the DateTimeField component always sets the input background to white and can't find a way to override it. Am I missing something or do I need to look at modifying the component? -Dav

Re: GZIP: Tapestry or Apache

2011-03-25 Thread David Rees
On Fri, Mar 25, 2011 at 9:25 AM, stephanos2k wrote: > Out of sheer interest: Assuming Apache is used in front of Tapestry, which of > the two would be the best place to GZIP resources? Why? > > PS: Considering  speed, CPU/memory usage & compatibility - not considering: > setup & maintenance Becau

TAP5-920 rears it's head again in 5.2 with a twist

2011-03-24 Thread David Rees
TAP5-920 has long been an issue for one of our applications which uses composite keys. https://issues.apache.org/jira/browse/TAP5-920 In the past we have worked around the issue by providing an encoder with our affected loops. We are now working on upgrading from 5.1.0.5 to 5.2.4 and have run in

Re: Minify tapestry.js (and other js/css)

2011-03-23 Thread David Rees
On Wed, Mar 23, 2011 at 7:44 PM, Thiago H. de Paula Figueiredo wrote: > On Wed, 23 Mar 2011 22:04:16 -0300, David Rees wrote: > >> I'm looking for an effective way to minify tapestry.js (along with >> other Tapestry supplied js/css). > > It's in the plan to have

Re: Tapestry 5 with Prototype 1.7

2011-03-23 Thread David Rees
On Tue, Mar 22, 2011 at 4:09 AM, antalk wrote: > Today i replaced the internal prototype.js from Tapestry with the released > 1.7 version. I didn't had to change any code at all and our sites are now > correctly working with IE9. FWIW - I have tried 1.7 on Tapestry 5.1.0.5 and get javascript erro

Minify tapestry.js (and other js/css)

2011-03-23 Thread David Rees
I'm looking for an effective way to minify tapestry.js (along with other Tapestry supplied js/css). I've found a good way to do this for the prototype/scriptaculous JS by overriding the the "tapestry.scriptaculous" factory default mapping and using my own supplied JS like tapx-prototype. But shor

Re: Tapestry 5 with Prototype 1.7

2011-03-22 Thread David Rees
On Tue, Mar 22, 2011 at 4:43 PM, Kalle Korhonen wrote: > Agree... doesn't look like we have an issue open for it yet. There's > the tapx-prototype but I don't see a reason for not putting it in > directly for 5.2.x. tapx-prototype is gone now (deleted with the message that it's not needed with ta

Re: Tapestry 5 with Prototype 1.7

2011-03-22 Thread David Rees
On Tue, Mar 22, 2011 at 4:09 AM, antalk wrote: > Today i replaced the internal prototype.js from Tapestry with the released > 1.7 version. I didn't had to change any code at all and our sites are now > correctly working with IE9. > > I think 1.7 should be included in the upcoming release asap. Wi

Re: Prevent double submission w/linkSubmit

2010-12-10 Thread David Rees
On Thu, Dec 9, 2010 at 2:57 PM, Benny Law wrote: > Keep in mind that a form could be submitted by pressing the Enter key inside > a text field. A safer approach would be to prevent the form itself from > being submitted more than once, regardless of how it is submitted. Right - and as I stated in

Prevent double submission w/linkSubmit

2010-12-03 Thread David Rees
I'm having problems figuring out how to prevent double clicks with a linkSubmit. With a regular submit, you can just disable the submit button after observing a FORM_PREPARE_FOR_SUBMIT_EVENT, but this doesn't seem to work for a linkSubmit element. Using T5.1.0.8-SNAPSHOT. Any ideas? Have also t

Re: ChenilleKit RELEASE 1.3.0

2010-11-08 Thread David Rees
On Mon, Nov 8, 2010 at 6:22 AM, Massimo Lusetti wrote: > I would like to announce the availability of ChenilleKit 1.3.0, our > first release to support Tapestry 5.2 branch... namely version 5.2.2 Thank you! Does 1.3.0 also support Tapestry 5.1? -Dave

Re: 5.1.0.6-SNAPSHOT ?

2010-01-26 Thread David Rees
On Tue, Jan 26, 2010 at 4:43 AM, Andreas Andreou wrote: > I'm not sure how this is possible... Version ranges were supposed to help > in that regard, i.e. you'd have your pom depend on Tapestry [5.1, 5.2) > and perhaps this will just work for you Thanks for the suggestion. For now, I'll lock it

Re: 5.1.0.6-SNAPSHOT ?

2010-01-25 Thread David Rees
On Mon, Jan 25, 2010 at 7:04 PM, Andreas Andreou wrote: > no - there's more! > http://repository.apache.org/snapshots/org/apache/tapestry/tapestry-project/ > will show you the list Thanks - missed that. What do you think about just creating a general 5.1.0-SNAPSHOT that tracks the 5.1.0 branch i

Re: 5.1.0.6-SNAPSHOT ?

2010-01-25 Thread David Rees
On Mon, Jan 25, 2010 at 6:21 PM, Andreas Andreou wrote: > see http://repository.apache.org/snapshots Those only appear to contain 5.2.0 snapshots, not 5.1.0 snapshots, unless I am missing something? Thanks! -Dave - To unsubscr

Re: 5.1.0.6-SNAPSHOT ?

2010-01-25 Thread David Rees
On Wed, Dec 2, 2009 at 11:47 AM, David Rees wrote: > With 5.1.0.6 around the corner, where can we find SNAPSHOT builds? > > Looked on the regular snapshot server, only found 5.2.0.0-SNAPSHOTs there. Just following up on this again - any chance we can get 5.1.0-SHAPSHOTs going until 5.1

Re: Zone update effect in T5

2009-12-02 Thread David Rees
On Wed, Dec 2, 2009 at 5:37 PM, Benny Law wrote: > Can someone show me how I can turn off the fading yellow effect when a zone > is updated? Set the zone's update attribute to something other than the default. Frankly, I wish the default did not display any effects! -Dave ---

5.1.0.6-SNAPSHOT ?

2009-12-02 Thread David Rees
With 5.1.0.6 around the corner, where can we find SNAPSHOT builds? Looked on the reguar snapshot server, only found 5.2.0.0-SNAPSHOTs there. Thanks! -Dave - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For addi

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread David Rees
On Wed, Nov 18, 2009 at 1:57 AM, Howard Lewis Ship wrote: > On Wed, Nov 18, 2009 at 1:52 AM, Markus Joschko > wrote: >> But doesn't stabilizing mean to fix at least the major bugs? >> Especially if patches are provided? Otherwise it looks more like >> hibernating. > > True; the big question is w

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread David Rees
On Tue, Nov 17, 2009 at 11:56 AM, Kalle Korhonen wrote: > On Tue, Nov 17, 2009 at 11:01 AM, David Rees wrote: >> On Tue, Nov 17, 2009 at 2:00 AM, Ciaran Wood wrote: >>> The issue you were thinking of is >>> https://issues.apache.org/jira/browse/TAP5-714 - there is a

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread David Rees
On Tue, Nov 17, 2009 at 2:00 AM, Ciaran Wood wrote: > The issue you were thinking of is > https://issues.apache.org/jira/browse/TAP5-714 - there is a patch w/tests > attached to the issue so a committer can probably fix this one! Thanks, voted. BTW, it affects all versions of IE that I tested. I

Re: How to use tapx-protoype

2009-11-16 Thread David Rees
On Mon, Nov 16, 2009 at 10:47 PM, Mario Udina wrote: > I am not using maven! What do I have to do to use tapx-prototype? Just download it and put the jar file in your library path - Tapestry will pick it up automagically. And next time don't hijack the thread. :-p -Dave ---

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-16 Thread David Rees
On Mon, Nov 16, 2009 at 9:17 PM, Kalle Korhonen wrote: > There's a known issue with the version of prototype packaged in > T5.1.0.5 and IE8. Are you using the newly released tapx-prototype > already (http://tapestry.formos.com/projects/tapx/)? Yep, already using tapx-prototype, that was the first

T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-16 Thread David Rees
Anyone else have issues with the new JSON encoding in 5.1? I upgraded an application when a block is returned that has a JavaScript link in it with single quotes, IE8 (haven't tested other versions of IE) puke on it. For example, this snippet in the block: Click me Gets returned in T5.1.0.5 as: