svn commit: r1126101 - in /struts/struts2/trunk: core/src/main/java/org/apache/struts2/components/ xwork-core/src/main/java/com/opensymphony/xwork2/ xwork-core/src/main/java/com/opensymphony/xwork2/mo

2011-05-22 Thread jogep
Author: jogep
Date: Sun May 22 17:15:55 2011
New Revision: 1126101

URL: http://svn.apache.org/viewvc?rev=1126101&view=rev
Log:
WW-3628 : Regression in s:url tag action's method is no longer being included 
in the resultant url
Patch by Jason Pyeron

Modified:

struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java

struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ActionProxy.java

struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/DefaultActionProxy.java

struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/mock/MockActionProxy.java

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java?rev=1126101&r1=1126100&r2=1126101&view=diff
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
 Sun May 22 17:15:55 2011
@@ -77,7 +77,8 @@ public class ServletUrlRenderer implemen
 
final String action = ai.getProxy().getActionName();
final String namespace = ai.getProxy().getNamespace();
-   result = urlComponent.determineActionURL(action, 
namespace, urlComponent.getMethod(),urlComponent.getHttpServletRequest(), 
urlComponent.getHttpServletResponse(), urlComponent.getParameters(), scheme, 
urlComponent.isIncludeContext(), urlComponent.isEncode(), 
urlComponent.isForceAddSchemeHostAndPort(), urlComponent.isEscapeAmp());
+   final String method = urlComponent.getMethod() != null 
|| !ai.getProxy().isMethodSpecified() ? urlComponent.getMethod() : 
ai.getProxy().getMethod();
+   result = urlComponent.determineActionURL(action, 
namespace, method, urlComponent.getHttpServletRequest(), 
urlComponent.getHttpServletResponse(), urlComponent.getParameters(), scheme, 
urlComponent.isIncludeContext(), urlComponent.isEncode(), 
urlComponent.isForceAddSchemeHostAndPort(), urlComponent.isEscapeAmp());
} else {
String _value = urlComponent.getValue();
 

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ActionProxy.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ActionProxy.java?rev=1126101&r1=1126100&r2=1126101&view=diff
==
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ActionProxy.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ActionProxy.java
 Sun May 22 17:15:55 2011
@@ -92,5 +92,12 @@ public interface ActionProxy {
  * @return the method to execute
  */
 String getMethod();
+
+/**
+ * Gets status of the method value's initialization.
+ *
+ * @return true if the method returned by getMethod() is not a default 
initializer value.
+ */
+boolean isMethodSpecified();
 
 }

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/DefaultActionProxy.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/DefaultActionProxy.java?rev=1126101&r1=1126100&r2=1126101&view=diff
==
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/DefaultActionProxy.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/DefaultActionProxy.java
 Sun May 22 17:15:55 2011
@@ -60,6 +60,8 @@ public class DefaultActionProxy implemen
 
 protected ActionEventListener actionEventListener;
 
+private boolean methodSpecified=true;
+
 /**
  * This constructor is private so the builder methods (create*) should be 
used to create an DefaultActionProxy.
  * 
@@ -162,6 +164,7 @@ public class DefaultActionProxy implemen
 if (StringUtils.isEmpty(this.method)) {
 this.method = "execute";
 }
+methodSpecified=false;
 }
 }
 
@@ -201,4 +204,10 @@ public class DefaultActionProxy implemen
 UtilTimerStack.pop(profileKey);
 }
 }
+
+@Override
+public boolean isMethodSpecified()
+{
+return methodSpecified;
+}
 }

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/mock/MockActionProxy.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/mock/MockActionProxy.java?rev=1126101&r1=1126100&r2=1126101&view=diff
===

[CONF] Confluence Changes in the last 24 hours

2011-05-22 Thread confluence
This is a daily summary of all recent changes in Confluence.

-
Updated Spaces:
-


Apache Camel (https://cwiki.apache.org/confluence/display/CAMEL)

Pages
-
User Stories edited by  davsclaus  (12:58 AM)
https://cwiki.apache.org/confluence/display/CAMEL/User+Stories

Camel 2.8.0 Release edited by  boday  (12:39 AM)
https://cwiki.apache.org/confluence/display/CAMEL/Camel+2.8.0+Release



Apache CXF (https://cwiki.apache.org/confluence/display/CXF)

Pages
-
Resources and Articles edited by  mazzag  (01:04 AM)
https://cwiki.apache.org/confluence/display/CXF/Resources+and+Articles



Apache MyFaces Extensions CDI 
(https://cwiki.apache.org/confluence/display/EXTCDI)

Pages
-
Problems with Weld edited by  gpetracek  (04:55 PM)
https://cwiki.apache.org/confluence/display/EXTCDI/Problems+with+Weld

Intro edited by  gpetracek  (04:50 PM)
https://cwiki.apache.org/confluence/display/EXTCDI/Intro



Apache Isis (https://cwiki.apache.org/confluence/display/ISIS)

Pages
-
RecreatingMavenArchetypeFromProject edited by  danhaywood  (04:35 PM)
https://cwiki.apache.org/confluence/display/ISIS/RecreatingMavenArchetypeFromProject

Index edited by  danhaywood  (11:40 AM)
https://cwiki.apache.org/confluence/display/ISIS/Index

ReleaseProcess edited by  danhaywood  (10:26 AM)
https://cwiki.apache.org/confluence/display/ISIS/ReleaseProcess

GeneratingPgpKeys edited by  danhaywood  (04:33 AM)
https://cwiki.apache.org/confluence/display/ISIS/GeneratingPgpKeys



OFBiz Project Administration Workspace 
(https://cwiki.apache.org/confluence/display/OFBADMIN)

Pages
-
Apache OFBiz PMC Members and Committers edited by  bibryam  (09:20 AM)
https://cwiki.apache.org/confluence/display/OFBADMIN/Apache+OFBiz+PMC+Members+and+Committers



Apache PhotArk Wiki (https://cwiki.apache.org/confluence/display/PHOTARKxWIKI)

Pages
-
GSoC Project Progress- Adding Social Features to PhotArk created by umashanthi 
(03:22 AM)
https://cwiki.apache.org/confluence/display/PHOTARKxWIKI/GSoC+Project+Progress-+Adding+Social+Features+to+PhotArk

Project Progress- Adding Social Features to PhotArk created by umashanthi 
(03:21 AM)
https://cwiki.apache.org/confluence/display/PHOTARKxWIKI/Project+Progress-+Adding+Social+Features+to+PhotArk



Apache Shiro (https://cwiki.apache.org/confluence/display/SHIRO)

Pages
-
Configuration edited by  lhazlewood  (10:19 PM)
https://cwiki.apache.org/confluence/display/SHIRO/Configuration

Realm edited by  lhazlewood  (09:41 PM)
https://cwiki.apache.org/confluence/display/SHIRO/Realm

Authentication edited by  lhazlewood  (09:35 PM)
https://cwiki.apache.org/confluence/display/SHIRO/Authentication

Architecture edited by  lhazlewood  (07:40 PM)
https://cwiki.apache.org/confluence/display/SHIRO/Architecture

Concurrency created by lhazlewood (02:35 AM)
https://cwiki.apache.org/confluence/display/SHIRO/Concurrency

Session Management created by lhazlewood (02:35 AM)
https://cwiki.apache.org/confluence/display/SHIRO/Session+Management

Reference edited by  lhazlewood  (02:33 AM)
https://cwiki.apache.org/confluence/display/SHIRO/Reference

Authorization created by lhazlewood (02:00 AM)
https://cwiki.apache.org/confluence/display/SHIRO/Authorization



Apache Tapestry (https://cwiki.apache.org/confluence/display/TAPESTRY)

Pages
-
Documentation edited by  hlship  (03:26 PM)
https://cwiki.apache.org/confluence/display/TAPESTRY/Documentation

Integration with existing applications edited by  hlship  (03:25 PM)
https://cwiki.apache.org/confluence/display/TAPESTRY/Integration+with+existing+applications

Request Processing FAQ created by hlship (03:22 PM)
https://cwiki.apache.org/confluence/display/TAPESTRY/Request+Processing+FAQ




Change your notification preferences: 
https://cwiki.apache.org/confluence/users/viewnotifications.action