When I first start tomcat and load the jsp page, the reset works fine. Going back and forth between pages resets the fields. When the I reload the page within the same server connection, the text field remains populated and is not reset. This is true even when I click the reset button. The reset button redundancy is just for practice.
Thats what I thought.
Anyway, I gave all your recommendations a try, the problem persists. One other thing I have noticed is that the second time I load the page within the same server connection, the reset button doesn't work either. It looks like the value from the previous page load is considered the default.
Is there any server cache setting I can change to fix it?
It think the problem is in understanding what Reset does.
Reset reverts all form values to whatever they were when the page was loaded. In JSF, however, if you move off the page using a commandbutton or commandlink, the normal mode of operation is to update the backing bean from the form. Then if you go back to that form, the page is reloaded with those updated values. Reset cannot revert to the older original values since they're not what was in the form when it was loaded.
And, yes this does mean that you could totally confuse the user by placing two different reset buttons on the page; one that talks to the server and resets from the backend and the other being a traditional HTML form reset that only resets the current inputs.
Science is the process of replacing what we "know" with what is TRUE. Politics, alas, often prefers to be the opposite.
Create symphonies in seed and soil. For this tiny ad: