Re: textfield to take only numnbers

2009-01-29 Thread Philipp Daumke
Hi Miro, can't you use a PatternValidator such as: add(new TextField(textfieldname).add(new PatternValidator(^\\d+$))); Cheers Philipp I s there any textfield which takes only numbers, I dont want user to enter letters only numbers so I want a textfield which takes only numbers is there

RE: textfield to take only numnbers

2009-01-29 Thread Heikki Uotinen
Pass the field type in the TextField's constructor http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TextFieldPage -Heikki -Original Message- From: miro [mailto:miroconn...@yahoo.com] Sent: 29. tammikuuta 2009 17:52 To:

Re: textfield to take only numnbers

2009-01-29 Thread Jeremy Thomerson
new TextFieldInteger(id); new TextField(id, Integer.class); new TextFieldInteger(id, Integer.class); On Thu, Jan 29, 2009 at 9:52 AM, miro miroconn...@yahoo.com wrote: I s there any textfield which takes only numbers, I dont want user to enter letters only numbers so I want a textfield