I see 2 ways to do this : - onKeyUp you check that the entry is an integer (or a float) - you can check that the key entered is a number (warning key code are differents from pad on the right and numbers above letters).
Boris 2011/5/20 Issam <[email protected]> > Thanks for your answers , > > My question is about the type of entries (I would like that TextBox > accepts just interger (int) ) > > On 20 mai, 14:14, Boris Lenzinger <[email protected]> wrote: > > Hi, > > > > Is your question about the number of characters or do you want to have a > > limited set of characters ? > > > > Boris > > > > 2011/5/20 Issam <[email protected]> > > > > > > > > > > > > > > > > > Hi all, > > > > > Anyone has an idea about limiting the keyboard entries on a textBox > > > (creating a filter for example) or if it exists on GWT ? > > > > > Thanks in advance > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
