You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/10/24 10:55:30 UTC
svn commit: r587822 - in
/myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component:
UIXTableTemplate.java UIXTreeTemplate.java
Author: matzew
Date: Wed Oct 24 01:55:28 2007
New Revision: 587822
URL: http://svn.apache.org/viewvc?rev=587822&view=rev
Log:
TRINIDAD-771 thx to Max for his patch
Modified:
myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java
myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java
Modified: myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java?rev=587822&r1=587821&r2=587822&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java Wed Oct 24 01:55:28 2007
@@ -64,31 +64,7 @@
public void queueEvent(FacesEvent event)
{
TableUtils.__handleQueueEvent(this, event);
-
- // If the currency is not already established,
- // associate selected row key with the event
- // UIXCollection.queueEvent() will wrap the event into
- // a TableRowEvent that will include currency information
-
- Object newKey = null;
- Object oldKey = getRowKey();
- if (oldKey == null)
- {
- Set keys = getSelectedRowKeys();
- if (!keys.isEmpty())
- newKey = keys.iterator().next();
- }
-
- if (newKey != null)
- {
- setRowKey(newKey);
- super.queueEvent(event);
- setRowKey(oldKey);
- }
- else
- {
- super.queueEvent(event);
- }
+ super.queueEvent(event);
}
/**
Modified: myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java?rev=587822&r1=587821&r2=587822&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java Wed Oct 24 01:55:28 2007
@@ -55,31 +55,7 @@
public void queueEvent(FacesEvent event)
{
TableUtils.__handleQueueEvent(this, event);
-
- // If the currency is not already established,
- // associate selected row key with the event
- // UIXCollection.queueEvent() will wrap the event into
- // a TableRowEvent that will include currency information
-
- Object newKey = null;
- Object oldKey = getRowKey();
- if (oldKey == null)
- {
- Set keys = getSelectedRowKeys();
- if (!keys.isEmpty())
- newKey = keys.iterator().next();
- }
-
- if (newKey != null)
- {
- setRowKey(newKey);
- super.queueEvent(event);
- setRowKey(oldKey);
- }
- else
- {
- super.queueEvent(event);
- }
+ super.queueEvent(event);
}
/**