|
I have been using the auto-scroll feature of myfaces with
Firefox successfully, but when using Internet Explorer to access my application
the auto-scroll did not work. I noticed that the myfaces examples distribution did work however,
so I investigated the differences in my pages and the example pages. I found
that the html doctype declaration prevented auto-scroll from working with IE. This page fragment does NOT allow auto-scroll to work: <?xml version="1.0"
encoding="UTF-8"?> <jsp:root version="1.2"
xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:x="http://myfaces.apache.org/extensions"> <jsp:directive.page
contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
/> <jsp:text> <![CDATA[<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]> </jsp:text> <html> <f:view> If the jsp:text tag is removed, all is well: <?xml version="1.0"
encoding="UTF-8"?> <jsp:root version="1.2"
xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:x="http://myfaces.apache.org/extensions"> <jsp:directive.page
contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
/> <html> <f:view> Is this a bug or should the DOCTYPE text be removed from JSF
pages? Thanks in advance. Luke ------------------------------ Luke Bishop home: 505.237.9074 fax: 505.237.9075 email:[EMAIL PROTECTED] |

