Re: Numbers Only in WOTextField

2009-11-11 Thread David Avendasora
On Nov 10, 2009, at 6:47 PM, Ramsey Lee Gurley wrote: 100 : (task = 'edit' and (smartAttribute.className = 'java.lang.Number' or smartAttribute.className = 'java.math.BigDecimal')) => componentName = DavesJSEditNumberThingy [Assignment] 200 GOTO 100 :-P Dave David Avendasora Senior So

Re: Numbers Only in WOTextField

2009-11-10 Thread Ramsey Lee Gurley
On Nov 10, 2009, at 3:21 PM, David Avendasora wrote: > > On Nov 10, 2009, at 3:07 PM, Chuck Hill wrote: > >> On Nov 10, 2009, at 11:52 AM, David Avendasora wrote: >> >>> Never mind! Great minds think alike, right Lon? >>> >>> http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.ht

Re: Numbers Only in WOTextField

2009-11-10 Thread David Griffith
Hi Kieran, Where can I find that - I'd love to watch it Regards, David. On Nov 10, 2009, at 10:19 PM, Kieran Kelleher wrote: David, Easy way ... just make a custom stateless reusable component "SmartNumberTextField.wo" or whatever you want to call it. Make it binding compatible with W

Re: Numbers Only in WOTextField

2009-11-10 Thread Kieran Kelleher
David, Easy way ... just make a custom stateless reusable component "SmartNumberTextField.wo" or whatever you want to call it. Make it binding compatible with WOtextfield so you can just change the component name in wod. I do this for date fields. I have one component WKDateField that has

Re: Numbers Only in WOTextField

2009-11-10 Thread Johnny Miller
I have a reusable solution that solves this problem but it's experimental so use at your own risk. If you go to http://www.kahalawai.com/MoAjax On the left hand side there is a navigation, choose the link at the bottom "JS Form Validation". best, Johnny On Nov 10, 2009, at 10:21 AM, Da

Re: Numbers Only in WOTextField

2009-11-10 Thread David Avendasora
On Nov 10, 2009, at 3:07 PM, Chuck Hill wrote: On Nov 10, 2009, at 11:52 AM, David Avendasora wrote: Never mind! Great minds think alike, right Lon? http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html And not so great minds don't read the docs? :-P What?! There's docs

Re: Numbers Only in WOTextField

2009-11-10 Thread Chuck Hill
On Nov 10, 2009, at 11:52 AM, David Avendasora wrote: Never mind! Great minds think alike, right Lon? http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html And not so great minds don't read the docs? :-P WOTextField extends WODynamicElement, not WOComponent. WODynamicElem

Re: Numbers Only in WOTextField

2009-11-10 Thread Ricardo J. Parada
Just curious... How is ERXComponentUtilities.inheritTemplateFrom used to solve your problem? :-) On Nov 10, 2009, at 2:52 PM, David Avendasora wrote: > Never mind! Great minds think alike, right Lon? > > http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html > > Dave > > On

Re: Numbers Only in WOTextField

2009-11-10 Thread David Avendasora
Never mind! Great minds think alike, right Lon? http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html Dave On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps whe