my dog learned polymorphism*
The moose likes Struts and the fly likes Auto tabbing among text fields created with logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Auto tabbing among text fields created with logic:iterate" Watch "Auto tabbing among text fields created with logic:iterate" New topic
Author

Auto tabbing among text fields created with logic:iterate

parasuram pareshaan
Greenhorn

Joined: Sep 13, 2005
Posts: 2
Can anyone help me perform auto tab among two text boxes that are created using <logic:iterate> of struts framework??

I am creating two text boxes using <logic:iterate>

code is here:

<logic:iterate id="textfield" name="form" property="newtextfield">

<html:text name="textfield" property="words" size="160" maxlength="160" indexed="true"/>

</logic:iterate>


Thanks in advance,
Parasuram
parasuram pareshaan
Greenhorn

Joined: Sep 13, 2005
Posts: 2
I can write a javascript function to check for length of the string in the text box and when the limit is reached, I can focus to the next text box.

But, as the text boxes are created dynamically using logic:iterate, how can i access the second text box, as I dont have any identifier for that text box.
 
GeeCON Prague 2014
 
subject: Auto tabbing among text fields created with logic:iterate