Re: Problems using ioko-cache control

2011-03-31 Thread Ben Gidley
There should be more of the exception - that would tell us what is actually breaking. ioko haven't tested it with Tapestry 5.2.4 - but I don't see any reason it wouldn't work. The error you are seeing suggests it is trying to register the EHCache JMX monitors and failing for some reason. If you s

Re: Logon notification

2011-03-31 Thread David Uttley
Jim, Thanks for your example that looks like it will do the trick. I was only looking at the ApplicationListener as it looked like an elegant solution. Jonathan, The services are indeed Spring services that I am seeing the events from, I am assuming when the Spring services start they register

Re: Generating popup window after form success

2011-03-31 Thread David Uttley
Hi Rich, You could use Javascript to submit the form using AJAX and then in the load section popup your dialog. function sendXHRAndUpdate(settings){ var xhrArgs = { form : settings.formId, handleAs : "json", load : function(data) {

Re: [ANNOUNCE] tapx-prototype is back

2011-03-31 Thread Massimo Lusetti
On Wed, Mar 30, 2011 at 7:13 PM, Howard Lewis Ship wrote: > I've resurrected my tapx-prototype module, to patch Tapestry to > Prototype 1.7 (and Scriptaculous 1.9.0). > > It's in my snapshot Maven repository: > > http://howardlewisship.com/snapshot-repository/ > > >  com.howardlewisship >  tapx-

[ANN] Tapestry5-JQuery

2011-03-31 Thread François Facon
I am really pleased to announce Tapestry5-jQuery 2.1.0, which is built against Tapestry 5.2.5. The purpose of Tapestry5-jQuery is to remove the dependency on Prototype and Scriptaculous by overriding the default Core JavaScriptStack by a new stack based on jQuery. The first snapshot version for Ta

Re: [ANN] Tapestry5-JQuery

2011-03-31 Thread Angelo C.
good, will try this in a new project. I have seen lately quite a lot of 3rd party components for t5, good news to the t5 users, thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-Tapestry5-JQuery-tp4272950p4272957.html Sent from the Tapestry - User mailing list arc

Re: [ANN] Tapestry5-JQuery

2011-03-31 Thread Massimo Lusetti
2011/3/31 François Facon : > I am really pleased to announce Tapestry5-jQuery 2.1.0, which is built > against Tapestry 5.2.5. > The purpose of Tapestry5-jQuery is to remove the dependency on > Prototype and Scriptaculous by overriding the default Core > JavaScriptStack by a new stack based on jQue

RE: Logon notification

2011-03-31 Thread Jim O'Callaghan
Jonathan, Sample HTTPSessionListener and SessionMonitor classes below – if you are using a clustered environment you would want to adjust this to leverage a db oriented solution – you’ll probably find some holes in it but for my purposes it works as required.  I use it to display a grid of Session

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
The Tapestry NumericValidator seems to rely on whether Double.valueOf(String) will throw an exception, which it does for '1k'. How are you configuring and using your validator? On Tue, Mar 29, 2011 at 5:19 PM, Adam Zimowski wrote: > It is server side. Looks like if input starts with a digit, Tap

Re: Generating popup window after form success

2011-03-31 Thread Chris Norris
I'd probably just set a value on the next page to be rendered after the form that would use JavaScript support to create the popup. On Wed, Mar 30, 2011 at 5:13 PM, Rich M wrote: > Hi, > > I'm wondering if there is a good strategy to create a popup window after a > successful form submit. The con

Re: How do I set the anchor of the current page?

2011-03-31 Thread Chris Norris
Instead of returning null, why not return a url that has the anchor set? On Tue, Mar 29, 2011 at 1:04 PM, LLTYK wrote: > So someone clicked something on my page, and whatever event handler returns > null/is void. Is there a way to set the anchor in this case? I know there's > a setAnchor on a Lin

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
My client side validation is disabled. This happens on my shopping cart page where I have multiple forms (inside a loop) with indexed trackers ( Map. You can find complete code for the ShoppingCart page which exhibits this behavior in another thread which I posted recently: "T5: form validation wi

Re: [ANNOUNCE] tapx-prototype is back

2011-03-31 Thread Howard Lewis Ship
Right, this is for 5.2.5. There are some minor issues with 5.2.5 and this library that I'm working out. It may be extended to include a bit of a "monkey patch" on tapestry.js and palette.js to fix those things ... they represent changes in the Prototype APIs (and, I assume, places where Tapestry

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
Sorry, I was completely wrong. I was looking at a NumericValidator that we wrote, not a Tapestry one. On Thu, Mar 31, 2011 at 9:43 AM, Adam Zimowski wrote: > My client side validation is disabled. This happens on my shopping > cart page where I have multiple forms (inside a loop) with indexed > t

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
No problem. Howard mentioned this may be a Tapestry bug. I'm in no immediate rush as my project isn't going live until next year, so hopefully by then it gets fixed. Adam On Thu, Mar 31, 2011 at 10:51 AM, Chris Norris wrote: > Sorry, I was completely wrong. I was looking at a NumericValidator >

Re: Logon notification

2011-03-31 Thread Jonathan Barker
Jim, Very nice. Thanks! It's something that I've wanted to add to a few applications, but it's never been high enough on the priority list to actually get done. You've just dropped the barrier to adding it immensely. Jonathan On Thu, Mar 31, 2011 at 7:14 AM, Jim O'Callaghan wrote: > Jonathan

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
Well perhaps you can teach me a few things. I'm trying to figure out by what mechanism tapestry would be validating this. We generally specify our custom NumericValidator on numeric fields. Is there some sort of automatic validation that can occur? I don't see much mention of it on this page: http:

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
:) I don't think I'm in position to teach Tapestry to others, I'm still learning myself But, using Eclipse I looked at class hierarchy for: org.apache.tapestry5.AbstractValidator and see that Tapestry provides only the following out of the box: Email, Max, MaxLength, Min, MinLength, None, Re

Re: Generating popup window after form success

2011-03-31 Thread LLTYK
So wait, is this form submit an ajax submit? Why wouldn't there always be a page refresh (and thus you can do that conditional javascript scenario you described). There's no way the transaction can be successful otherwise (unless you're submitting via ajax). -- View this message in context: http:

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
Now I'm all curious. After looking through FieldValidatorDefaultSource, FieldValidatorSource and the ValidationContstraintGenerator implementations, I'm not sure how a numeric field would automatically be validated as such. The Regexp validator is only reference in TapestryModule, which allows you

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
> I'm wondering what lead you to believe it would be automatically Because if I define a TextField bound to numeric property without any validation of my own whatsoever, Tapestry will validate non-numeric input for me. Adam On Thu, Mar 31, 2011 at 1:24 PM, Chris Norris wrote: > Now I'm all curi

Re: [ANN] Tapestry5-JQuery

2011-03-31 Thread françois facon
Thanks Massimo. in 5.1.0.5, we used to override the ClientInfrastructureImpl. In 5.2, we override CoreJavaScriptStack which internaly use the ClientInfrastructure. Perhaps in 5.3 or 5.4 we will be allow to dynamically change the all stack. Same components but specific javascript stack and template

Re: [ANN] Tapestry5-JQuery

2011-03-31 Thread Christian Riedel
The main problem was the question of how to override the JavaScript files. It wasn't possible to override those files in some places. Tapestry's Palette component was one of these so there's an extra component in the jQuery namespace. I'm thinking about the best way to proceed with that problem.

Re: [ANN] Tapestry5-JQuery

2011-03-31 Thread Howard Lewis Ship
2011/3/31 françois facon : > Thanks Massimo. > > in 5.1.0.5, we used to override the ClientInfrastructureImpl. In 5.2, > we override CoreJavaScriptStack which internaly use the > ClientInfrastructure. > Perhaps in 5.3 or 5.4 we will be allow to dynamically change the all stack. > Same components bu

Re: ioko cache component

2011-03-31 Thread Ben Gidley
Hi, Your problem is with dependencies... Both Tapestry 5 and ioko-commons use SLF4J which can use a range of logging systems. However some of the libraries ioko-commons depend on use apache-commons. You need to include the following dependency and will route apache commons logging over slf4j log