[CONF] Confluence Changes in the last 24 hours

2006-11-08 Thread confluence
-
This is a daily summary of all recent changes in Confluence.

-
Updated Spaces:
-

Felix (FELIX) http://cwiki.apache.org/confluence/display/FELIX
|
|-Pages Added or Edited in This Space
 |-- Bundle Plugin for Maven (BND) was last edited by [EMAIL PROTECTED] (11:45 
PM).
 |   
http://cwiki.apache.org/confluence/display/FELIX/Bundle+Plugin+for+Maven+%28BND%29
 |-- Apache Felix Commons was last edited by [EMAIL PROTECTED] (09:41 PM).
 |   http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Commons
 |-- November 2006 Board Report was created by [EMAIL PROTECTED] (08:48 PM).
 |   http://cwiki.apache.org/confluence/display/FELIX/November+2006+Board+Report

Apache Qpid (qpid) http://cwiki.apache.org/confluence/display/qpid
|
|-Pages Added or Edited in This Space
 |-- Qpid Java Documentation was last edited by ritchiem (09:11 AM).
 |   http://cwiki.apache.org/confluence/display/qpid/Qpid+Java+Documentation
 |-- Java Unit Tests with InVM Broker was created by ritchiem (09:01 AM).
 |   
http://cwiki.apache.org/confluence/display/qpid/Java+Unit+Tests+with+InVM+Broker

Apache Geronimo v1.1 (GMOxDOC11) 
http://cwiki.apache.org/confluence/display/GMOxDOC11
|
|-Pages Added or Edited in This Space
 |-- JBoss to Geronimo - EJB-Session Beans Migration was last edited by [EMAIL 
PROTECTED] (02:36 AM).
 |   
http://cwiki.apache.org/confluence/display/GMOxDOC11/JBoss+to+Geronimo+-+EJB-Session+Beans+Migration

Apache Struts 2 Documentation (WW) http://cwiki.apache.org/confluence/display/WW
|
|-Pages Added or Edited in This Space
 |-- Release Notes 2.0.0 was last edited by husted (07:03 PM).
 |   http://cwiki.apache.org/confluence/display/WW/Release+Notes+2.0.0
 |-- Debugging was created by husted (06:56 PM).
 |   http://cwiki.apache.org/confluence/display/WW/Debugging
 |-- Core Developers Guide was last edited by husted (06:58 PM).
 |   http://cwiki.apache.org/confluence/display/WW/Core+Developers+Guide
 |-- DebuggingInterceptor was created by husted (06:26 PM).
 |   http://cwiki.apache.org/confluence/display/WW/DebuggingInterceptor
 |-- Interceptors was last edited by husted (06:57 PM).
 |   http://cwiki.apache.org/confluence/display/WW/Interceptors
 |-- Profiling was last edited by husted (06:30 PM).
 |   http://cwiki.apache.org/confluence/display/WW/Profiling
 |-- Profiling Interceptor was last edited by husted (06:27 PM).
 |   http://cwiki.apache.org/confluence/display/WW/Profiling+Interceptor

Apache Cayenne Documentation (CAYDOC) 
http://cwiki.apache.org/confluence/display/CAYDOC
|
|-Pages Added or Edited in This Space
 |-- Generate Primary Key Support was last edited by blacknext (05:40 PM).
 |   
http://cwiki.apache.org/confluence/display/CAYDOC/Generate+Primary+Key+Support

Apache Ode (ODExSITE) http://cwiki.apache.org/confluence/display/ODExSITE
|
|-Pages Added or Edited in This Space
 |-- ODE Execution Events was last edited by mriou (03:34 PM).
 |   http://cwiki.apache.org/confluence/display/ODExSITE/ODE+Execution+Events

Test Space (test) http://cwiki.apache.org/confluence/display/test
|
|-Pages Added or Edited in This Space
 |-- Index was last edited by jefft (08:09 PM).
 |   http://cwiki.apache.org/confluence/display/test/Index

Apache Wicket (WICKET) http://cwiki.apache.org/confluence/display/WICKET
|
|-Pages Added or Edited in This Space
 |-- Obfuscating urls was last edited by gwynevans (12:50 PM).
 |   http://cwiki.apache.org/confluence/display/WICKET/Obfuscating+urls
 |-- Wicket SVN was last edited by gwynevans (12:37 PM).
 |   http://cwiki.apache.org/confluence/display/WICKET/Wicket+SVN


-
CONFLUENCE INFORMATION
This message is automatically generated by Confluence

Unsubscribe or edit your notifications preferences
   http://cwiki.apache.org/confluence/users/viewnotifications.action

If you think it was sent incorrectly contact one of the administrators
   http://cwiki.apache.org/confluence/administrators.action

If you want more information on Confluence, or have a bug to report see
   http://www.atlassian.com/software/confluence




svn commit: r472419 - /struts/sandbox/trunk/tiles/src/site/fml/faq.fml

2006-11-08 Thread apetrelli
Author: apetrelli
Date: Wed Nov  8 00:09:05 2006
New Revision: 472419

URL: http://svn.apache.org/viewvc?view=rev&rev=472419
Log:
Updated FAQ:
- Removed FAQ entry about "type" attribute of  tag, since that 
tag has been removed (splitted).
- Corrected HTML entities for the FAQ entry about "bean" attributes.

Modified:
struts/sandbox/trunk/tiles/src/site/fml/faq.fml

Modified: struts/sandbox/trunk/tiles/src/site/fml/faq.fml
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/src/site/fml/faq.fml?view=diff&rev=472419&r1=472418&r2=472419
==
--- struts/sandbox/trunk/tiles/src/site/fml/faq.fml (original)
+++ struts/sandbox/trunk/tiles/src/site/fml/faq.fml Wed Nov  8 00:09:05 2006
@@ -89,7 +89,7 @@
 The 'beanName', 'beanProperty', and 'beanScope' tag 
attributes
 were removed with no replacement. Use EL instead. For 
example:
 
-
+<tiles:put name="foo" 
value="${foo.bar}"/>
 
 
 
@@ -98,18 +98,6 @@
 
 It has been removed since you can specify the "direct"
 inclusion using type="string"
-
-
-
-Is the insert tag's 'type' attribute required?
-
-
-The "type" attribute should not be required: it is useful 
only to
-distinguish between "definition" and "attribute" in the case 
that we
-have a definition and an attribute with the same name.
-However, we've seen reports of errors if it is not used.
-Please comment on http://issues.apache.org/struts/browse/SB-46";>SB-46
-if you have more information.
 
 
 




[CONF] Apache Struts 2 Documentation: FAQs (page edited)

2006-11-08 Thread confluence










Page Edited :
WW :
FAQs



 
FAQs
has been edited by Ted Husted
(Nov 08, 2006).
 

 
 (View changes)
 

Content:
Adding New FAQs
Each FAQ should be cross-referenced from a relevant page in one of the guides. (If there is not a relevant page in the guide, then we probably need to create one!) Each question should be a new page. Answers should be concise and focussed. If an answer seems long, or seems like it could relate to more than one section, then the question might be addressing more than one concern. 

FAQs can also be "mini-HOWTOs". As long as the question and answer are focused on a single concern, length is not an issue.
For more questions and answers, visit "The Vault".


General


	Where do we get the latest version the framework?
	What are some of the framework's best features?
	Can you suggest an elevator pitch?



HOWTO


	How can we display dynamic or static images that can be provided as an array of bytes?
	How can we test applications?
	How can we test Actions?
	How do we upload files?
	How can we force the Action Mappings (struts.xml) to reload?



Configuration


	Can we break up a large struts.xml file into smaller pieces?



Accessing Resources


	How do we get access to the session?
	How can we access the HttpServletRequest?
	How can we access the HttpServletResponse?
	How can we access request parameters passed into an Action?
	How do we access static parameters from an Action?
	Can we access an Action's Result?
	How do I obtain security details (JAAS)?



Per-Page Settings


	Can I change theme on a per-page basis?
	Can I change templateDir on a per-page basis?
	Can I change templateSuffix on a per-page basis?



Interceptors


	Why isn't our Prepare interceptor being executed?
	How do we configure an Interceptor to be used with every Action?



Validation


	How do I use messages from within the validator
	How can I fix the "Attribute 'short-circuit'" error message
	How do I populate my action properties upon validation failure
	How do I unit test my action's validation logic
	Why does WW ignore my message when its enclosed in CDATA



Localization


	How do we change locales
	How do I set a global resource bundle
	How do I decouple XWork LocalizedTextUtil global resource bundle loading from serlvets
	How do I add I18N to a UI tag, like the textfield tag
	Can I add I18N outside the Action's context
	How to support UTF-8 URIEncoding with Tomcat
	How do I enable encoding in my forms
	How to escape special chars in resource bundles



Type Conversion


	How do I change the invalid input error message for a particular field
	Why is the application logging a warning that the Compound Root cannot find a particular Object with a particular property



Value Stack


	What are the default variables in the value stack



Tags


	Why do the form tags put table tags around controls?
	How can I put a String literal in a _javascript_ call, for instance in an onChange attribute?
	Why won't the 'if' tag evaluate a one char string?
	Why does FreeMarker complain that there's an error in my user-directive when I used JSP Tag?
	Can an action tag run another method apart from the default execute method?
	Why didn't my action tag get executed when I have validation errors?
	Why are request parameters appended to our hyperlinks?
	Why doesn't the if tag evaluate test="#parameters.someParam ... " properly



POJOs


	Should the framework call getModel multiple times as a page renders



Velocity


	I'm trying to run the example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine



Ajax/Dojo


	IE showing a prompt saying "This page contains both secure and nonsecure items" when using dojo



Extensions


	Does the framework integrate with Hibernate
	Can we use JSTL with the framework
	Can we use JUnit with the framework
	How can we schedule Quartz jobs
	Can we use Acegi Security with the framework



Portlet Support(JSR168)


	Which portal servers are supported
	How to build the portlet WAR for a specific portal server



Migrating 


	Why is my action unavailable?





Other FAQs


	Apache Struts FAQs



Next: Cookbook











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: How do we configure an Interceptor to be used with every Action (page created)

2006-11-08 Thread confluence










Page Created :
WW :
How do we configure an Interceptor to be used with every Action



 
How do we configure an Interceptor to be used with every Action
has been created by Ted Husted
(Nov 08, 2006).
 

Content:
Any given action mapping can create an "ad-hoc" interceptor stack


"login"  class="tutorial.Login">

   "timer"/>
   "logger"/>
   "default-stack"/>

"input">login.jsp
"redirect-action">/secure/home
  


Or, we can create our own named stacks and even declare a new default interceptor stack for a package



  
   "myStack">
  "timer"/>
  "logger"/>
"default-stack"/>
   
  

 

 "login"  class="tutorial.Login">
"input">login.jsp
"redirect-action">/secure/home
  

package>


Packages can extend other packages. If all the other packages in your application extend "default", then they will all inherit the new default interceptor.

 See also Configuring Interceptors, and the layout of the struts-default package. The struts-default package is automatically included into the base configuration. Anything we do in the struts-default package, you can do in your own packages.












Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: FAQs (page edited)

2006-11-08 Thread confluence










Page Edited :
WW :
FAQs



 
FAQs
has been edited by Ted Husted
(Nov 08, 2006).
 

 
 (View changes)
 

Content:
Adding New FAQs
Each FAQ should be cross-referenced from a relevant page in one of the guides. (If there is not a relevant page in the guide, then we probably need to create one!) Each question should be a new page. Answers should be concise and focussed. If an answer seems long, or seems like it could relate to more than one section, then the question might be addressing more than one concern. 

FAQs can also be "mini-HOWTOs". As long as the question and answer are focused on a single concern, length is not an issue.
For more questions and answers, visit "The Vault".


General


	Where do we get the latest version the framework?
	What are some of the framework's best features?
	Can you suggest an elevator pitch?



HOWTO


	How can we display dynamic or static images that can be provided as an array of bytes?
	How can we test applications?
	How can we test Actions?
	How do we upload files?
	How can we force the Action Mappings (struts.xml) to reload?



Configuration


	Can we break up a large struts.xml file into smaller pieces?



Accessing Resources


	How do we get access to the session?
	How can we access the HttpServletRequest?
	How can we access the HttpServletResponse?
	How can we access request parameters passed into an Action?
	How do we access static parameters from an Action?
	Can we access an Action's Result?
	How do I obtain security details (JAAS)?



Per-Page Settings


	Can I change theme on a per-page basis?
	Can I change templateDir on a per-page basis?
	Can I change templateSuffix on a per-page basis?



Interceptors


	Why isn't our Prepare interceptor being executed?
	How do we configure an Interceptor to be used with every Action?



Validation


	Why is my action returning "input" when the form is filled out correctly?
	How do I use messages from within the validator
	How can I fix the "Attribute 'short-circuit'" error message
	How do I populate my action properties upon validation failure
	How do I unit test my action's validation logic
	Why does WW ignore my message when its enclosed in CDATA



Localization


	How do we change locales
	How do I set a global resource bundle
	How do I decouple XWork LocalizedTextUtil global resource bundle loading from serlvets
	How do I add I18N to a UI tag, like the textfield tag
	Can I add I18N outside the Action's context
	How to support UTF-8 URIEncoding with Tomcat
	How do I enable encoding in my forms
	How to escape special chars in resource bundles



Type Conversion


	How do I change the invalid input error message for a particular field
	Why is the application logging a warning that the Compound Root cannot find a particular Object with a particular property



Value Stack


	What are the default variables in the value stack



Tags


	Why do the form tags put table tags around controls?
	How can I put a String literal in a _javascript_ call, for instance in an onChange attribute?
	Why won't the 'if' tag evaluate a one char string?
	Why does FreeMarker complain that there's an error in my user-directive when I used JSP Tag?
	Can an action tag run another method apart from the default execute method?
	Why didn't my action tag get executed when I have validation errors?
	Why are request parameters appended to our hyperlinks?
	Why doesn't the if tag evaluate test="#parameters.someParam ... " properly



POJOs


	Should the framework call getModel multiple times as a page renders



Velocity


	I'm trying to run the example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine



Ajax/Dojo


	IE showing a prompt saying "This page contains both secure and nonsecure items" when using dojo



Extensions


	Does the framework integrate with Hibernate
	Can we use JSTL with the framework
	Can we use JUnit with the framework
	How can we schedule Quartz jobs
	Can we use Acegi Security with the framework



Portlet Support(JSR168)


	Which portal servers are supported
	How to build the portlet WAR for a specific portal server



Migrating 


	Why is my action unavailable?





Other FAQs


	Apache Struts FAQs



Next: Cookbook











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: Why is my action returning "input" when the form is filled out correctly (page created)

2006-11-08 Thread confluence










Page Created :
WW :
Why is my action returning "input" when the form is filled out correctly



 
Why is my action returning "input" when the form is filled out correctly
has been created by Ted Husted
(Nov 08, 2006).
 

Content:
The token "input" is returned when validation fails, and the Action class is never invoked. If the validation messages are not displaying, the most likely cause is that a property is being validated that is not present on the page (so there is no where to display the message). 

 If the validator is being attached to the Action class, note that a subclass will inherit the validations of its superclass.

 Try submitting the form in debugging mode to see if there are any orphan field validation errors.












Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: FAQs (page edited)

2006-11-08 Thread confluence










Page Edited :
WW :
FAQs



 
FAQs
has been edited by Ted Husted
(Nov 08, 2006).
 

 
 (View changes)
 

Content:
Adding New FAQs
Each FAQ should be cross-referenced from a relevant page in one of the guides. (If there is not a relevant page in the guide, then we probably need to create one!) Each question should be a new page. Answers should be concise and focussed. If an answer seems long, or seems like it could relate to more than one section, then the question might be addressing more than one concern. 

FAQs can also be "mini-HOWTOs". As long as the question and answer are focused on a single concern, length is not an issue.
For more questions and answers, visit "The Vault".


General


	Where do we get the latest version the framework?
	What are some of the framework's best features?
	Can you suggest an elevator pitch?



HOWTO


	How can we display dynamic or static images that can be provided as an array of bytes?
	How can we test applications?
	How can we test Actions?
	How do we upload files?
	How can we force the Action Mappings (struts.xml) to reload?



Configuration


	Can we break up a large struts.xml file into smaller pieces?



Accessing Resources


	How do we get access to the session?
	How can we access the HttpServletRequest?
	How can we access the HttpServletResponse?
	How can we access request parameters passed into an Action?
	How do we access static parameters from an Action?
	Can we access an Action's Result?
	How do I obtain security details (JAAS)?



Per-Page Settings


	Can I change theme on a per-page basis?
	Can I change templateDir on a per-page basis?
	Can I change templateSuffix on a per-page basis?



Interceptors


	Why isn't our Prepare interceptor being executed?
	How do we configure an Interceptor to be used with every Action?



Validation


	Why is my action returning "input" when the form is filled out correctly?
	How do I use messages from within the validator
	How can I fix the "Attribute 'short-circuit'" error message
	How do I populate my action properties upon validation failure
	How do I unit test my action's validation logic
	Why does WW ignore my message when its enclosed in CDATA



Localization


	How do we change locales
	How do I set a global resource bundle
	How do I decouple XWork LocalizedTextUtil global resource bundle loading from serlvets
	How do I add I18N to a UI tag, like the textfield tag
	Can I add I18N outside the Action's context
	How to support UTF-8 URIEncoding with Tomcat
	How do I enable encoding in my forms
	How to escape special chars in resource bundles



Type Conversion


	How do I change the invalid input error message for a particular field
	Why is the application logging a warning that the Compound Root cannot find a particular Object with a particular property



Value Stack


	What are the default variables in the value stack



Tags


	Why do the form tags put table tags around controls?
	How can I put a String literal in a _javascript_ call, for instance in an onChange attribute?
	Why won't the 'if' tag evaluate a one char string?
	Why does FreeMarker complain that there's an error in my user-directive when I used JSP Tag?
	Can an action tag run another method apart from the default execute method?
	Why didn't my action tag get executed when I have validation errors?
	Why are request parameters appended to our hyperlinks?
	Why doesn't the if tag evaluate test="#parameters.someParam ... " properly



POJOs


	Should the framework call getModel multiple times as a page renders



Spring 


	How can we create our Action objects from the Spring configuration?
	Why would we want to create Action objecs from the Spring configuration?



Velocity


	I'm trying to run the example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine



Ajax/Dojo


	IE showing a prompt saying "This page contains both secure and nonsecure items" when using dojo



Extensions


	Does the framework integrate with Hibernate
	Can we use JSTL with the framework
	Can we use JUnit with the framework
	How can we schedule Quartz jobs
	Can we use Acegi Security with the framework



Portlet Support(JSR168)


	Which portal servers are supported
	How to build the portlet WAR for a specific portal server



Migrating 


	Why is my action unavailable?





Other FAQs


	Apache Struts FAQs



Next: Cookbook











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: How can we create our Action objects from the Spring configuration (page created)

2006-11-08 Thread confluence










Page Created :
WW :
How can we create our Action objects from the Spring configuration



 
How can we create our Action objects from the Spring configuration
has been created by Ted Husted
(Nov 08, 2006).
 

Content:

	Configure the bean in the Spring configuration file (usually applicationContext.xml)
	Change the "class" attribute in the struts.xml action mapping to use the bean name defined in Spring instead of the actual class name.



 For details, see Initializing Actions from Spring. 











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: Why would we want to create Action objecs from the Spring configuration (page created)

2006-11-08 Thread confluence










Page Created :
WW :
Why would we want to create Action objecs from the Spring configuration



 
Why would we want to create Action objecs from the Spring configuration
has been created by Ted Husted
(Nov 08, 2006).
 

Content:
If an application makes extensive use of Spring, it can be convenient to manage all the classes in one location – the Spring configuration. Remember that Actions do not need to implement a special interface. Actions can also be POJOs that are not tied to
Struts or the web layer in any way.

We might also want to apply more complex AOP or Spring-enabled technologies, such as Acegi, to our Action objects. 

 For more, see Initializing Actions from Spring.











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: Why would we want to create Action objects from the Spring configuration (page edited)

2006-11-08 Thread confluence










Page Edited :
WW :
Why would we want to create Action objects from the Spring configuration



 
Why would we want to create Action objects from the Spring configuration
has been edited by Ted Husted
(Nov 08, 2006).
 

 
 (View changes)
 

Content:
If an application makes extensive use of Spring, it can be convenient to manage all the classes in one location – the Spring configuration. Remember that Actions do not need to implement a special interface. Actions can also be POJOs that are not tied to
Struts or the web layer in any way.

We might also want to apply more complex AOP or Spring-enabled technologies, such as Acegi, to our Action objects. 

 For more, see Initializing Actions from Spring.











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: How can we create our Action objects from the Spring configuration (page edited)

2006-11-08 Thread confluence










Page Edited :
WW :
How can we create our Action objects from the Spring configuration



 
How can we create our Action objects from the Spring configuration
has been edited by Ted Husted
(Nov 08, 2006).
 

 
 (View changes)
 

Content:
Each time


	Configure the bean in the Spring configuration file (usually applicationContext.xml)
	Change the "class" attribute in the struts.xml action mapping to use the bean name defined in Spring instead of the actual class name.



One time 


	Add struts.objectFactory = spring to the struts.properties.
	Add the Spring listener to the web.xml. 

org.springframework.web.context.ContextLoaderListener


	Add the Spring configiuration file to the WEB-INF folder. 
"1.0" encoding="UTF-8"?>
"-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
default-autowire="autodetect">
"personManager" class="com.acme.PersonManager"/>
...





 For details, see Initializing Actions from Spring. 











Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Struts 2 Documentation: How can we change which methods are excused from validation (page created)

2006-11-08 Thread confluence










Page Created :
WW :
How can we change which methods are excused from validation



 
How can we change which methods are excused from validation
has been created by Ted Husted
(Nov 08, 2006).
 

Content:
By default, the methods input, back, cancel, and browse are excluded from validation. These method names are provided as a parameter to the validation interceptor as configured in the struts-default package. To change the excluded methods, we just need to change the parameter. 



"defaultStack">
"validation.excludeMethods">method1,method2














Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








svn commit: r472491 [4/4] - in /struts/sandbox/trunk/tiles/tiles-documentation/src/webapp: ./ WEB-INF/ common/ doc/ doc/portal/ examples/ examples/rssFeed/ examples/tiles/ examples/tiles/portal/ layou

2006-11-08 Thread apetrelli
Modified: 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/overloadDefinitionParameters.jsp
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/overloadDefinitionParameters.jsp?view=diff&rev=472491&r1=472490&r2=472491
==
--- 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/overloadDefinitionParameters.jsp
 (original)
+++ 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/overloadDefinitionParameters.jsp
 Wed Nov  8 05:45:48 2006
@@ -1,3 +1,24 @@
+<%--
+/*
+ * 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.
+ *
+ */
+--%>
 <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
 
 

Modified: 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert1.jsp
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert1.jsp?view=diff&rev=472491&r1=472490&r2=472491
==
--- 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert1.jsp
 (original)
+++ 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert1.jsp
 Wed Nov  8 05:45:48 2006
@@ -1 +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.
+ *
+ */
+--%>
 

Modified: 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert2.jsp
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert2.jsp?view=diff&rev=472491&r1=472490&r2=472491
==
--- 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert2.jsp
 (original)
+++ 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert2.jsp
 Wed Nov  8 05:45:48 2006
@@ -1,2 +1,23 @@
+<%--
+/*
+ * 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.
+ *
+ */
+--%>
 

Modified: 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert3.jsp
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert3.jsp?view=diff&rev=472491&r1=472490&r2=472491
==
--- 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert3.jsp
 (original)
+++ 
struts/sandbox/trunk/tiles/tiles-documentation/src/webapp/tutorial/portal/advert3.jsp
 Wed Nov  8 05:45:48 2006
@@ -1 +1,22 @@
+<%--
+/*
+ * Licensed to the Apache Software Foundati

svn commit: r472519 - /struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs

2006-11-08 Thread husted
Author: husted
Date: Wed Nov  8 07:31:08 2006
New Revision: 472519

URL: http://svn.apache.org/viewvc?view=rev&rev=472519
Log:
Add AllowCustomPaging parameter to make changing the default easier.

Modified:
struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs

Modified: struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs?view=diff&rev=472519&r1=472518&r2=472519
==
--- struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs Wed Nov  8 
07:31:08 2006
@@ -43,6 +43,12 @@
return criteria;
}
 
+   protected IDictionary list_Criteria_NewPageIndex(IDictionary 
criteria, int pageIndex, bool allowCustomPaging)
+   {
+   Grid.AllowCustomPaging = allowCustomPaging;
+   return list_Criteria_NewPageIndex(criteria, pageIndex);
+   }
+
/// 
/// If AllowCustomPage is set, 
/// calculate new List and Offset, using the list_Context.
@@ -56,7 +62,7 @@
protected IDictionary list_Criteria_NewPageIndex(int pageIndex)
{
IDictionary criteria = list_Criteria;
-   return list_Criteria_NewPageIndex(criteria, pageIndex);
+   return list_Criteria_NewPageIndex(criteria, pageIndex, 
AllowCustomPaging);
}
 
/// 
@@ -263,7 +269,7 @@
set { _HasEditColumn = value; }
}
 
-   private bool _AllowCustomPaging = false;
+   private bool _AllowCustomPaging = true;
 
public virtual bool AllowCustomPaging
{
@@ -561,7 +567,7 @@
 
if ((Grid.AllowCustomPaging) && (criteria == null))
{
-   list_Criteria_NewPageIndex(criteria, 0);
+   list_Criteria_NewPageIndex(criteria, 0, true);
HasCriteria = true;
}
 
@@ -602,7 +608,7 @@
public virtual bool Open(IDictionary criteria)
{
Page_Reset();
-   list_Criteria_NewPageIndex(criteria, 0);
+   list_Criteria_NewPageIndex(criteria, 0, 
AllowCustomPaging);
return Open();
}
 
@@ -879,6 +885,7 @@
ListPageIndexChanged_Raise(sender, e.NewPageIndex, 
grid.PageSize, count);
list_Refresh();
}
+
 
#endregion
 




[CONF] Apache Struts 2 Documentation: Ready, Set, Go! (page edited)

2006-11-08 Thread confluence










Page Edited :
WW :
Ready, Set, Go!



 
Ready, Set, Go!
has been edited by Wendy Smoak
(Nov 08, 2006).
 

  Change summary:
  fixed repo URL

 
 (View changes)
 

Content:
The Bootstrap tutorial walks through installing the framework and creating a simple application.

Be forewarned that the framework is geared toward professional developers. To create non-trivial applications, a working knowledge of several key technologies is required.


	Java
	Filters, JSP, and Tag Libraries
	JavaBeans
	HTML and HTTP
	Web Containers (such as Tomcat)
	XML



 For more about supporting technologies, see the Key Technologies Primer.

In the Ready, Set, Go! lesson, we download the framework and get started on an application of our own.

Download the Distribution

A distribution can be downloaded from the Apache Struts website. The full distribution contains the struts2-core.jar file and related dependencies, example applications, a copy of the documentation in HTML format, and the complete source code.

To compile it yourself, refer to Building the Framework from Source.

Our First Application

To get started with a new application, we can use the blank template, run the Maven archetype, or just setup a web infrastructure from scratch.

Using the Blank Application

The blank web application in the distribution's apps directory is meant as a template. We can make a copy of the "blank.war", deploy it to our container, and use the exploded copy as the basis for our application. There is even a simple batch file in the source code directory that we can use to recompile the application in place. 

Run the Maven Archetype

For those of us using Maven as a build system, we can use the Maven Archetype to create a new application.


mvn archetype:create -DgroupId=tutorial \
   -DartifactId=tutorial \
   -DarchetypeGroupId=org.apache.struts \
   -DarchetypeArtifactId=struts2-archetype-starter \
   -DarchetypeVersion=2.0.1-SNAPSHOT \
   -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository

The archetype command creates an application template. For more information, see Struts Maven Archetype

Setting up from scratch

If for some reason the blank template or archetype doesn't work out, it's not so hard to setup a Struts 2 application from scratch. For details, see Simple Setup.  



 Next 
 Onward to Hello World 


 Prev 
 Return to Bootstrap 













Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








svn commit: r472728 - in /struts/struts1/trunk: apps/examples/src/main/webapp/WEB-INF/validator/struts-config-bundles.xml core/src/main/java/org/apache/struts/config/FormBeanConfig.java core/src/main/

2006-11-08 Thread niallp
Author: niallp
Date: Wed Nov  8 17:10:58 2006
New Revision: 472728

URL: http://svn.apache.org/viewvc?view=rev&rev=472728
Log:
Fix for STR-2972 - LazyValidatorForm cannot be saved in the session - reported 
by Stuart Goldberg.
(also switched the validator "bundles" example to use LazyValidtorForm in 
session scope to be able to test)

Modified:

struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/validator/struts-config-bundles.xml

struts/struts1/trunk/core/src/main/java/org/apache/struts/config/FormBeanConfig.java

struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/BeanValidatorForm.java

Modified: 
struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/validator/struts-config-bundles.xml
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/validator/struts-config-bundles.xml?view=diff&rev=472728&r1=472727&r2=472728
==
--- 
struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/validator/struts-config-bundles.xml
 (original)
+++ 
struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/validator/struts-config-bundles.xml
 Wed Nov  8 17:10:58 2006
@@ -7,7 +7,7 @@
   
   
 
-
+
 
 
 
@@ -26,7 +26,7 @@
 http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/config/FormBeanConfig.java?view=diff&rev=472728&r1=472727&r2=472728
==
--- 
struts/struts1/trunk/core/src/main/java/org/apache/struts/config/FormBeanConfig.java
 (original)
+++ 
struts/struts1/trunk/core/src/main/java/org/apache/struts/config/FormBeanConfig.java
 Wed Nov  8 17:10:58 2006
@@ -318,6 +318,10 @@
 dynaClass.setRestricted(isRestricted());
 }
 
+if (form instanceof BeanValidatorForm) {
+((BeanValidatorForm)form).initialize(this);
+}
+
 return form;
 }
 
@@ -379,11 +383,18 @@
 Class formClass = form.getClass();
 
 if (form instanceof BeanValidatorForm) {
-// what we really want is to compare against the
-//  BeanValidatorForm's getInstance()
 BeanValidatorForm beanValidatorForm =
 (BeanValidatorForm) form;
 
+if (beanValidatorForm.getInstance() instanceof 
DynaBean) {
+String formName = 
beanValidatorForm.getStrutsConfigFormName();
+if (getName().equals(formName)) {
+log.debug("Can reuse existing instance 
(BeanValidatorForm)");
+return true;
+} else {
+return false;
+}
+}
 formClass = beanValidatorForm.getInstance().getClass();
 }
 

Modified: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/BeanValidatorForm.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/BeanValidatorForm.java?view=diff&rev=472728&r1=472727&r2=472728
==
--- 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/BeanValidatorForm.java
 (original)
+++ 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/BeanValidatorForm.java
 Wed Nov  8 17:10:58 2006
@@ -27,6 +27,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.struts.action.ActionMapping;
+import org.apache.struts.config.FormBeanConfig;
 
 import javax.servlet.http.HttpServletRequest;
 
@@ -75,6 +76,11 @@
  */
 protected boolean pathValidation = false;
 
+/**
+ * The name used to identify the ActionForm in the struts-config.xml
+ */
+private String strutsConfigFormName;
+
 // --- Constructor --
 
 /**
@@ -108,6 +114,26 @@
 }
 
 // --- Public Methods --
+
+/**
+ * Perform intialization of the ActionForm.
+ * This method is called when the form is created.
+ *
+ * @since Struts 1.3.6
+ */
+public void initialize(FormBeanConfig formBeanConfig) {
+strutsConfigFormName = formBeanConfig.getName();
+}
+
+/**
+ * Return name used to identify the ActionForm in the
+ * struts-config.xml.
+ *
+ * @since Struts 1.3.6
+ */
+public String getStrutsConfigFormName() {
+return strutsConfigFormName;
+}
 
 /**
  * Return the DynaBean that this ActionForm




svn commit: r472736 - /struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java

2006-11-08 Thread niallp
Author: niallp
Date: Wed Nov  8 17:50:58 2006
New Revision: 472736

URL: http://svn.apache.org/viewvc?view=rev&rev=472736
Log:
Fix for STR-2971 - Deprecate old Resources.getActionMessage() method - reported 
by Christopher Schultz

Modified:

struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java

Modified: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java?view=diff&rev=472736&r1=472735&r2=472736
==
--- 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java
 (original)
+++ 
struts/struts1/trunk/core/src/main/java/org/apache/struts/validator/Resources.java
 Wed Nov  8 17:50:58 2006
@@ -329,6 +329,8 @@
  * @param request the servlet request
  * @param va  Validator action
  * @param field   the validator Field
+ * @deprecated Use getActionMessage(Validator, HttpServletRequest,
+ *ValidatorAction, Field) method instead
  */
 public static ActionMessage getActionMessage(HttpServletRequest request,
 ValidatorAction va, Field field) {