wood burning stoves 2.0*
The moose likes JSF and the fly likes Ajax not working with IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Ajax not working with IE" Watch "Ajax not working with IE" New topic
Author

Ajax not working with IE

Christopher Sharp
Ranch Hand

Joined: Dec 12, 2007
Posts: 154
Hello Ranchers,

I have an issue with Ajax when using Internet Explorer. The application works correctly with Firefix and Google Chrome, but not IE 9. Here is part of the xhtml file:

The corresponding part of my bean with the relevant getters, setters and actions are in the listing here:

where the methods "A" to "G" correspond to the labels in the xhtml code in the first listing.

The idea is that you upload files, which works correctly, as far as I can see, and that part of the code is not shown here. The problem is with "B", where I fire an action to change the display. On page load nothing is displayed in the data table, with the value of numUserDefined being initialized to zero, and when I enter a number between 1 and the maximum allowed number, which is 20 in this case, that number of entries are displayed in the data table when using Firefox or Google Chrome, which is what I want. However, IE does nothing.

However, I discovered with IE that if I enter a number larger than zero and click the "Update Number of Filters" button for action "B", then reload the page, this reverts to zero, but if I then re-enter the number, the display is updated corectly. What is going on here? It looks as if there is a problem with IE handling Ajax.

If anybody has any suggestions, I would be most interested to know.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax not working with IE