Commit Graph

2350 Commits

Author SHA1 Message Date
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
Rossen Stoyanchev
63151acb8d Minor fix in FlowPartialViewContext
The fix ensures that getRenderIds returns a mutable collection as
stated in the contract for the method in PartialViewContext.

Issues: SWF-1480
2012-02-29 12:21:07 -05:00
Rossen Stoyanchev
3430771c30 Minor fixes
- Add versions to schema references in samples
- Documentation fix
- Remove unused package import
2012-02-28 18:59:32 -05:00
Rossen Stoyanchev
3a36fedb5b Make AbstractMvcView.shouldValidate() protected
Issues: SWF-1458
2012-02-28 18:25:18 -05:00
Rossen Stoyanchev
d616e6bed8 Fix "embedded" mode to be flow session local.
The "embedded" mode flag, which is used to suppress redirects so
that a flow can be embedded on a surrounding page, was previously
stored as a flow execution attribute. The idea was that a flow can
be launched in embedded mode simply by passing a flow input rather
than having that decision fixed through a static flow definition.

However flow execution attributes are not a suitable place to store
the embedded mode flag since they are globally shared. Instead this
information is now stored a flow session attribute, which means that
each individual session (including subflows) can have be in embedded
mode or not without affecting others
2012-02-28 17:59:57 -05:00
Rossen Stoyanchev
df649084ab Fix for bean validation messages in BindingResult
Previously Web Flow's BindingResult implementation distinguished
object from field-level errors by checking if the source of the
error is null or otherwise a String. However, class-level bean
validation errors have a field source represented by an empty
String. After this change object and field-level errors are
recognized by checking for String-based field source that is
neither null nor empty.

This commit also contains a fix for spring-faces tests where
in JSF 2.1 the presence of an unreleased FacesContext may
cause some tests to fail.
2012-02-28 13:27:16 -05:00
Rossen Stoyanchev
85d8d73c1d Update Jsf2FlowFacesContext.isValidationFailed()
Previously isValidationFailed() merely delegated to the wrapped
FacesContext ignoring any errors that may have been added to
Web Flow's MessageContext. After the change isValidationFailed()
checks and returns true if the MessageContext contains errors
or otherwise it delegates.

Issues: SWF-1490
2012-02-28 10:47:47 -05:00
Rossen Stoyanchev
f764120279 Upgrade JSF Mojarra to version 2.1.7 2012-02-27 17:06:33 -05:00
Phil Webb
962b123d73 Ensure required test directory is created in GIT and remove javadoc refs to missing home dir 2012-01-18 17:57:36 -05:00
Phil Webb
d960e85250 Update primefaces repository 2012-01-18 17:57:27 -05:00
Phil Webb
6a49144843 Ensure required test directory is created in GIT and remove javadoc refs to missing home dir 2012-01-17 17:00:41 -08:00