[
https://issues.jboss.org/browse/RF-12564?page=com.atlassian.jira.plugin.s...
]
Brian Leathem resolved RF-12564.
--------------------------------
Resolution: Rejected
Unfortunately ajax updates are not compatible with the c:if tag, as the c:if tag will
prevent the component from populating the initial component tree, and so the subsequent
ajax update will fail. Doing a full page load works, as the component tree is re-built on
the full-page load.
Rather, use the _rendered_ attribute of the tree, with your ajax update targeting a JSF
panel wrapping the tree to conditionally render your tree in an ajax update.
rich:tree throws js error in combination with c:if in IE9
---------------------------------------------------------
Key: RF-12564
URL:
https://issues.jboss.org/browse/RF-12564
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.2.2.Final
Environment: myFaces 2.1.9
Reporter: Michael Heinen
Labels: tree
Attachments: zTreeJsError.war
I use a rich:tree inside a c:if tag.
A js error occurs if the tree is rendered via ajax the first time.
It works fine if the complete view is reloaded afterwards or if there is no c:if tag
around.
I tested with with Internet Explorer Version 9.0.8112.16241, Update versions 9.0.10
Workarounds:
- add a dummy rich:tree tag to the page. e.g:
<rich:tree id="dummyTree" rendered="false"
toggleType="client"/>
- remove c:if (which is no alternative in my case)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira