Commit Graph

2360 Commits

Author SHA1 Message Date
Phillip Webb
c85b63cce6 Make ConversationContainer.nextId() protected
Increase the visibility of ConversationContainer.nextId() to protected
so subclasses can override.

Issue: SWF-756
2012-11-13 09:43:42 -08:00
Phillip Webb
6f6e06294a Make ConversationManagers easier to subclass
Increased visibility of the following package scope classes:
- ContainedConversation
- ConversationContainer
- JdkConcurrentConversationLock
- NoOpConversationLock

Provided additional hook methods and accessors for subclasses.

Issue: SWF-756
2012-11-12 19:26:45 -08:00
Phillip Webb
e44e65ca24 Polsih
Access member variables via 'this.'
2012-11-12 19:20:31 -08:00
Phillip Webb
5a34fb15b4 Fix package tangle with portlets
Introduce PortletFacesContextFactory that will be used to create the
FacesContext when running in a portlet environment.  This moves logic
from the FacesContextHelper preventing the package tangle that would
otherwise occur.
2012-11-12 17:28:10 -08:00
Phillip Webb
6ff3c57b1b Upgrade to gradle 1.2
Update the wrapper task to gradle 1.2 and automatically add the
appropriate memory options to generated files.
2012-11-12 13:43:33 -08:00
Rossen Stoyanchev
3917dc71a3 Add mapping to "/rfRes/**" for RichFaces resources
Issue: SWF-1473
2012-10-23 19:42:28 -04:00
Rossen Stoyanchev
1418d4ef91 Add 2.4 schemas 2012-10-23 19:42:28 -04:00
Rossen Stoyanchev
ffb8f30204 Avoid releasing FacesContext in PropertyAccessor
Issue: SWF-1558
2012-10-23 19:42:22 -04:00
Phillip Webb
91e8a96c11 Add option to save Web Flow output to MVC flash scope
Output from a flow can now be saved to the flash scope of Spring MVC
when the 'saveOutputToFlashScopeOnRedirect' property of the
FlowHandlerAdapter is 'true'.

For backwards compatibility this is an opt-in feature that must be
configured by the user.

Issues: SWF-1561
2012-10-23 15:27:55 -04:00
Phillip Webb
d066f1f8ad Fixed link error in ref docs
Issues: SWF-1553
2012-07-17 16:40:27 -07:00
Phillip Webb
2ae69cbd7f Update ref docs for JSF and Portlet updates
Issues: SWF-1553
2012-07-12 17:25:04 -04:00
Phillip Webb
2dea6c426a Remove legacy code following JSF 2.0 migration
- Remove JSF 1.2 components including ui package, faces-config.xml
  references and tld files
- Remove AjaxViewRoot class
- Polish JavaDocs

Issues: SWF-1536
2012-06-27 14:07:44 -07:00
Rossen Stoyanchev
73c34611a7 Merge pull reqest #14 from philwebb/SWF-1500
* SWF-1500:
  Modify <faces:resources> to add portlet variant
2012-06-18 19:42:13 -04:00
Phillip Webb
d904786083 Modify <faces:resources> to add portlet variant
The ResourcesBeanDefinitionParser will now automatically register an
additional portlet resource resolver when a portlet environment and
and relevant Spring portlet classes are detected.

Issues: SWF-1500
2012-06-18 19:08:58 -04:00
Phillip Webb
c5471f4403 Ignore eclipse WTP generated META-INF folders 2012-06-14 13:49:28 -07:00
Phillip Webb
4b476c5061 Upgrade Gradle to release 1.0 2012-06-14 10:27:34 -07:00
Phillip Webb
4525278388 Update .gitignore to filter gradle-app.setting 2012-06-14 10:18:43 -07:00
Rossen Stoyanchev
cb86ac8f55 Merge pull request #13 from philwebb/SPR-1550
* SWF-1550:
  Upgrade spring-faces to JSF 2 as a minimum requirement
2012-06-13 19:43:22 -04:00
Phillip Webb
706490c4dc Upgrade spring-faces to JSF 2 as a minimum requirement
* Rework all state handling, removed FlowSerializedView class and save
state as opaque object
* Use FacesWrapper classes instead of custom delegates
* Deprecate isAtLeastJSFXXX() methods and removed all internal use
* Remove all Jsf2XXX versions of classes
* Refactor all calls to deprecated JSF methods
* Removed older VariableResolver and PropertyResolver classes
* Deprecate Jsf2FlowResourceResolver and log warning if used
* Create new FlowELResolver to replace removed VariableResolvers and
PropertyResolvers
* Update faces-config.xml to use newer xsd
* Significantly rework FlowFacesContext to remove the message delegate
and generally improve the code
* Added "provided" dependency to MyFaces and fixed partial state saving
on MyFaces
* Fixed FlowResourceResolver to delegate to both MyFaces or Mojarra
depending on availability
* Add JsfUtils.findFactory method and rework existing code to replace
FactoryFinder calls and casts
* Refactor JsfViewFactory to improve code readability
* Rename FlowViewStateManager and FlowViewResponseStateManager to
FlowStateManager and FlowResponseStateManager
* Ensure ResponseContextHolder is reset after each test
* Update JSF portlet support to function with JSF 2.0

Issue: SWF-1536, SWF-1540, SWF-1550
2012-06-13 19:39:10 -04:00
Chris Beams
7e03970fbf Apply Gradle group id to root project as well 2012-05-26 08:58:50 +03:00
Rossen Stoyanchev
880395376f Update build instructions in README 2012-05-25 17:10:12 -04:00
Rossen Stoyanchev
a770fa3492 Rename a couple of test classes to match convention 2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
29445b6a73 Add Eclipse import script based on Gradle build 2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
4146871862 Add spring-js-resources to Gradle build 2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
50a1cf1def Add reference docs tasks to Gradle build
- Move spring-webflow-reference to src/reference
- Upgrade to Docbook 5
- Apply docbook plugin
- Add tasks for generating distribution zip files
2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
4e81930b72 Add Gradle build
- Add gradle build script
- Remove spring-build/
- Remove build-spring-webflow/
- Remove ivy.xml, pom.xml, template.mf
- Remove eclipse  metadata
- Remove RichFacesAjaxHandler.java
- Create src/dist and add changelog.txt, readme.txt

Dependency changes:
- EBR dependency -> Maven-central dependencies
- el-api 1.0 -> 2.2.0
- ognl 2.6.9 -> 2.6.11
- org.jboss.el -> tomcat-jasper-el 7.0.27
2012-05-25 16:54:15 -04:00
Rossen Stoyanchev
b4847ef49b Remove spring-webflow-samples directory
The new home for the samples will be:
https://github.com/SpringSource/spring-webflow-samples
2012-05-25 16:54:15 -04:00
Phillip Webb
bcb5a8d2a7 Revert use of putAll for JSF spec compliance
Issues: SWF-1532
2012-04-12 17:48:49 -07:00
Phil Webb
93912002fa Merge pull request #7 from philwebb/SWF-1532-3
Deprecate CompositeIterator in favor Spring core.
    
Deprecate existing class and refactor internal code to use the org.spring.util version that 
has been available since Spring 3.0
    
Issues: SWF-1532
2012-04-12 09:08:24 -07:00
Phillip Webb
b7342dbc20 Deprecate CompositeIterator in favor Spring core.
Deprecate existing class and refactor internal code to use the org.spring.util version that 
has been available since Spring 3.0

Issues: SWF-1532
2012-04-12 09:05:12 -07:00
Rossen Stoyanchev
22289e4bf3 Polish
Issues: SWF-1532
2012-04-06 10:36:49 -04:00
Phillip Webb
54a300e009 Change signatures to make use of Java 5 varargs
Issues: SWF-1532
2012-04-05 16:23:38 -07:00
Phillip Webb
53384adca9 Update dates in copyright notice to 2004-2012
Issues: SWF-1532
2012-04-05 16:02:01 -07:00
Phillip Webb
34f4837ebd Replace use of Iterator with Java 5 foreach loops
Issues: SWF-1532
2012-04-05 15:52:09 -07:00
Phillip Webb
22b018e95a Make use of Java 5 auto boxing
Reviewed and replaced when possible:
- new Integer
- intValue()
- new Boolean
- booleanValue()
- Boolean.TRUE
- Boolean.FALSE
- new Long
- longValue()

Issues: SWF-1532
2012-04-05 14:07:58 -07:00
Phillip Webb
d3ff99c239 Remove backport concurrency code
Backport concurrency code is no longer needed as JDK 1.5 is now a minimum requirement.  Removing JdkBackportConcurrentConversationLock has also 
removed the need for the package scoped ConversationLockFactory interface, 
this has been replaced with a factory method in
SessionBindingConversationManager.

Issues: SWF-1532
2012-04-05 12:24:12 -07:00
Phillip Webb
ca20e95b98 Remove all calls to JdkVersion
Java 5 is now a minimum requirement of Web Flow

Issues: SWF-1532
2012-04-05 11:02:38 -07:00
Phillip Webb
58936414e4 Replace StringBuffe with StringBuilder
Issues: SWF-1532
2012-04-05 10:48:49 -07:00
Phillip Webb
3f1c40188c Update dates in copyright notice to 2004-2012
Issues: SWF-1532
2012-04-05 10:39:26 -07:00
Phil Webb
4d008f3f09 Refactor code to use Java 5 features
- Apply and use Generics
- Remove JdkVersion.isAtLeastJava15() conditionals
- Replace iterator loops with foreach syntax
- Switch on warning in eclipse

Issues: SWF-1532
2012-03-29 21:02:07 -07:00
Rossen Stoyanchev
619249b52b Merge branch '2.3.x' 2012-03-27 18:02:45 -04:00
Rossen Stoyanchev
bca605d24a Spring Web Flow 2.3.1 release 2012-03-27 15:59:02 -04:00
Rossen Stoyanchev
ce8a12ad40 Update repository information in docs 2012-03-27 14:09:51 -04:00
Rossen Stoyanchev
dddcf7a258 Upgrade to Spring 3.1.1 2012-03-26 18:20:09 -04:00
Rossen Stoyanchev
8aec740bd8 Updates to readme, javadoc, and sample poms.
Issues: SWF-1507
2012-03-26 16:27:53 -04:00
Rossen Stoyanchev
b82884aff2 Correct spring-binding/.classpath to use IVY_CACHE 2012-03-26 12:36:24 -04:00
Rossen Stoyanchev
3b1af34482 Check request param to recognize JSF 2 Ajax requests
Previously we checked the "Faces-Request" header only.
Now we try to delegate the call to
PartialViewContext.isAjaxRequest() first. If a FacesContext
is unavailble for some reason we also check the
"javax.faces.partial.ajax" request parameter.
2012-03-14 12:27:04 -04:00
Rossen Stoyanchev
da15ce8138 Upgrade sample to PrimeFaces 3.1.1
Issues: SWF-1523
2012-03-07 05:30:57 -05:00
Phil Webb
27cd5cca31 Add support for PostRestoreStateEvent
A PostRestoreStateEvent should be delivered whenever a JSF view is
restored. Typically we rely on JSF to generate required events but
in this case since WebFlow handles the RESTORE_VIEW phase itself,
we need to deliver this event ourselves.

Issues: SWF-1500
2012-03-06 17:20:55 -05:00
Rossen Stoyanchev
8e1aa91b40 JSF view root to survive redirect in same state
For JSF 2.0.x Spring Web Flow the view root could not be preserved
across redirects in the same state (e.g. following validation)
because a JSF state saving listener held on to the FacesContext,
which Web Flow releases before the redirect.

This issue was addressed in JSF 2.1
http://java.net/jira/browse/JAVASERVERFACES-1604
which means we can allow the view root to survive the redirect.

Note that the behavior can also be controlled with the
redirect-in-same state flow execution attribute.

Issues: SWF-1502
2012-02-29 15:36:14 -05:00