开发者

Using JSF/Mojarra on IE7/IE8: Request is not applied

开发者 https://www.devze.com 2023-04-06 09:33 出处:网络
I have a quite complicated table website in which I want to browse with pages (e.g. 5 rows at a time). This browsing works great in Firefox, but does not in Internet Explorer (7 + 8).

I have a quite complicated table website in which I want to browse with pages (e.g. 5 rows at a time). This browsing works great in Firefox, but does not in Internet Explorer (7 + 8).

I investigated the HTTP traffic and found out, that the response generated by the server is correct, but in IE the content is just not updated (also no error messages, e.g. in the console). I spent the whole day creating a sandbox example, but unfortunately all smaller examples work perfectly. I am now considering two things:

  • My response is too big for IE7/IE8 JS engine to handle.
  • The response contains some sequences not digestable by IE7/IE8 JS engine or Mojarra.

Are you aware of any such bugs in Mojarra / IE JS? I am using Mojarra 2.1.3.

The browsing is triggered by an ajax command link:

<h:commandLink value="&gt;" actionListener="#{cc.attrs.tblModel.nextPage}">
  <f:ajax execute=":#{cc.attrs.tblId}" render=":#{cc.attrs.tblId}" />
</h:commandLink>

As I think the problem could be the exact response, here is an original response (stripped down the minimum that still doesn't work):

<partial-response>
<changes>
    <update id="tableForm:resultsPanel:tableComponent"><![CDATA[<div id="tableForm:resultsPanel:tableComponent">
    <span class="table-total">Total Elemente 
        <strong>58</strong>
    </span> 
    <span class="table-pro-seite">Anzahl Elemente pro Seite Anzeigen: 
          
        <span class="selected">5</span> 
         |  
        <a id="tableForm:resultsPanel:j_idt555:j_idt244" href="#" onclick="mojarra.ab(this,event,'action','tableForm:resultsPanel:tableComponent','tableForm:resultsPanel:tableComponent');return false">10</a> 
         |  
        <a id="tableForm:resultsPanel:j_idt555:j_idt250" href="#" onclick="mojarra.ab(this,event,'action','tableForm:resultsPanel:tableComponent','tableForm:resultsPanel:tableComponent');return false">20</a> 

    </span>
    <div class="table-content">


    </div><div id="tableForm:resultsPanel:tableFooter:table-footer" class="table-footer">
<div id="tableFooter">
    <div class="table-paging"><a id="tableForm:resultsPanel:tableFooter:firstLink" href="#" onclick="mojarra.ab(this,event,'action','tableForm:resultsPanel:tableComponent','tableForm:resultsPanel:tableComponent');return false" class="table-paging-firstLink">&lt;&lt;</a><a id="tableForm:resultsPanel:tableFooter:previ开发者_运维百科ousLink" href="#" onclick="mojarra.ab(this,event,'action','tableForm:resultsPanel:tableComponent','tableForm:resultsPanel:tableComponent');return false" class="table-paging-previousLink">&lt;</a>

            <span class="table-paging-currentpage">Seite<input id="tableForm:resultsPanel:tableFooter:currentPage" type="text" name="tableForm:resultsPanel:tableFooter:currentPage" value="2" class="table-input" onkeypress="return displayedPageKeypressEvent(event);" />von 12<input id="tableForm:resultsPanel:tableFooter:sendDisplayedPage" type="submit" name="tableForm:resultsPanel:tableFooter:sendDisplayedPage" value="send" style="visibility: hidden; float: right;" onclick="mojarra.ab(this,event,'action','@form','tableForm:resultsPanel:tableComponent');return false" />
            </span><span id="tableForm:resultsPanel:tableFooter:pageSelector"><a id="tableForm:resultsPanel:tableFooter:nextLink" href="#" onclick="mojarra.ab(this,event,'action','tableForm:resultsPanel:tableComponent','tableForm:resultsPanel:tableComponent');return false" class="table-paging-nextLink">&gt;</a><a id="tableForm:resultsPanel:tableFooter:lastLink" href="#" onclick="mojarra.ab(this,event,'action','tableForm:resultsPanel:tableComponent','tableForm:resultsPanel:tableComponent');return false" class="table-paging-lastLink">&gt;&gt;</a></span></div><span id="tableForm:resultsPanel:tableFooter:table-footer-multiselect"></span>
    </div></div></div>]]></update>
    <extension primefacesCallbackParam="validationFailed">{"validationFailed":false}</extension>
</changes>
</partial-response>

Thank you very much for any help!

PS: I am also using Primefaces, but I guess this has nothing to do with the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号