Author: Alex.Kolonitsky
Date: 2009-07-14 09:56:52 -0400 (Tue, 14 Jul 2009)
New Revision: 14921
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java
Log:
UITree: queue expansion and collapse methods declared as throws IOException.
https://jira.jboss.org/jira/browse/RF-7509
Modified:
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java
===================================================================
---
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java 2009-07-14
13:55:19 UTC (rev 14920)
+++
branches/community/3.3.X/samples/tree-demo/src/main/java/org/richfaces/Bean.java 2009-07-14
13:56:52 UTC (rev 14921)
@@ -99,7 +99,17 @@
private String ajaxNodeSelectionEncodeBehavior;
private String ajaxChildActivationEncodeBehavior;
- public String getIcon() {
+ private String value;
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public String getIcon() {
return icon;
}
@@ -279,12 +289,7 @@
public String expand() {
if (expandPath != null && expandPath.length() != 0) {
- try {
- tree.queueNodeExpand(new ListRowKey(null, expandPath));
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ tree.queueNodeExpand(new ListRowKey(null, expandPath));
}
return null;
@@ -312,12 +317,7 @@
}
public String expandAll() {
- try {
- this.tree.queueExpandAll();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ this.tree.queueExpandAll();
return null;
}
@@ -397,11 +397,7 @@
public String expandNode() {
String pathToExpand = getPathToExpand();
if (pathToExpand != null && pathToExpand.trim().length() != 0) {
- try {
- ((UITree) getTree()).queueNodeExpand(new ListRowKey(null, pathToExpand));
- } catch (IOException e) {
- throw new FacesException(e);
- }
+ ((UITree) getTree()).queueNodeExpand(new ListRowKey(null, pathToExpand));
}
return null;