tapestry validation queries?

2010-07-20 Thread Chris Mylonas
Hi Everyone, I'm just finishing my first tapestry (sub)project!! Woohoo! What a learning experience. I'd love to go back and pull apart the code, but this project isn't mine to take home and pull apart, and I don't have time on-the-job to do it because there's the next project already in t

Re: redirecting from an ajax event listener

2010-07-20 Thread Kalle Korhonen
You can implement onException() to catch exceptions thrown from page event handlers (see http://tapestry.apache.org/tapestry5.1/guide/event.html), or, though I know you don't like this, for handling known exceptions in a more generic manner you could use Tynamo's tapestry-exceptionpage module (http

redirecting from an ajax event listener

2010-07-20 Thread Paul Stanton
We have an ajax intensive project for which we need to better handle problems such as session timeouts. Most of our ajax event handlers will return a MultizoneUpdate, and currently will run into a NullPointerException if the session has timed out. Instead what I'd like these listeners to do i

Re: directly return an image from Tapestry

2010-07-20 Thread Chuck Kring
That was simple and effective. Thanks! Chuck Thiago H. de Paula Figueiredo wrote: On Tue, 20 Jul 2010 19:15:33 -0300, Chuck Kring wrote: Hi everybody, Hi! I don't want to handle this as an event on the watched page because I'm not sure how Tapestry will handle the event if the server

Re: directly return an image from Tapestry

2010-07-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Jul 2010 19:15:33 -0300, Chuck Kring wrote: Hi everybody, Hi! I don't want to handle this as an event on the watched page because I'm not sure how Tapestry will handle the event if the server has restarted. It will, no doubt about that. So, it is possible for a Tapestry pa

directly return an image from Tapestry

2010-07-20 Thread Chuck Kring
Hi everybody, I need to create a watchdog on a page that reloads the entire page when I detect the server has restarted. So far, my approach is to retrieve and image from the Tapestry web app by setting an image src field, then reloading or not based upon onload vs.onerror event handlers.

RE: blackbird.js and IE breaking fixed CSS background image

2010-07-20 Thread Jim O'Callaghan
Hi Rich, Yep same guy, guilty as charged. This may not be the best solution, you may get some better advice from some of the more experienced Tapestry people on the forum, but it's the approach I used. The post I included earlier was indeed about just ensuring a specific order was enforced in th

Re: blackbird.js and IE breaking fixed CSS background image

2010-07-20 Thread Rich
Ah, thanks that seems like a start, but I'm having some issues with it. The call to the constructor in the decorator method throws a NullPointerException, it seems because there is an issue with the ClientInfrastructure passed into the decorator method. Also, the logic in your example seems t

Re: Validation in component using onValidate method

2010-07-20 Thread Michal Gruca
Issue created: https://issues.apache.org/jira/browse/TAP5-1212 -- View this message in context: http://tapestry-users.832.n2.nabble.com/Validation-in-component-using-onValidate-method-tp5315887p5317888.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

Re: Need advice on scrubbing .internal. stuff.

2010-07-20 Thread Howard Lewis Ship
The only difference being that when refactoring the internals, tapestry-hibernate will be refactored along with tapestry-core. Because ChenilleKit is external, it may suffer when tapestry-core internals are refactored. There's no easy solution for this, beyond a dialog of what internal services nee

Re: Need advice on scrubbing .internal. stuff.

2010-07-20 Thread Robert Zeigler
The fact that it is part of tapestry /does/ count and /does/ make a difference. It means that we, the committers, have to fix it to work with any non-backwards-compatible changes that are made to internal classes /before/ a release can happen. Since the use of internal services is hidden by the m

RE: blackbird.js and IE breaking fixed CSS background image

2010-07-20 Thread Jim O'Callaghan
See this post for a possible workaround: http://markmail.org/message/fsu22hjz4bxvpczb?q=list:org%2Eapache%2Etapestry% 2Eusers+MyClientInfrastructure I don't know why this hasn't been raised more often as an issue with blackbird and IE. I think blackbird has been removed from T5.2.0 in favour of

Re: Need advice on scrubbing .internal. stuff.

2010-07-20 Thread Pierce Wetter
On Jul 19, 2010, at 2:35 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 19 Jul 2010 18:18:14 -0300, Pierce Wetter wrote: > >> On Jul 15, 2010, at 11:33 PM, Andreas Andreou wrote: >> >>> Pierce raises a valid point though - tapestry-hibernate ideally shouldn't >>> need >>> to depend on int

blackbird.js and IE breaking fixed CSS background image

2010-07-20 Thread Rich
Hi, I'm aware blackbird.js is not directly Tapestry code, but I'm looking for advice on how to handle an issue with the blackbird.js file. I had been having problems with getting the fixed background image in my tapestry webapp to stay fixed in Internet Explorer. I'd given up searching for a

T5: AjaxCheckbox

2010-07-20 Thread Dmitriy Vsekhvalnov
Hello all, i have a question about ajax form submission in T5. I was needed checkbox implementation which 'onClick' submits entire form linked to zone (wrapped inside zone). I ended up with simple implementation, which i post at the end of message. Everything is fine, except i found that before

Re: Validation in component using onValidate method

2010-07-20 Thread Michal Gruca
Thiago H. de Paula Figueiredo wrote: > >> But one suggestion. Maybe tapestry should log on warn level if someone >> creates onValidate method with no parameters, else someone may be as >> confused as I was. I don't see any purpose of onValidate without >> parameters. > > That's a very good id

Re: [T5.1]Add a field specific error message using beforeLabel

2010-07-20 Thread Thomas Cucchietti
Thanks Geoff for the link, it's more or less what I wanted to do but I've found a way to do what I want by manipulating DOM. For information, in case it can help someone, here is the final HTML code I wanted : The field must be 16 digits long Test : I've created a custo

Re: Validation in component using onValidate method

2010-07-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Jul 2010 10:02:41 -0300, Michal Gruca wrote: I'm just blind or dumb. My code was almost same as example I provided, with onValidate metod without any value. That's why I didn't saw any value. That solves the problem, thanks. This happens. :) But one suggestion. Maybe tapestr

Re: Validation in component using onValidate method

2010-07-20 Thread Michal Gruca
Thiago H. de Paula Figueiredo wrote: > > Hi! > This way, the developer can prevent the setter method of being invoked > with an invalid value. > Ok, I get it now. First I wanted to ask how are You supposed to get that value, but example I wanted to use (from bottom of this page http://tapestr

Re: Validation in component using onValidate method

2010-07-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Jul 2010 06:23:26 -0300, Michal Gruca wrote: Hi all, Hi! I'm using tapestry for some time but for first time I cannot find correct solution by myself. My problem is with validation in onValidate method. I get that onValidate is called for every component inside form and onValid

Validation in component using onValidate method

2010-07-20 Thread Michal Gruca
Hi all, I'm using tapestry for some time but for first time I cannot find correct solution by myself. My problem is with validation in onValidate method. I get that onValidate is called for every component inside form and onValidateForm is called after all other onValidates but I don't get why fir

Re: Need advice on scrubbing .internal. stuff.

2010-07-20 Thread Piero Sartini
> Well that's definetely not a bug. Andreas talked right, he said > "ideally",  but tapestry-hibernate is a library around (very near) the > core framework so if it choose to depend on an "internal" > implementation it's a library's owner choice. What has not to be done > is to public (in any way)

Re: Need advice on scrubbing .internal. stuff.

2010-07-20 Thread Massimo Lusetti
On Mon, Jul 19, 2010 at 11:18 PM, Pierce Wetter wrote: > > On Jul 15, 2010, at 11:33 PM, Andreas Andreou wrote: > >> Pierce raises a valid point though - tapestry-hibernate ideally shouldn't >> need >> to depend on internal core / ioc classes > >  Exactly! Is that a bug in tapestry or tapestry-h