[CONF] Confluence Changes in the last 24 hours

2007-06-14 Thread confluence
-
This is a daily summary of all recent changes in Confluence.

-
Updated Spaces:
-

OpenJPA (openjpa) http://cwiki.apache.org/confluence/display/openjpa
|
|-Pages Added or Edited in This Space
 |-- Building OpenJPA was last edited by mprudhom (01:25 AM).
 |   http://cwiki.apache.org/confluence/display/openjpa/Building+OpenJPA

Apache Camel (CAMEL) http://cwiki.apache.org/confluence/display/CAMEL
|
|-Pages Added or Edited in This Space
 |-- Running Examples was created by jstrachan (10:00 AM).
 |   http://cwiki.apache.org/confluence/display/CAMEL/Running+Examples
 |-- Examples was last edited by jstrachan (09:57 AM).
 |   http://cwiki.apache.org/confluence/display/CAMEL/Examples
 |-- Camel 1.0 Release was last edited by chirino (07:22 AM).
 |   http://cwiki.apache.org/confluence/display/CAMEL/Camel+1.0+Release
 |-- Running RAT was created by jstrachan (02:53 AM).
 |   http://cwiki.apache.org/confluence/display/CAMEL/Running+RAT

Apache Roller (ROLLER) http://cwiki.apache.org/confluence/display/ROLLER
|
|-Pages Added or Edited in This Space
 |-- What's New in Roller 4.0 was created by snoopdave (08:25 AM).
 |   
http://cwiki.apache.org/confluence/display/ROLLER/What%27s+New+in+Roller+4.0
 |-- Proposal Roller 4.0 Release was last edited by snoopdave (08:41 AM).
 |   
http://cwiki.apache.org/confluence/display/ROLLER/Proposal+Roller+4.0+Release
 |-- Roller Wiki was last edited by snoopdave (08:20 AM).
 |   http://cwiki.apache.org/confluence/display/ROLLER/Roller+Wiki
 |-- Proposal Easy Install was last edited by snoopdave (06:57 AM).
 |   http://cwiki.apache.org/confluence/display/ROLLER/Proposal+Easy+Install

Apache ActiveMQ CPP (AMQCPP) http://cwiki.apache.org/confluence/display/AMQCPP
|
|-Pages Added or Edited in This Space
 |-- Configuring was last edited by tabish121 (03:26 PM).
 |   http://cwiki.apache.org/confluence/display/AMQCPP/Configuring

Apache Geronimo v1.1 (GMOxDOC11) 
http://cwiki.apache.org/confluence/display/GMOxDOC11
|
|-Pages Added or Edited in This Space
 |-- Using J2G was created by ginemesis (12:29 PM).
 |   http://cwiki.apache.org/confluence/display/GMOxDOC11/Using+J2G
 |-- Building J2G from source was created by ginemesis (01:25 PM).
 |   
http://cwiki.apache.org/confluence/display/GMOxDOC11/Building+J2G+from+source
 |-- J2G was created by ginemesis (10:16 AM).
 |   http://cwiki.apache.org/confluence/display/GMOxDOC11/J2G

Apache Struts 2 Documentation (WW) http://cwiki.apache.org/confluence/display/WW
 |
 |-New Comments in This Space
 |-- http://cwiki.apache.org/confluence/display/WW/Template+Loading (1)
 |-- http://cwiki.apache.org/confluence/display/WW/How+do+we+upload+files (2)

Apache Cayenne Documentation (CAYDOC) 
http://cwiki.apache.org/confluence/display/CAYDOC
|
|-Pages Added or Edited in This Space
 |-- Scripting SQLTemplate was last edited by andrus (10:14 AM).
 |   http://cwiki.apache.org/confluence/display/CAYDOC/Scripting+SQLTemplate

Apache Tuscany (TUSCANY) http://cwiki.apache.org/confluence/display/TUSCANY
|
|-Pages Added or Edited in This Space
 |-- Distributed Runtime was last edited by slaws (06:26 AM).
 |   http://cwiki.apache.org/confluence/display/TUSCANY/Distributed+Runtime
 |-- Tuscany Downloads & Documentations was last edited by svkrish (02:43 AM).
 |   http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=55199

Apache Felix (FELIX) http://cwiki.apache.org/confluence/display/FELIX
 |
 |-New Comments in This Space
 |-- http://cwiki.apache.org/confluence/display/FELIX/Felix+OSGi+tutorial (2)

Apache Qpid (qpid) http://cwiki.apache.org/confluence/display/qpid
|
|-Pages Added or Edited in This Space
 |-- M2 Release was last edited by aconway (07:55 AM).
 |   http://cwiki.apache.org/confluence/display/qpid/M2+Release

Apache ActiveMQ (ACTIVEMQ) http://cwiki.apache.org/confluence/display/ACTIVEMQ
|
|-Pages Added or Edited in This Space
 |-- Security was last edited by [EMAIL PROTECTED] (06:44 PM).
 |   http://cwiki.apache.org/confluence/display/ACTIVEMQ/Security
 |-- How do I enable debug logging was created by jstrachan (07:47 AM).
 |   
http://cwiki.apache.org/confluence/display/ACTIVEMQ/How+do+I+enable+debug+logging
 |-- How do I disable logging was created by jstrachan (07:45 AM).
 |   
http://cwiki.apache.org/confluence/display/ACTIVEMQ/How+do+I+disable+logging
 |-- How do I change the logging was last edited by jstrachan (07:45 AM).
 |   
http://cwiki.apache.org/confluence/display/ACTIVEMQ/How+do+I+change+the+logging
 |-- Discovery Transport Reference was last edited by jstrachan (03:42 AM).
 |   
http://cwiki.apache.org/confluence/display/ACTIVEMQ/Discovery+Transport+Reference
 |-- ZeroConf Transport Reference was created by jstrachan (03:31 AM).
 |   
http://cwiki.apache.org/confluence/display/ACTIVEMQ/ZeroConf+Transport+Reference
 |-- Configur

svn commit: r547350 - in /struts/struts2/trunk/core/src: main/java/org/apache/struts2/components/ main/java/org/apache/struts2/views/jsp/ui/ main/resources/template/css_xhtml/ main/resources/template/

2007-06-14 Thread musachy
Author: musachy
Date: Thu Jun 14 11:35:04 2007
New Revision: 547350

URL: http://svn.apache.org/viewvc?view=rev&rev=547350
Log:
WW-1350 Autofocus element of a form, the id of the element to get the focus is 
specified in the "focusElement" attribute of the "form" tag

Added:

struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-12.txt
Modified:

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

struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java

struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-close.ftl
struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close.ftl
struts/struts2/trunk/core/src/site/resources/tags/form.html

struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java?view=diff&rev=547350&r1=547349&r2=547350
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java 
(original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java 
Thu Jun 14 11:35:04 2007
@@ -110,7 +110,8 @@
 protected String portletMode;
 protected String windowState;
 protected String acceptcharset;
-
+protected String focusElement;
+
 protected boolean enableDynamicMethodInvocation = true;
 protected Configuration configuration;
 protected ObjectFactory objectFactory;
@@ -201,6 +202,10 @@
 // we have this if check so we don't do this twice (on open and 
close of the template)
 addParameter("tagNames", new ArrayList());
 }
+
+if (focusElement != null) {
+addParameter("focusElement", findString(focusElement));
+}
 }
 
 /**
@@ -484,5 +489,10 @@
 @StrutsTagAttribute(description="The accepted charsets for this form. The 
values may be comma or blank delimited.")
 public void setAcceptcharset(String acceptcharset) {
 this.acceptcharset = acceptcharset;
+}
+
+@StrutsTagAttribute(description="Id of element that will receive the focus 
when page loads.")
+public void setFocusElement(String focusElement) {
+this.focusElement = focusElement;
 }
 }

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java?view=diff&rev=547350&r1=547349&r2=547350
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java
 Thu Jun 14 11:35:04 2007
@@ -48,7 +48,8 @@
 protected String portletMode;
 protected String windowState;
 protected String acceptcharset;
-
+protected String focusElement;
+
 public Component getBean(ValueStack stack, HttpServletRequest req, 
HttpServletResponse res) {
 return new Form(stack, req, res);
 }
@@ -66,6 +67,7 @@
 form.setPortletMode(portletMode);
 form.setWindowState(windowState);
 form.setAcceptcharset(acceptcharset);
+form.setFocusElement(focusElement);
 }
 
 
@@ -107,5 +109,9 @@
 
 public void setAcceptcharset(String acceptcharset) {
 this.acceptcharset = acceptcharset;
+}
+
+public void setFocusElement(String focusElement) {
+this.focusElement = focusElement;
 }
 }

Modified: 
struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-close.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-close.ftl?view=diff&rev=547350&r1=547349&r2=547350
==
--- 
struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-close.ftl 
(original)
+++ 
struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-close.ftl 
Thu Jun 14 11:35:04 2007
@@ -1,3 +1,13 @@
 <#include "/${parameters.templateDir}/css_xhtml/control-close.ftl" />
 <#include "/${parameters.templateDir}/simple/form-close.ftl" />
 <#include "/${parameters.templateDir}/xhtml/form-close-validate.ftl" />
+<#if parameters.focusElement?if_exists != "">
+
+StrutsUtils.addOnLoad(function() {
+var element = 
document.getElementById("${parameters.focusElement?html}");
+if(element) {
+element.focus();
+}
+});
+
+

Modified: 
struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2

svn commit: r547359 - in /struts/struts2/trunk/core/src: main/java/org/apache/struts2/components/Set.java site/resources/tags/set.html test/java/org/apache/struts2/views/jsp/SetTagTest.java

2007-06-14 Thread musachy
Author: musachy
Date: Thu Jun 14 11:53:25 2007
New Revision: 547359

URL: http://svn.apache.org/viewvc?view=rev&rev=547359
Log:
WW-1891 tags that insert values into the value stack should use "name" 
attribute to specify the name

Modified:

struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java
struts/struts2/trunk/core/src/site/resources/tags/set.html

struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/SetTagTest.java

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java?view=diff&rev=547359&r1=547358&r2=547359
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java 
(original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java 
Thu Jun 14 11:53:25 2007
@@ -56,7 +56,7 @@
  *
  * 
  *
- * id (String): The name of the new variable that is assigned the value of 
value
+ * name* (String): The name of the new variable that is assigned the value 
of value
  *
  * value (Object): The value that is assigned to the variable named 
name
  *
@@ -71,7 +71,7 @@
  *
  * 
  * 
- * 
+ * 
  * Hello, . How are you?
  * 
  * 
@@ -103,26 +103,36 @@
 
 body="";
 
-//no need to throw an error, the id is required on the TLD
+String name;
+if (altSyntax()) {
+name = findString(this.name, "name", "Name is required");
+} else {
+name = this.name;
+
+if (this.name == null) {
+throw fieldError("name", "Name is required", null);
+}
+}
+
 if ("application".equalsIgnoreCase(scope)) {
-stack.setValue("#application['" + id + "']", o);
+stack.setValue("#application['" + name + "']", o);
 } else if ("session".equalsIgnoreCase(scope)) {
-stack.setValue("#session['" + id + "']", o);
+stack.setValue("#session['" + name + "']", o);
 } else if ("request".equalsIgnoreCase(scope)) {
-stack.setValue("#request['" + id + "']", o);
+stack.setValue("#request['" + name + "']", o);
 } else if ("page".equalsIgnoreCase(scope)) {
-stack.setValue("#attr['" + id + "']", o, false);
+stack.setValue("#attr['" + name + "']", o, false);
 } else {
-stack.getContext().put(id, o);
-stack.setValue("#attr['" + id + "']", o, false);
+stack.getContext().put(name, o);
+stack.setValue("#attr['" + name + "']", o, false);
 }
 
 return super.end(writer, body);
 }
 
-@StrutsTagAttribute(description="Deprecated. Use 'id' instead")
+@StrutsTagAttribute(description=" The name of the new variable that is 
assigned the value of value", required=true)
 public void setName(String name) {
-super.setId(name);
+this.name = name;
 }
 
 @StrutsTagAttribute(description="The scope in which to assign the 
variable. Can be application" +
@@ -134,10 +144,5 @@
 @StrutsTagAttribute(description="The value that is assigned to the 
variable named name")
 public void setValue(String value) {
 this.value = value;
-}
-
-@StrutsTagAttribute(description="The name of the new variable that is 
assigned the value of value", required=true)
-public void setId(String id) {
-super.setId(id);
 }
 }

Modified: struts/struts2/trunk/core/src/site/resources/tags/set.html
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/set.html?view=diff&rev=547359&r1=547358&r2=547359
==
--- struts/struts2/trunk/core/src/site/resources/tags/set.html (original)
+++ struts/struts2/trunk/core/src/site/resources/tags/set.html Thu Jun 14 
11:53:25 2007
@@ -29,19 +29,19 @@


id
-   true
+   false

true
String
-   The name 
of the new variable that is assigned the value of value
+   id for 
referencing element. For UI and form tags it will be used as HTML id 
attribute


name
-   false
+   true