What I mean is commonly used when users must enter data quickly, eg no mouse clicks. Not sure if the use case is large enough, though..

So the following thing can happend:

When you fill a textfield to a certain length(or press enter) or choose a radio button it automaticly passes on to the next tab order.. :

User comes to the form page(or wizard with multible steps)
Fills in data by using only keyboard and numeric pad(for selecting radios etc)...

Does that clarify anything?

And yes tab order should be followed..

regards Nino

Sebastiaan van Erk wrote:
I think he means that, suppose you have a username and password field; then if the username is already filled in (e.g. from a cookie), then focus should go to the next field (password field).

It probably should be the same as the tab order (first empty field in tab order gets focus) from a ui perspective...

Regards,
Sebastiaan

James Carman wrote:
I don't think I understand what you mean here.  Do you mean something
like setting the "tab order" like in Swing?

On 3/9/08, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote:
What about a chaining component?

 EG you enter something in form.field a, and when thats filled then it
 jumps to form field b..? Etc...



 regards Nino

 James Carman wrote:

On 3/9/08, Warren <[EMAIL PROTECTED]> wrote:
 >
 >> WebMarkupContainer bodyTag = new WebMarkupContainer("bodyTag");
 >>  bodyTag.add(new SimpleAttributeModifier("onload",
 >>  "form.username.focus();"));
 >>
 >
 > Ok, but wouldn't it be cooler/easier/more java-oriented to do:
 >
 > TextField userName = new TextField("userName");
 > userName.addBehavior(new DefaultFocusBehavior());
 >
 > or
 >
 > Behaviors.defaultFocus(userName); // Assuming Behaviors existed.
 >
 >
 >>  > -----Original Message-----
 >>  > From: [EMAIL PROTECTED]
 >>  > [mailto:[EMAIL PROTECTED] Behalf Of James Carman
 >>  > Sent: Sunday, March 09, 2008 7:58 AM
 >>  > To: users@wicket.apache.org
 >>  > Subject: Default Focus Behavior?
 >>  >
 >>  >
>> > Is there a behavior (or some other way) for having a field receive the >> > focus when the page loads? For instance, in a login form, you'd want >> > the focus to go to the username field or perhaps the password field if
 >>  > you've got "remember me" turned on.
 >>  >
 >>
 >>
>>> ---------------------------------------------------------------------
 >>>
 >>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
 >>  > For additional commands, e-mail: [EMAIL PROTECTED]
 >>  >
 >>
 >>
>> ---------------------------------------------------------------------
 >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
 >>  For additional commands, e-mail: [EMAIL PROTECTED]
 >>
 >>
 >>
 >
> ---------------------------------------------------------------------
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, e-mail: [EMAIL PROTECTED]
 >
 >
 >

 --

-Wicket for love
 -Jme for fun

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 ---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
-Wicket for love
-Jme for fun

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to