This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
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.