You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2016/07/17 14:10:15 UTC
svn commit: r1753077 - in
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago:
component/ facelets/ internal/taglib/component/ internal/taglib/declaration/
Author: weber
Date: Sun Jul 17 14:10:14 2016
New Revision: 1753077
URL: http://svn.apache.org/viewvc?rev=1753077&view=rev
Log:
TOBAGO-1577 - AJAX not working from renderedPartial attribute: fix checkstyle
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/SupportsAjaxBehaviorHolder.java
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/SupportsAjaxBehaviorHolderRule.java
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/MenuCommandTagDeclaration.java
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasAjaxBehavior.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/SupportsAjaxBehaviorHolder.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/SupportsAjaxBehaviorHolder.java?rev=1753077&r1=1753076&r2=1753077&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/SupportsAjaxBehaviorHolder.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/SupportsAjaxBehaviorHolder.java Sun Jul 17 14:10:14 2016
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
package org.apache.myfaces.tobago.component;
import javax.faces.component.behavior.ClientBehaviorHolder;
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/SupportsAjaxBehaviorHolderRule.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/SupportsAjaxBehaviorHolderRule.java?rev=1753077&r1=1753076&r2=1753077&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/SupportsAjaxBehaviorHolderRule.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/SupportsAjaxBehaviorHolderRule.java Sun Jul 17 14:10:14 2016
@@ -21,10 +21,7 @@ package org.apache.myfaces.tobago.facele
import org.apache.myfaces.tobago.component.Attributes;
import org.apache.myfaces.tobago.component.SupportsAjaxBehaviorHolder;
-import org.apache.myfaces.tobago.util.ComponentUtils;
-import javax.el.ValueExpression;
-import javax.faces.component.UIComponent;
import javax.faces.component.behavior.AjaxBehavior;
import javax.faces.component.behavior.ClientBehavior;
import javax.faces.view.facelets.FaceletContext;
@@ -49,6 +46,7 @@ public class SupportsAjaxBehaviorHolderR
case renderedPartially:
case executePartially:
return new SupportsAjaxBehaviorHolderMapper(attribute, a);
+ default:
}
}
}
@@ -86,11 +84,12 @@ public class SupportsAjaxBehaviorHolderR
case executePartially:
ajaxBehavior.setValueExpression("execute", tagAttribute.getValueExpression(faceletContext, Object.class));
break;
+ default:
}
}
- private AjaxBehavior findAjaxBehavior(SupportsAjaxBehaviorHolder ajaxBehaviorHolder, FaceletContext faceletContext) {
- Map<String, List<ClientBehavior>> clientBehaviors = ajaxBehaviorHolder.getClientBehaviors();
+ private AjaxBehavior findAjaxBehavior(SupportsAjaxBehaviorHolder behaviorHolder, FaceletContext faceletContext) {
+ Map<String, List<ClientBehavior>> clientBehaviors = behaviorHolder.getClientBehaviors();
for (List<ClientBehavior> behaviors : clientBehaviors.values()) {
if (behaviors != null && !behaviors.isEmpty()) {
@@ -103,7 +102,7 @@ public class SupportsAjaxBehaviorHolderR
}
final AjaxBehavior ajaxBehavior
= (AjaxBehavior) faceletContext.getFacesContext().getApplication().createBehavior(AjaxBehavior.BEHAVIOR_ID);
- ajaxBehaviorHolder.addClientBehavior(ajaxBehaviorHolder.getDefaultEventName(), ajaxBehavior);
+ behaviorHolder.addClientBehavior(behaviorHolder.getDefaultEventName(), ajaxBehavior);
return ajaxBehavior;
}
}
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/MenuCommandTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/MenuCommandTagDeclaration.java?rev=1753077&r1=1753076&r2=1753077&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/MenuCommandTagDeclaration.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/MenuCommandTagDeclaration.java Sun Jul 17 14:10:14 2016
@@ -57,6 +57,6 @@ import javax.faces.component.UICommand;
allowedChildComponenents = "NONE")
public interface MenuCommandTagDeclaration
extends HasAction, HasActionListener, IsImmediateCommand,
- HasLink, HasResource, IsTransition, HasTarget, HasRenderedPartially, HasAjaxBehavior, IsDisabledBySecurity, IsOmit, IsVisual,
- HasIdBindingAndRendered, HasLabelAndAccessKey, HasTip, HasImage {
+ HasLink, HasResource, IsTransition, HasTarget, HasRenderedPartially, HasAjaxBehavior, IsDisabledBySecurity,
+ IsOmit, IsVisual, HasIdBindingAndRendered, HasLabelAndAccessKey, HasTip, HasImage {
}
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java?rev=1753077&r1=1753076&r2=1753077&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java Sun Jul 17 14:10:14 2016
@@ -66,6 +66,6 @@ import javax.faces.component.UICommand;
rendererType = RendererTypes.TREE_COMMAND)
public interface TreeCommandTagDeclaration
extends HasIdBindingAndRendered, HasAction, HasActionListener, IsImmediateCommand,
- HasLink, HasResource, IsTransition, HasTarget, HasRenderedPartially, HasAjaxBehavior, IsDisabledBySecurity, IsOmit,
- HasLabelAndAccessKey, HasTip, HasTabIndex, IsVisual {
+ HasLink, HasResource, IsTransition, HasTarget, HasRenderedPartially, HasAjaxBehavior, IsDisabledBySecurity,
+ IsOmit, HasLabelAndAccessKey, HasTip, HasTabIndex, IsVisual {
}
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasAjaxBehavior.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasAjaxBehavior.java?rev=1753077&r1=1753076&r2=1753077&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasAjaxBehavior.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasAjaxBehavior.java Sun Jul 17 14:10:14 2016
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
package org.apache.myfaces.tobago.internal.taglib.declaration;
import org.apache.myfaces.tobago.apt.annotation.TagAttribute;