Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-10 Thread Kody
Could number format validate any positive integer, without zero, and not empty? 2013/2/10 Andrea Boscolo andrew...@gmail.com Sorry, misread. Then either use a column-based field updater that validates your input, or roll your own, say, EditNumberCell that accepts only number elements, just

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-10 Thread Kody
Oh I doubt using Number/NumberCell will help me here. I'm not only looking for a way to validate the input like written above. Especially I want to restrict keystrokes to only pass number events into the cell. -- You received this message because you are subscribed to the Google Groups Google

How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread membersound
Hi, I have a CellTable with EditTextBox. How can I attach a custom event handler to the InputElement that is created if I click an entry? (My goal is to allow only numbers for a certain TextBox, which is easy using KeyPressEvent. But how can I attach this to that box?) Thanks -- You

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread Andrea Boscolo
Why not using http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html ? On Saturday, February 9, 2013 3:43:43 PM UTC+1, membersound wrote: Hi, I have a CellTable with EditTextBox. How can I attach a custom event handler to the InputElement

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread membersound
Because NumberCell is not an editable Cell? Am Samstag, 9. Februar 2013 15:54:36 UTC+1 schrieb Andrea Boscolo: Why not using http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html? On Saturday, February 9, 2013 3:43:43 PM UTC+1, membersound

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread Andrea Boscolo
Sorry, misread. Then either use a column-based field updater that validates your input, or roll your own, say, EditNumberCell that accepts only number elements, just like NumberCell does (I guess it's easy by extending EditTextBox). In both cases you can use NumberFormat to validate