BIANEMohamed / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

targets attribute not working on submit tag in IE8 #1079

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

Relevant portion of JSPs:
"search.jsp"
<!Doctype html, taglibs, etc here !-->
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
    <html>
    <head>
    <s:head theme="css_xhtml" />
    <sj:head jqueryui="true" />

    </head>    
    <body>

        <div>
           <s:form id="sForm" theme="xhtml" namespace="/" action="doRequestSearch" cssClass="editApp">
            <s:textfield id="reqNum" name="requestNumber"/>     
            <sj:submit value="Search" id="s_submit" formIds="sForm" targets="resultContainer" button="true" />          
           </s:form>
        </div>
        <sj:div id="resultContainer"></sj:div>        
    </body>
    </html>
------------------------------------------------------------------------------
"result.jsp"
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:if test="%{resultList.size() > 0}">
    <div style="text-align:right; margin-right:10px;">
        <form id="result_form"><input type="button" value="Print" onClick="window.print()"></form>
    </div>
    <br/>
    <table>
        Display Search result in table.
    </table>

</s:if>
<s:else>
    <div style="font-weight:bold; padding-left:50px;">There is no result found.</div
</s:else>

What steps will reproduce the problem?
1. Open "Search.jsp" page
2. Fill out the form and click on submit button

What is the expected output? What do you see instead?
Expected Output: after input a request number, on submitting the form in 
Search.jsp, the result should be put into "resultContainer".
What is seen: No search result being put into "resultContainer", and no value 
was received for requestNumber property on Action class.

Which struts2 version?
2.3.16

Which struts2-jquery plugin version?
3.7.0

Please provide any additional information below.
The targets attribute seems to not on submits in IE8, however, same code works 
well in FireFox v26.
Maybe something I'm doing wrong which might be breaking the javascript in the 
form in IE8, 
so I've attached the referenced jsps (Search.jsp, result.jsp):

Original issue reported on code.google.com by bilinlin...@gmail.com on 7 Feb 2014 at 8:23

GoogleCodeExporter commented 9 years ago
Needs urgent work around.

Original comment by gripic...@gmail.com on 24 Mar 2014 at 2:46

GoogleCodeExporter commented 9 years ago
Go to http://struts.jgeppert.com/struts2-jquery-showcase/index.action

Select browser as IE8.

Go to AJAX based Double Select Box

Select language java and see the error.

We do not see frameworks getting loaded.

This is breaking at many places in our application. 

Please provide a patch to fix this.

Original comment by gripic...@gmail.com on 24 Mar 2014 at 2:55

GoogleCodeExporter commented 9 years ago
Yes I checked with struts2 showcase in IE8.

This is a definite repro and needs fix.

I see that post data is not getting send and so it is failing.

Data must be posted properly.

Original comment by ghotanka...@gmail.com on 24 Mar 2014 at 2:57

GoogleCodeExporter commented 9 years ago
This is not problem in showcase example but some problem with struts2 or 
struts2-jquery plugin itself.

Original comment by gripic...@gmail.com on 24 Mar 2014 at 3:01

GoogleCodeExporter commented 9 years ago
Can you please try out latest 3.7.1-SNAPSHOT release? This should fix the 
problem in showcase with doubleselect and IE8.

Original comment by johgep on 22 Apr 2014 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 13 May 2014 at 7:03