I'm looking for away to control focus order generically.

I'm currently creating the following for ever DynaValidatorForm ( alittle different 
depends on the elements on the form) but, basically the same type of check for each 
element

=================================================

// Check if a field has content in it
private boolean hasContent(String id) {
    return StringUtilities.hasContent((String) get(id));
}

// Retrun the first field with data in it
public String getFirstSearchedField() {
    if (hasContent(LAST_NAME)) {
        return LAST_NAME;
    }

    if (hasContent(FIRST_NAME)) {
        return FIRST_NAME;
    }

    .
    .  // more of the same
    .

    // Default is last name
    return LAST_NAME;
}


Is there away to use the tabindex from the jsp to control the order of the focus logic.

Are am I going at this all wrong, 

Is there another way? If so, how would one accomplish this?

-Ben

Reply via email to