Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
lso suspect that if there is a bug, it's probably in the regular > expression passed to Regexp validator on numeric field test, not the > validator itself. > > Again, I'm still learning myself, so somebody that actually knows for > sure would have to confirm, but that'

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
xed. > > Adam > > On Thu, Mar 31, 2011 at 10:51 AM, Chris Norris > wrote: >> 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

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
; >               } >               CartItemBean cib = > findCartItem(cartDisplayItem.getLineNumber()); > >    // look up error in CartItemBean and if found return it, or return null; > >   return error; > } > > Let me know, perhaps I am doing something wrong.. > &

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: 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: 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: Runtime configurable Validators in T5... this was easy in T4

2011-03-29 Thread Chris Norris
at 12:56 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 25 Mar 2011 13:23:25 -0300, Chris Norris > wrote: > >> I have a loop which generates form components. Each one needs some >> very custom validation. I know I can create a validator that will take >> in a constr

Runtime configurable Validators in T5... this was easy in T4

2011-03-25 Thread Chris Norris
In T4 we could new up a Validator, provide it with whatever information we wanted, and pass that directly to a form component for validation. I miss this. I have a loop which generates form components. Each one needs some very custom validation. I know I can create a validator that will take in a

T4: Using @EventListener to capture a javascript method call

2008-02-19 Thread Chris Norris
I'm trying to implement something similar to the "Accessing intercepted functions' parameters on the server-side" section of this page: http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html I can't get it to work. The first question is this: what is the elements for? In the other exampl

Asset Service/JS file throws exception in Perl5Matcher

2007-03-06 Thread Chris Norris
We've found an obscure and hard to repeat bug in our app that is caused when a page tries to load a javascript file. The code that causes it is located just inside the body tag: The error the browser reports is a syntax error. On a GET with the URL https://www.domain.com/assets/stati

RE: script initializtion calls and event binding

2007-01-16 Thread Chris Norris
If you want to bind to something like the window being loaded reference window.onLoad.bindAs.... If it's the document you want to do it on do document.onLoad.bindAs ...Etc.. etc.. On 1/16/07, Chris Norris <[EMAIL PROTECTED]> wrote: > Please bear with me though this explanation. We ha

script initializtion calls and event binding

2007-01-16 Thread Chris Norris
Please bear with me though this explanation. We have some code that is broken, I believe, by the inclusion of all script initialization code in a dojo.addOnLoad call. The code this is being broken is a call to Scriptaculous' Event.observe: Event.observe(this.picture, "load", this.onLoad.bindAsEve

RE: Upload component browse button

2006-09-11 Thread Chris Norris
We've used an applet in the past. This one works well: http://www.javazoom.net/applets/jclientupload/jclientupload.html -Original Message- From: Peter Dawn [mailto:[EMAIL PROTECTED] Sent: Sunday, September 10, 2006 8:44 PM To: Tapestry users Subject: Re: Upload component browse button