[richfaces-issues] [JBoss JIRA] Commented: (RF-5455) adviseNodeSelected of rich:tree is not working
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Tue Dec 23 15:20:54 EST 2008
[ https://jira.jboss.org/jira/browse/RF-5455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12444050#action_12444050 ]
Nick Belaevski commented on RF-5455:
------------------------------------
Minimal test case. 7th node should be selected on initial rendering if the issue doesn't reproduce.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/tree" prefix="rich"%>
<html>
<head>
<title></title>
</head>
<body>
<f:view>
<a4j:status startText="...start..." stopText="stopped" />
<h:form>
<rich:tree adviseNodeSelected="#{rf4196.adviseNodeSelected}"
value="#{rf4196.rootNode}" var="item"
switchType="ajax">
<rich:treeNode>
<h:outputText value="#{item}" />
</rich:treeNode>
</rich:tree>
</h:form>
</f:view>
</body>
</html>
package org.richfaces.rf4196;
import org.richfaces.component.UITree;
import org.richfaces.model.TreeNode;
import org.richfaces.model.TreeNodeImpl;
//request scoped bean
public class Bean {
private TreeNode rootNode;
public TreeNode getRootNode() {
if (rootNode == null) {
rootNode = new TreeNodeImpl();
for (int i = 0; i < 10; i++) {
TreeNodeImpl impl = new TreeNodeImpl();
impl.setData(i);
rootNode.addChild(i, impl);
}
}
return rootNode;
}
private int counter = 0;
public Boolean adviseNodeSelected(UITree tree) {
if (counter++ == 7) {
return Boolean.TRUE;
} else {
return null;
}
}
}
> adviseNodeSelected of rich:tree is not working
> ----------------------------------------------
>
> Key: RF-5455
> URL: https://jira.jboss.org/jira/browse/RF-5455
> Project: RichFaces
> Issue Type: Bug
> Components: planning_all
> Affects Versions: 3.3.0
> Environment: JDK 1.6.0_05, JBoss AS 4.2.1, Mojarra 1.2_04-b16-p02, RichFaces 3.3.0.BETA4
> Reporter: Aimar Tellitu
> Assignee: Nick Belaevski
> Priority: Critical
> Fix For: 3.3.0
>
>
> From RichFaces 3.3.0.BETA4 to today's SNAPSHOT (22-decembre-2008) the property adviseNodeSelected of rich:tree is not working properly. In the previous versions is working fine (3.2.1, 3.2.2 and RichFAces 3.3.0.BETA3).
> Now with the lastet beta only when one node is clicked, the rich:tree is using selectedClass for that one.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list