[CONF] Confluence Changes in the last 24 hours

2007-02-22 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
 |-- OpenJPA Development Resources was created by pcl (12:53 PM).
 |   
http://cwiki.apache.org/confluence/display/openjpa/OpenJPA+Development+Resources
 |-- Index was last edited by pcl (12:33 PM).
 |   http://cwiki.apache.org/confluence/display/openjpa/Index

Apache Directory Server v1.5 (DIRxSRVx11) 
http://cwiki.apache.org/confluence/display/DIRxSRVx11
|
|-Pages Added or Edited in This Space
 |-- Index was last edited by ck (04:56 PM).
 |   http://cwiki.apache.org/confluence/display/DIRxSRVx11/Index

Apache Roller (ROLLER) http://cwiki.apache.org/confluence/display/ROLLER
 |
 |-New Comments in This Space
 |-- 
http://cwiki.apache.org/confluence/display/ROLLER/Proposal+Roller+4.0+Release 
(1)

Apache Geronimo Project Management (GMOxPMGT) 
http://cwiki.apache.org/confluence/display/GMOxPMGT
|
|-Pages Added or Edited in This Space
 |-- Geronimo 2.0 Web Services support was last edited by [EMAIL PROTECTED] 
(10:04 PM).
 |   
http://cwiki.apache.org/confluence/display/GMOxPMGT/Geronimo+2.0+Web+Services+support
 |-- Geronimo Java EE 5.0 Report Card was last edited by davecola (01:02 PM).
 |   
http://cwiki.apache.org/confluence/display/GMOxPMGT/Geronimo+Java+EE+5.0+Report+Card

Apache Struts 2 Documentation (WW) http://cwiki.apache.org/confluence/display/WW
|
|-Pages Added or Edited in This Space
 |-- Writing Interceptors was last edited by mrdon (01:45 PM).
 |   http://cwiki.apache.org/confluence/display/WW/Writing+Interceptors

Apache Cayenne Documentation (CAYDOC) 
http://cwiki.apache.org/confluence/display/CAYDOC
|
|-Pages Added or Edited in This Space
 |-- JPA Cayenne Provider Properties was last edited by andrus (07:20 AM).
 |   
http://cwiki.apache.org/confluence/display/CAYDOC/JPA+Cayenne+Provider+Properties
 |-- JPA persistence.xml was created by andrus (07:08 AM).
 |   http://cwiki.apache.org/confluence/display/CAYDOC/JPA+persistence.xml
 |-- JPA Guide was last edited by andrus (07:09 AM).
 |   http://cwiki.apache.org/confluence/display/CAYDOC/JPA+Guide

Apache Directory Server v1.0 (DIRxSRVx10) 
http://cwiki.apache.org/confluence/display/DIRxSRVx10
|
|-Pages Added or Edited in This Space
 |-- Navigation was last edited by ck (06:05 PM).
 |   http://cwiki.apache.org/confluence/display/DIRxSRVx10/Navigation

Apache Tuscany (TUSCANY) http://cwiki.apache.org/confluence/display/TUSCANY
|
|-Pages Added or Edited in This Space
 |-- Tuscany SCA Java Developer Guide was created by [EMAIL PROTECTED] (11:02 
AM).
 |   
http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+Java+Developer+Guide
 |-- SCA Java User Guide was last edited by [EMAIL PROTECTED] (11:37 AM).
 |   http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+User+Guide
 |-- Tuscany SCA Java Extension Developer Guide was created by [EMAIL 
PROTECTED] (11:03 AM).
 |   
http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+Java+Extension+Developer+Guide
 |-- SCA Java Documentation was last edited by [EMAIL PROTECTED] (11:07 AM).
 |   http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+Documentation
 |-- SCA CPP Bindings REST was created by slaws (03:28 AM).
 |   http://cwiki.apache.org/confluence/display/TUSCANY/SCA+CPP+Bindings+REST
 |-- SCA CPP Users was last edited by slaws (03:25 AM).
 |   http://cwiki.apache.org/confluence/display/TUSCANY/SCA+CPP+Users

Apache Directory Website (DIRxSITE) 
http://cwiki.apache.org/confluence/display/DIRxSITE
|
|-Pages Added or Edited in This Space
 |-- Navigation was last edited by ck (06:04 PM).
 |   http://cwiki.apache.org/confluence/display/DIRxSITE/Navigation

Apache Wicket (WICKET) http://cwiki.apache.org/confluence/display/WICKET
|
|-Pages Added or Edited in This Space
 |-- New Page was created by [EMAIL PROTECTED] (01:35 AM).
 |   http://cwiki.apache.org/confluence/display/WICKET/New+Page
 |-- Dyanamic menu was created by [EMAIL PROTECTED] (01:34 AM).
 |   http://cwiki.apache.org/confluence/display/WICKET/Dyanamic+menu
 |-- Menu was created by [EMAIL PROTECTED] (01:27 AM).
 |   http://cwiki.apache.org/confluence/display/WICKET/Menu

Apache Directory Triplesec (DIRxTRIPLESEC) 
http://cwiki.apache.org/confluence/display/DIRxTRIPLESEC
|
|-Pages Added or Edited in This Space
 |-- Index was last edited by ck (05:43 PM).
 |   http://cwiki.apache.org/confluence/display/DIRxTRIPLESEC/Index

Felix (FELIX) http://cwiki.apache.org/confluence/display/FELIX
|
|-Pages Added or Edited in This Space
 |-- Apache Felix Commons was last edited by erodriguez (07:56 PM).
 |   http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons
 |-- Projects Using or Evaluating OSGi was created by er

svn commit: r510742 - in /struts/struts2/branches/STRUTS_2_0_X/core/src: main/java/org/apache/struts2/components/ main/java/org/apache/struts2/views/jsp/ui/ main/resources/org/apache/struts2/static/do

2007-02-22 Thread musachy
Author: musachy
Date: Thu Feb 22 17:04:18 2007
New Revision: 510742

URL: http://svn.apache.org/viewvc?view=rev&rev=510742
Log:
WW-1659: 
 * Update autocompleter to accept JSON generated using the JSON plugin
 * Add "dataFieldName" to identify the field to be used as the data source in 
the returned JSON string

Modified:

struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java

struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java

struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js

struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/ajax/autocompleter.ftl

struts/struts2/branches/STRUTS_2_0_X/core/src/site/resources/tags/autocompleter.html

struts/struts2/branches/STRUTS_2_0_X/core/src/test/java/org/apache/struts2/views/jsp/ui/AutocompleterTest.java

struts/struts2/branches/STRUTS_2_0_X/core/src/test/resources/org/apache/struts2/views/jsp/ui/Autocompleter-1.txt

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java?view=diff&rev=510742&r1=510741&r2=510742
==
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 Thu Feb 22 17:04:18 2007
@@ -31,15 +31,7 @@
 /**
  * The autocomplete tag is a combobox that can autocomplete text entered on 
the input box.
  * When used on the "simple" theme, the autocompleter can be used like the 
ComboBox.
- * When used on the "ajax" theme, the list can be retieved from an action. 
This action must
- * return a JSON list in the format:
- * 
- * [
- *   ["Text 1","Value1"],
- *   ["Text 2","Value2"],
- *   ["Text 3","Value3"]
- * ]
- * 
+ * When used on the "ajax" theme, the list can be retieved from an action. 
  * 
  * THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED
  * 
@@ -75,6 +67,7 @@
  * 'keyName' name of the field to which the selected key will be assigned
  * 'iconPath' path of icon used for the dropdown
  * 'templateCssPath' path to css file used to customize Dojo's widget
+ * 'dataFieldName' name of the field to be used as the list in the returned 
JSON string
  * 'notifyTopics' comma separated list of topics names, that will be 
published. Three parameters are passed:
  * 
  *  data: selected value when type='valuechanged'
@@ -107,6 +100,7 @@
 protected String templateCssPath;
 protected String iconPath;
 protected String keyName;
+protected String dataFieldName;
 
 public Autocompleter(ValueStack stack, HttpServletRequest request,
 HttpServletResponse response) {
@@ -169,6 +163,8 @@
 addParameter("templateCssPath", findString(templateCssPath));
 if(iconPath != null)
 addParameter("iconPath", findString(iconPath));
+if(dataFieldName != null)
+addParameter("dataFieldName", findString(dataFieldName));
 if(keyName != null)
 addParameter("keyName", findString(keyName));
 else {
@@ -284,5 +280,10 @@
 @StrutsTagAttribute(description="Name of the field to which the selected 
key will be assigned")
 public void setKeyName(String keyName) {
this.keyName = keyName;
+}
+
+@StrutsTagAttribute(description="Name of the field in the returned JSON 
object that contains the data array", defaultValue="Value specified in 'name'")
+public void setDataFieldName(String dataFieldName) {
+this.dataFieldName = dataFieldName;
 }
 }

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java?view=diff&rev=510742&r1=510741&r2=510742
==
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java
 Thu Feb 22 17:04:18 2007
@@ -53,6 +53,7 @@
 protected String templateCssPath;
 protected String iconPath;
 protected String keyName;
+protected String dataFieldName;
 
 public Component getBean(ValueStack stack, HttpServletRequest req, 
HttpServletResponse res) {
 return new Autocompleter(stack, req, res);
@@ -81,6 +82,7 @@
 autocompleter.setTemplateCssPath(templateCssPath);
 au

svn commit: r510743 - in /struts/struts2/trunk/core/src: main/java/org/apache/struts2/components/ main/java/org/apache/struts2/views/jsp/ui/ main/resources/org/apache/struts2/static/dojo/struts/widget

2007-02-22 Thread musachy
Author: musachy
Date: Thu Feb 22 17:06:19 2007
New Revision: 510743

URL: http://svn.apache.org/viewvc?view=rev&rev=510743
Log:
WW-1659: 
 * Update autocompleter to accept JSON generated using the JSON plugin
 * Add "dataFieldName" to identify the field to be used as the data source in 
the returned JSON string

Modified:

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

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

struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js
struts/struts2/trunk/core/src/main/resources/template/ajax/autocompleter.ftl
struts/struts2/trunk/core/src/site/resources/tags/autocompleter.html

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

struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Autocompleter-1.txt

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java?view=diff&rev=510743&r1=510742&r2=510743
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 Thu Feb 22 17:06:19 2007
@@ -31,15 +31,7 @@
 /**
  * The autocomplete tag is a combobox that can autocomplete text entered on 
the input box.
  * When used on the "simple" theme, the autocompleter can be used like the 
ComboBox.
- * When used on the "ajax" theme, the list can be retieved from an action. 
This action must
- * return a JSON list in the format:
- * 
- * [
- *   ["Text 1","Value1"],
- *   ["Text 2","Value2"],
- *   ["Text 3","Value3"]
- * ]
- * 
+ * When used on the "ajax" theme, the list can be retieved from an action. 
  * 
  * THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED
  * 
@@ -75,6 +67,7 @@
  * 'keyName' name of the field to which the selected key will be assigned
  * 'iconPath' path of icon used for the dropdown
  * 'templateCssPath' path to css file used to customize Dojo's widget
+ * 'dataFieldName' name of the field to be used as the list in the returned 
JSON string
  * 'notifyTopics' comma separated list of topics names, that will be 
published. Three parameters are passed:
  * 
  *  data: selected value when type='valuechanged'
@@ -107,6 +100,7 @@
 protected String templateCssPath;
 protected String iconPath;
 protected String keyName;
+protected String dataFieldName;
 
 public Autocompleter(ValueStack stack, HttpServletRequest request,
 HttpServletResponse response) {
@@ -169,6 +163,8 @@
 addParameter("templateCssPath", findString(templateCssPath));
 if(iconPath != null)
 addParameter("iconPath", findString(iconPath));
+if(dataFieldName != null)
+addParameter("dataFieldName", findString(dataFieldName));
 if(keyName != null)
 addParameter("keyName", findString(keyName));
 else {
@@ -284,5 +280,10 @@
 @StrutsTagAttribute(description="Name of the field to which the selected 
key will be assigned")
 public void setKeyName(String keyName) {
this.keyName = keyName;
+}
+
+@StrutsTagAttribute(description="Name of the field in the returned JSON 
object that contains the data array", defaultValue="Value specified in 'name'")
+public void setDataFieldName(String dataFieldName) {
+this.dataFieldName = dataFieldName;
 }
 }

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java?view=diff&rev=510743&r1=510742&r2=510743
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/AutocompleterTag.java
 Thu Feb 22 17:06:19 2007
@@ -53,6 +53,7 @@
 protected String templateCssPath;
 protected String iconPath;
 protected String keyName;
+protected String dataFieldName;
 
 public Component getBean(ValueStack stack, HttpServletRequest req, 
HttpServletResponse res) {
 return new Autocompleter(stack, req, res);
@@ -81,6 +82,7 @@
 autocompleter.setTemplateCssPath(templateCssPath);
 autocompleter.setIconPath(iconPath);
 autocompleter.setKeyName(keyName);
+autocompleter.setDataFieldName(dataFieldName);
 }
 
 public void setAutoComplete(String autoComplete) {
@@ -161,5 +163,9 @@
 
 public void set

svn commit: r510748 - /struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/autocompleter.ftl

2007-02-22 Thread musachy
Author: musachy
Date: Thu Feb 22 17:20:37 2007
New Revision: 510748

URL: http://svn.apache.org/viewvc?view=rev&rev=510748
Log:
WW-1602: Autocompleter is not rendering label

Added:

struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/autocompleter.ftl

Added: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/autocompleter.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/autocompleter.ftl?view=auto&rev=510748
==
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/autocompleter.ftl
 (added)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/autocompleter.ftl
 Thu Feb 22 17:20:37 2007
@@ -0,0 +1,3 @@
+<#include "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl" />
+<#include 
"/${parameters.templateDir}/${themeProperties.parent}/autocompleter.ftl" />
+<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />




svn commit: r510749 - /struts/struts2/trunk/core/src/main/resources/template/xhtml/autocompleter.ftl

2007-02-22 Thread musachy
Author: musachy
Date: Thu Feb 22 17:21:25 2007
New Revision: 510749

URL: http://svn.apache.org/viewvc?view=rev&rev=510749
Log:
WW-1602: Autocompleter is not rendering label

Added:

struts/struts2/trunk/core/src/main/resources/template/xhtml/autocompleter.ftl
  - copied unchanged from r510748, 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/autocompleter.ftl



svn commit: r510770 - /struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java

2007-02-22 Thread musachy
Author: musachy
Date: Thu Feb 22 18:40:03 2007
New Revision: 510770

URL: http://svn.apache.org/viewvc?view=rev&rev=510770
Log:
WW-1763: autocompleter tag isn´t present in the documentation

Modified:

struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java?view=diff&rev=510770&r1=510769&r2=510770
==
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 Thu Feb 22 18:40:03 2007
@@ -29,9 +29,11 @@
 import com.opensymphony.xwork2.util.ValueStack;
 
 /**
+ * 
  * The autocomplete tag is a combobox that can autocomplete text entered on 
the input box.
  * When used on the "simple" theme, the autocompleter can be used like the 
ComboBox.
  * When used on the "ajax" theme, the list can be retieved from an action. 
+ * 
  * 
  * THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED
  * 
@@ -62,11 +64,11 @@
  * 'showErrorTransportText': whether errors should be displayed (on 
'targets')
  * 'loadOnTextChange' options will be reloaded everytime a character is typed 
on the textbox
  * 'loadMinimumCount' minimum number of characters that will force the content 
to be loaded
- * 'showDownError' show or hide the down arrow button
+ * 'showDownError' show or hide the down arrow button
  * 'searchType' how the search must be performed, options are: "startstring", 
"startword" and "substring"
  * 'keyName' name of the field to which the selected key will be assigned
- * 'iconPath' path of icon used for the dropdown
- * 'templateCssPath' path to css file used to customize Dojo's widget
+ * 'iconPath' path of icon used for the dropdown
+ * 'templateCssPath' path to css file used to customize Dojo's widget
  * 'dataFieldName' name of the field to be used as the list in the returned 
JSON string
  * 'notifyTopics' comma separated list of topics names, that will be 
published. Three parameters are passed:
  * 
@@ -74,7 +76,16 @@
  *  type: 'before' before the request is made, 'valuechanged' when 
selection changes, 'load' when the request succeeds, or 'error' when it 
fails
  *  request: request javascript object, when type='load' or 
type='error'
  * 
+ *
  *
+ *
+ *Autocompleter that gets its list from an action:
+ *
+ *
+ **Autocompleter that uses a list:
+ *
+ *
+ *
  */
 @StrutsTag(name="autocompleter", 
tldTagClass="org.apache.struts2.views.jsp.ui.AutocompleterTag", 
description="Renders a combobox with autocomplete and AJAX capabilities")
 public class Autocompleter extends ComboBox {




svn commit: r510771 - /struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java

2007-02-22 Thread musachy
Author: musachy
Date: Thu Feb 22 18:43:40 2007
New Revision: 510771

URL: http://svn.apache.org/viewvc?view=rev&rev=510771
Log:
WW-1763: autocompleter tag isn´t present in the documentation

Modified:

struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java?view=diff&rev=510771&r1=510770&r2=510771
==
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 Thu Feb 22 18:43:40 2007
@@ -33,8 +33,6 @@
  * The autocomplete tag is a combobox that can autocomplete text entered on 
the input box.
  * When used on the "simple" theme, the autocompleter can be used like the 
ComboBox.
  * When used on the "ajax" theme, the list can be retieved from an action. 
- * 
- * 
  * THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED
  * 
  *  href
@@ -76,8 +74,7 @@
  *  type: 'before' before the request is made, 'valuechanged' when 
selection changes, 'load' when the request succeeds, or 'error' when it 
fails
  *  request: request javascript object, when type='load' or 
type='error'
  * 
- *
- *
+ *
  *
  *Autocompleter that gets its list from an action:
  *




svn commit: r510785 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java

2007-02-22 Thread musachy
Author: musachy
Date: Thu Feb 22 19:05:33 2007
New Revision: 510785

URL: http://svn.apache.org/viewvc?view=rev&rev=510785
Log:
WW-1763: autocompleter tag isn´t present in the documentation

Modified:

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

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java?view=diff&rev=510785&r1=510784&r2=510785
==
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Autocompleter.java
 Thu Feb 22 19:05:33 2007
@@ -29,9 +29,11 @@
 import com.opensymphony.xwork2.util.ValueStack;
 
 /**
+ * 
  * The autocomplete tag is a combobox that can autocomplete text entered on 
the input box.
  * When used on the "simple" theme, the autocompleter can be used like the 
ComboBox.
  * When used on the "ajax" theme, the list can be retieved from an action. 
+ * 
  * 
  * THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED
  * 
@@ -62,11 +64,11 @@
  * 'showErrorTransportText': whether errors should be displayed (on 
'targets')
  * 'loadOnTextChange' options will be reloaded everytime a character is typed 
on the textbox
  * 'loadMinimumCount' minimum number of characters that will force the content 
to be loaded
- * 'showDownError' show or hide the down arrow button
+ * 'showDownError' show or hide the down arrow button
  * 'searchType' how the search must be performed, options are: "startstring", 
"startword" and "substring"
  * 'keyName' name of the field to which the selected key will be assigned
- * 'iconPath' path of icon used for the dropdown
- * 'templateCssPath' path to css file used to customize Dojo's widget
+ * 'iconPath' path of icon used for the dropdown
+ * 'templateCssPath' path to css file used to customize Dojo's widget
  * 'dataFieldName' name of the field to be used as the list in the returned 
JSON string
  * 'notifyTopics' comma separated list of topics names, that will be 
published. Three parameters are passed:
  * 
@@ -74,7 +76,16 @@
  *  type: 'before' before the request is made, 'valuechanged' when 
selection changes, 'load' when the request succeeds, or 'error' when it 
fails
  *  request: request javascript object, when type='load' or 
type='error'
  * 
+ *
  *
+ *
+ *Autocompleter that gets its list from an action:
+ *
+ *
+ **Autocompleter that uses a list:
+ *
+ *
+ *
  */
 @StrutsTag(name="autocompleter", 
tldTagClass="org.apache.struts2.views.jsp.ui.AutocompleterTag", 
description="Renders a combobox with autocomplete and AJAX capabilities")
 public class Autocompleter extends ComboBox {




svn commit: r510835 - in /struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands: AbstractCreateAction.java servlet/CreateAction.java

2007-02-22 Thread pbenedict
Author: pbenedict
Date: Thu Feb 22 21:26:01 2007
New Revision: 510835

URL: http://svn.apache.org/viewvc?view=rev&rev=510835
Log:
STR-3008: Added createAction method

Modified:

struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java

struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java

Modified: 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java?view=diff&rev=510835&r1=510834&r2=510835
==
--- 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
 (original)
+++ 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
 Thu Feb 22 21:26:01 2007
@@ -117,4 +117,18 @@
 protected abstract Action getAction(ActionContext context, String type,
 ActionConfig actionConfig)
 throws Exception;
+
+/**
+ * Invoked by getAction when the Action 
+ * actually has to be created. If the instance is already created and 
+ * cached, this method will not be called. 
+ * 
+ * @param context  The Context for this request
+ * @param type Name of class to instantiate
+ * @return Instantiated Action class
+ * @throws Exception if there are any problems instantiating the Action
+ *   class.
+ * @since Struts 1.3.7
+ */
+protected abstract Action createAction(ActionContext context, String type);
 }

Modified: 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java?view=diff&rev=510835&r1=510834&r2=510835
==
--- 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java
 (original)
+++ 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java
 Thu Feb 22 21:26:01 2007
@@ -65,8 +65,7 @@
 action = (Action) actions.get(type);
 
 if (action == null) {
-log.info("Initialize action of type: " + type);
-action = (Action) ClassUtils.getApplicationInstance(type);
+action = createAction(context, type);
 actions.put(type, action);
 }
 }
@@ -79,5 +78,10 @@
 }
 
 return (action);
+}
+
+protected Action createAction(ActionContext context, String type) throws 
Exception {
+log.info("Initialize action of type: " + type);
+return (Action) ClassUtils.getApplicationInstance(type);
 }
 }




svn commit: r510837 - /struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java

2007-02-22 Thread pbenedict
Author: pbenedict
Date: Thu Feb 22 21:29:38 2007
New Revision: 510837

URL: http://svn.apache.org/viewvc?view=rev&rev=510837
Log:
STR-3008: Added missing Exception declaration

Modified:

struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java

Modified: 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java?view=diff&rev=510837&r1=510836&r2=510837
==
--- 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
 (original)
+++ 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
 Thu Feb 22 21:29:38 2007
@@ -130,5 +130,6 @@
  *   class.
  * @since Struts 1.3.7
  */
-protected abstract Action createAction(ActionContext context, String type);
+protected abstract Action createAction(ActionContext context, String type)
+throws Exception;
 }




svn commit: r510838 - /struts/struts1/branches/STRUTS_1_3_BRANCH/src/site/xdoc/userGuide/release-notes.xml

2007-02-22 Thread pbenedict
Author: pbenedict
Date: Thu Feb 22 21:40:19 2007
New Revision: 510838

URL: http://svn.apache.org/viewvc?view=rev&rev=510838
Log:
STR-3008: Added createAction method

Modified:

struts/struts1/branches/STRUTS_1_3_BRANCH/src/site/xdoc/userGuide/release-notes.xml

Modified: 
struts/struts1/branches/STRUTS_1_3_BRANCH/src/site/xdoc/userGuide/release-notes.xml
URL: 
http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_3_BRANCH/src/site/xdoc/userGuide/release-notes.xml?view=diff&rev=510838&r1=510837&r2=510838
==
--- 
struts/struts1/branches/STRUTS_1_3_BRANCH/src/site/xdoc/userGuide/release-notes.xml
 (original)
+++ 
struts/struts1/branches/STRUTS_1_3_BRANCH/src/site/xdoc/userGuide/release-notes.xml
 Thu Feb 22 21:40:19 2007
@@ -70,7 +70,12 @@
 [STR-2996] 
- ImportAttributeTag throws a NPE when ignore=true and the attribute value is 
unavailable
 [STR-2997] 
- [validator] validwhen strings don't work right
 [STR-2998] 
- LinkTag renders the link twice
-
+
+
+Improvement
+
+[STR-3008] 
- AbstractCreateAction: Refactor creation into separate method
+
 
 
 




svn commit: r510851 - in /struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands: AbstractCreateAction.java servlet/CreateAction.java

2007-02-22 Thread pbenedict
Author: pbenedict
Date: Thu Feb 22 23:05:18 2007
New Revision: 510851

URL: http://svn.apache.org/viewvc?view=rev&rev=510851
Log:
STR-3008: Make createAction() exclusive to CreateAction because it is 
sufficient for the base class to have getAction alone

Modified:

struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java

struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java

Modified: 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java?view=diff&rev=510851&r1=510850&r2=510851
==
--- 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
 (original)
+++ 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/AbstractCreateAction.java
 Thu Feb 22 23:05:18 2007
@@ -117,19 +117,4 @@
 protected abstract Action getAction(ActionContext context, String type,
 ActionConfig actionConfig)
 throws Exception;
-
-/**
- * Invoked by getAction when the Action 
- * actually has to be created. If the instance is already created and 
- * cached, this method will not be called. 
- * 
- * @param context  The Context for this request
- * @param type Name of class to instantiate
- * @return Instantiated Action class
- * @throws Exception if there are any problems instantiating the Action
- *   class.
- * @since Struts 1.3.7
- */
-protected abstract Action createAction(ActionContext context, String type)
-throws Exception;
 }

Modified: 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java?view=diff&rev=510851&r1=510850&r2=510851
==
--- 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java
 (original)
+++ 
struts/struts1/branches/STRUTS_1_3_BRANCH/core/src/main/java/org/apache/struts/chain/commands/servlet/CreateAction.java
 Thu Feb 22 23:05:18 2007
@@ -80,6 +80,19 @@
 return (action);
 }
 
+
+/**
+ * Invoked by getAction when the Action 
+ * actually has to be created. If the instance is already created and 
+ * cached, this method will not be called. 
+ * 
+ * @param context  The Context for this request
+ * @param type Name of class to instantiate
+ * @return Instantiated Action class
+ * @throws Exception if there are any problems instantiating the Action
+ *   class.
+ * @since Struts 1.3.7
+ */
 protected Action createAction(ActionContext context, String type) throws 
Exception {
 log.info("Initialize action of type: " + type);
 return (Action) ClassUtils.getApplicationInstance(type);