Re: [GSOC] HTML5 Prototype hx:inputNumber

2010-05-28 Thread Ali Ok
would be cool if there would be some client-side validation hook, instead of just server-side ? HTML5 input element's min and max attributes are there for it. Form won't be submitted and a warning will be displayed if value is not between min-max. This validation is provided by the browser

Re: [GSOC] HTML5 Prototype hx:inputNumber

2010-05-28 Thread Matthias Wessendorf
On Fri, May 28, 2010 at 9:49 AM, Ali Ok al...@aliok.com.tr wrote: would be cool if there would be some client-side validation hook, instead of just server-side ? HTML5 input element's min and max attributes are there for it. Form won't be submitted and a warning will be displayed if value

Re: [GSOC] HTML5 Prototype hx:inputNumber

2010-05-28 Thread Ali Ok
Hi, Got it, thanks for the reply. Interesting: since (I think) min/max is poor, I am wondering why they weren't naming it minimum/maximum :-) Wait until you see HTML5 DnD, which is disaster :) Greetings, Ali On Fri, May 28, 2010 at 11:01 AM, Matthias Wessendorf mat...@apache.orgwrote: On

[GSOC] HTML5 Prototype hx:inputNumber

2010-05-27 Thread Ali Ok
Hi, This is hx:inputNumber, which can render a spinner or a slider. It may seem so straight forward, but here is the prototype. === ==hx:inputNumber== === REFS: [0]

Re: [GSOC] HTML5 Prototype hx:inputNumber

2010-05-27 Thread Matthias Wessendorf
Hi, why not breaking this into two components ? hx:inputNumberSpinner and hx:inputNumberSlider the min/max should be driven by a range validator component -Matthias On Thu, May 27, 2010 at 1:11 PM, Ali Ok al...@aliok.com.tr wrote: Hi, This is hx:inputNumber, which can render a spinner or a

Re: [GSOC] HTML5 Prototype hx:inputNumber

2010-05-27 Thread Bruno Aranda
+1 I agree with Matthias. Thanks! Bruno On 27 May 2010 12:44, Matthias Wessendorf mat...@apache.org wrote: Hi, why not breaking this into two components ? hx:inputNumberSpinner and hx:inputNumberSlider the min/max should be driven by a range validator component -Matthias On Thu, May

Re: [GSOC] HTML5 Prototype hx:inputNumber

2010-05-27 Thread Ali Ok
Hi, why not breaking this into two components ? hx:inputNumberSpinner and hx:inputNumberSlider Ok. My initial prototypes were separate already on my workspace. the min/max should be driven by a range validator component Then I am removing min and max properties from the component(s). Or,

Re: [GSOC] HTML5 Prototype hx:inputNumber

2010-05-27 Thread Matthias Wessendorf
On Thu, May 27, 2010 at 2:07 PM, Ali Ok al...@aliok.com.tr wrote: Hi, why not breaking this into two components ? hx:inputNumberSpinner and hx:inputNumberSlider Ok. My initial prototypes were separate already on my workspace. the min/max should be driven by a range validator component