You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2007/10/30 09:41:25 UTC
svn commit: r589988 -
/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITreeData.java
Author: lofwyr
Date: Tue Oct 30 01:41:25 2007
New Revision: 589988
URL: http://svn.apache.org/viewvc?rev=589988&view=rev
Log:
hack to get the marker: fix this with implementing an event listener
Modified:
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITreeData.java
Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITreeData.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITreeData.java?rev=589988&r1=589987&r2=589988&view=diff
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITreeData.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITreeData.java Tue Oct 30 01:41:25 2007
@@ -53,6 +53,10 @@
private String pathIndex;
+ // XXX hack: fix this if there is a Listener
+ private Object marker;
+
+
// @Override public void processDecodes(FacesContext facesContext) {
// LOG.info("processDecodes for nodes");
// LOG.warn("todo"); // todo
@@ -71,7 +75,14 @@
for (String pathIndex : treeModel.getPathIndexList()) {
setPathIndex(pathIndex);
- getTemplateComponent().processDecodes(facesContext);
+ UITreeNode node = getTemplateComponent();
+ node.processDecodes(facesContext);
+
+ // XXX hack: fix this if there is a Listener
+ if (node.isMarked()) {
+ marker = node.getValue();
+ }
+
setPathIndex(null);
}
}
@@ -320,5 +331,10 @@
public String getPathIndex() {
return pathIndex;
}
+ }
+
+ // XXX hack: fix this if there is a Listener
+ public Object getMarker() {
+ return marker;
}
}