-
1. Re: Richfaces 4: rich:tree render attribute not working properly in IE 9
iabughosh Jul 27, 2011 5:39 AM (in response to rizwanmit47)please post your xhtml page.
regards.
-
2. Re: Richfaces 4: rich:tree render attribute not working properly in IE 9
rizwanmit47 Jul 27, 2011 6:00 AM (in response to iabughosh)<?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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:comp="http://java.sun.com/jsf/composite/components">
<body>
<f:view>
<ui:composition>
<rich:tree id="tree" var="node" nodeType="#{node.nodeType}"
stateVar="true" keepSaved="true" value="#{treeBean.root}"
toggleType="client" selectionType="ajax"
render="mainOuterPanel,scriptPanel"
selection="#{treeBean.currentSelectedNodes}"
selectionChangeListener="#{treeBean.selectionChanged}"
toggleNodeEvent="click" oncomplete="confirmNavigationAction()">
<rich:treeNode expanded="#{node.expanded}" type="#{node.nodeType}"
rendered="#{node.nodeType != 'Question'}"
toggleNodeEvent="true"
iconLeaf="#{node.nodeIcon}"
iconExpanded="#{node.nodeIcon}"
iconCollapsed="#{node.nodeIcon}">
<a4j:outputPanel layout="block">
<rich:dropTarget acceptedTypes="#{node.accseptedTypes}"
dropValue="#{node}"
dropListener="#{treeBean.dropListener}"
render="treePnl , tree" />
<rich:dragIndicator id="ind" acceptClass="accept"
rejectClass="reject" draggingClass="default">
<h:outputText value="#{node}" />
</rich:dragIndicator>
<rich:dragSource type="#{node.nodeType}" dragValue="#{node}"
dragIndicator="ind" />
<h:outputText value="#{node}" />
</a4j:outputPanel>
</rich:treeNode>
</rich:tree>
<h:panelGroup id="scriptPanel">
<script>
function confirmNavigationAction() {
var isNavigationAllowed = #{treeBean.callingBean == null ? true : treeBean.callingBean.isTreeNavigationAllowed};
if(! isNavigationAllowed){
// #{rich:component('popupNavigation')}.show();
var confirmed = confirm("Are you sure you want to navigate away from the current page?");
if(confirmed){
var url = "designerHomePage.jsf?faces-redirect=true";
window.location = url;
}
}
}
</script>
</h:panelGroup>
</ui:composition>
</f:view>
</body>
</html>
Here i want to render "mainOuterPanel" which is in parent page designerHomePage.xhtml. it works fine in firefox and crom but IE 9 it is not reRendring "mainOuterPanel" until i Refresh the page.
this tree.xhtml is included in diffrent pages some of which want to ristrict tree navigation for this i am using javaScript confirm which is also not called in IE 9. kindly guide me if some posible sulution available.
Regards : Rizwan Munir.
-
3. Re: Richfaces 4: rich:tree render attribute not working properly in IE 9
iabughosh Jul 27, 2011 6:46 AM (in response to rizwanmit47)assure the designerHomePage.xhtml header is like this :
<!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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
and use h:head and h:body in your pages.
-
4. Re: Richfaces 4: rich:tree render attribute not working properly in IE 9
rizwanmit47 Jul 27, 2011 9:09 AM (in response to iabughosh)this is already same as you asked. bt not working on IE 9
-
5. Re: Richfaces 4: rich:tree render attribute not working properly in IE 9
nbelaevski Jul 27, 2011 1:44 PM (in response to rizwanmit47)Hi Rizwan,
There is an issue with AJAX updates in Mojarra & IE 9. If you use it, please try the later version.