You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/06/25 11:06:30 UTC

svn commit: r671475 - /myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/CommandRendererHelper.java

Author: bommel
Date: Wed Jun 25 02:06:29 2008
New Revision: 671475

URL: http://svn.apache.org/viewvc?rev=671475&view=rev
Log:
TOBAGO-487: Action on server-side needs the coordinate of the event on the client side. Fixed ajax reload

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/CommandRendererHelper.java

Modified: myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/CommandRendererHelper.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/CommandRendererHelper.java?rev=671475&r1=671474&r2=671475&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/CommandRendererHelper.java (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/CommandRendererHelper.java Wed Jun 25 02:06:29 2008
@@ -29,6 +29,7 @@
 import static org.apache.myfaces.tobago.TobagoConstants.FACET_CONFIRMATION;
 import static org.apache.myfaces.tobago.TobagoConstants.FACET_POPUP;
 import org.apache.myfaces.tobago.component.UIPopup;
+import org.apache.myfaces.tobago.component.AbstractUICommand;
 import org.apache.myfaces.tobago.context.ClientProperties;
 import org.apache.myfaces.tobago.event.PopupActionListener;
 import org.apache.myfaces.tobago.util.ComponentUtil;
@@ -97,10 +98,10 @@
         }
       } else if (command.getAttributes().get(ATTR_ACTION_ONCLICK) != null) {
         onclick = prepareOnClick(facesContext, command);
-      } else if (command instanceof org.apache.myfaces.tobago.component.AbstractUICommand
-          && ((org.apache.myfaces.tobago.component.AbstractUICommand) command).getRenderedPartially().length > 0) {
+      } else if (command instanceof AbstractUICommand
+          && ((AbstractUICommand) command).getRenderedPartially().length > 0) {
 
-        String[] componentIds = ((org.apache.myfaces.tobago.component.AbstractUICommand) command).getRenderedPartially();
+        String[] componentIds = ((AbstractUICommand) command).getRenderedPartially();
 
           // TODO find a better way
           boolean popupAction = ComponentUtil.containsPopupActionListener(command);