struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Davis (JIRA)" <>
Subject [jira] [Created] (WW-4718) focusElement form attribute not working
Date Tue, 22 Nov 2016 23:14:00 GMT
Chad Davis created WW-4718:

             Summary: focusElement form attribute not working
                 Key: WW-4718
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.5.5, 2.3.24
         Environment: internet explorer
            Reporter: Chad Davis

I cannot get the focusElement attribute on the form tag to work. I've tried it in both IE
and chrome and in neither case will the text field I want to focus when the page loads do

Here is the html for the form I'm trying to do this with:

<s:form action="ViewSubscriber" method="GET" cssClass="form-group"
    <div class="input-group">
        <s:textfield name="subscriberName" 
                     cssClass="subscriberListAutocomplete form-control"
                     placeholder="Subscriber Name"
        <span class="input-group-btn">
            <s:submit value="View Subscriber" 
                      cssClass="btn btn-success"

If I change the textfield to a basic input element and use html's autofocus attribute, it
works fine. I have no idea what else I can try on this.

This message was sent by Atlassian JIRA

View raw message