Incorrect handling of transient components when JSF1.2 is used
--------------------------------------------------------------
Key: TRINIDAD-95
URL: https://issues.apache.org/jira/browse/TRINIDAD-95
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 1.2.1-core
Environment: Facelets 1.1.11, jsf 1.2 RI or myfaces 1.2-SNAPSHOT
Reporter: Leszek Kowalski
When jsf1.2 is used with token state saving
(javax.faces.STATE_SAVING_METHOD=client,
org.apache.myfaces.trinidad.CLIENT_STATE_METHOD=token) transient components are
not removed from the tree after rendering.
This causes problem with facelets - multiple rendering of transient content.
Clicking redisplay button in following
example will cause facelets to display "test" two times. It happens because
facelets expect that jsf 1.2 implementation will remove
transient components from the tree.
from FaceletViewHandler.java:
// remove transients for older versions
if (FacesAPI.getVersion() < 12) {
ComponentSupport.removeTransient(viewToRender);
}
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<trh:body>
test
<h:form>
<h:commandButton value="redisplay" />
</h:form>
</trh:body>
</html>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.