Friday, 15 July 2011

java - IE9 sending HTML in button value from JSF to the server -



java - IE9 sending HTML in button value from JSF to the server -

my environment:

primefaces 4.0 or primefaces 5.0 jdk 1.7 jboss7.1.1 jsf 2.2 internet explorer 9 j2ee1.6

when form submitted ie9, ie sends html text of tag part of button value jsf page jsf servlet. causing servlet container behave strangely, , not phone call methods on managed beans process further. works fine in firefox or chrome browsers. here's button value looks server log:

contentform:savebuttonid=<span class="ui-button-icon-left ui-icon ui-c ui-icon-disk"></span><span class="ui-button-text ui-c">save</span>

on form button value "save". buttons coming in above html text in value.

what have tried far?

if remove button value button using javascript onsubmit, works. i tried add together servlet filter add together servlet request class wrapper alter button value if had in it, not work. assumption jsf framework uses default servletrequest class opposed wrapper class cleaned parameters values not used. i hoping subclass facesservlet cannot final class.

please allow me know options affecting our application in production environment , running out of time , options.

in order reproduce it, first ie security settings must set properly. our settings are: ie9->tools-->internet options-->securty-->local intranet selected click on sites button , automatically observe intranet selected. click on advanced button , add together selected web app url websites list. eg mine added http :// ipaddress_or_domainname_of_webapp

if url not added above list of intranet sites, ie behaves properly. our production url intranet site , has been added list additional security features. cannot alter company wide policy, hoping there can jsf or javascript or servlet end prepare this.

appreciate help in regards.

if remember correctly, ie9 , above defaults simulating ie8 behavior on intranet sites. if go settings -> compatibility view settings , uncheck "display intranet sites in compatibility view" should stop happening.

java javascript jsf jsf-2 primefaces

No comments:

Post a Comment