formatted text fields

2010-06-03 Thread Lieven Doclo

Hi,

I'm currently looking into a problem concerning formatted text fields. 
Users need to enter a code in the format x-x-x-x. I have 
provided 4 textfields and I'd like the user to jump from one textfield 
to the other when he or she has entered 5 characters. How do I do this 
in Wicket?


Regards,

Lieven
--
Lieven Doclo
Jintec
Bredestraat 98
3293 Diest
lieven.do...@jintec.be
0476 83 51 52

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



SV: formatted text fields

2010-06-03 Thread Wilhelmsen Tor Iver

Med vennlig hilsen

TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: toriv...@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no

 -Opprinnelig melding-
 Fra: Lieven Doclo [mailto:lieven.do...@jintec.be]
 Sendt: 3. juni 2010 11:27
 Til: users
 Emne: formatted text fields
 
 Hi,
 
 I'm currently looking into a problem concerning formatted text fields.
 Users need to enter a code in the format x-x-x-x. I
 have
 provided 4 textfields and I'd like the user to jump from one textfield
 to the other when he or she has entered 5 characters. How do I do this
 in Wicket?

Normally you do such things in Javascript, independent of Wicket. I.e. you have 
a key listener In each field that checks the length and then focuses on the 
next if it is five. What Wicket gives you is the bundled Yahoo Javascript 
libraries you can use to make the code less barebones.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org