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
This commit is contained in:
Rossen Stoyanchev
2012-05-24 16:30:57 -04:00
parent b4847ef49b
commit 4e81930b72
162 changed files with 659 additions and 9157 deletions

View File

@@ -1,72 +0,0 @@
/*
* Copyright 2004-2008 the original author or authors.
*
* Licensed 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.
*/
package org.springframework.faces.richfaces;
import java.io.IOException;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.ajax4jsf.context.AjaxContext;
import org.springframework.faces.webflow.FacesContextHelper;
import org.springframework.js.ajax.AbstractAjaxHandler;
import org.springframework.js.ajax.AjaxHandler;
/**
* Ajax handler that works with Rich Faces, allowing support for Web Flow Ajax features with the Rich Faces toolkit.
*
* @see AbstractAjaxHandler
*
* @author Jeremy Grelle
*/
public class RichFacesAjaxHandler extends AbstractAjaxHandler implements AjaxHandler {
/**
* Create a RichFacesAjaxHandler that is not part of a chain of AjaxHandler's.
*/
public RichFacesAjaxHandler() {
this(null);
}
/**
* Create a RichFacesAjaxHandler as part of a chain of AjaxHandler's.
*/
public RichFacesAjaxHandler(AbstractAjaxHandler delegate) {
super(delegate);
}
protected boolean isAjaxRequestInternal(HttpServletRequest request, HttpServletResponse response) {
FacesContextHelper helper = new FacesContextHelper();
try {
FacesContext facesContext = helper.getFacesContext(getServletContext(), request, response);
AjaxContext context = AjaxContext.getCurrentInstance(facesContext);
if (context != null) {
return context.isAjaxRequest(facesContext);
} else {
return false;
}
} finally {
helper.releaseIfNecessary();
}
}
protected void sendAjaxRedirectInternal(String targetUrl, HttpServletRequest request, HttpServletResponse response,
boolean popup) throws IOException {
response.sendRedirect(response.encodeRedirectURL(targetUrl));
}
}

View File

@@ -1,5 +0,0 @@
<html>
<body>
<p>Ajax integration support for the Rich Faces component library.</p>
</body>
</html>

View File

@@ -49,6 +49,7 @@ public class JsfView implements View {
private RequestContext requestContext;
private String viewId;
/**
* Creates a new JSF view.

View File

@@ -6,7 +6,7 @@
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/faces
http://www.springframework.org/schema/faces/spring-faces.xsd">
http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">
<faces:flow-builder-services id="flowBuilderServicesDefault"/>
@@ -30,4 +30,4 @@
<bean id="customConversionService" class="org.springframework.faces.config.FacesFlowBuilderServicesBeanDefinitionParserTests$TestConversionService"/>
</beans>
</beans>

View File

@@ -4,8 +4,8 @@
xmlns:faces="http://www.springframework.org/schema/faces"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces.xsd">
http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">
<faces:resources />
</beans>
</beans>

View File

@@ -17,7 +17,7 @@ import javax.faces.lifecycle.Lifecycle;
import junit.framework.TestCase;
import org.easymock.EasyMock;
import org.jboss.el.ExpressionFactoryImpl;
import org.apache.el.ExpressionFactoryImpl;
import org.springframework.binding.expression.ExpressionParser;
import org.springframework.binding.expression.support.FluentParserContext;
import org.springframework.mock.web.MockHttpServletRequest;

View File

@@ -2,7 +2,7 @@ package org.springframework.faces.webflow;
import junit.framework.TestCase;
import org.jboss.el.ExpressionFactoryImpl;
import org.apache.el.ExpressionFactoryImpl;
import org.springframework.binding.expression.Expression;
import org.springframework.binding.expression.ExpressionParser;
import org.springframework.binding.expression.support.FluentParserContext;

View File

@@ -26,7 +26,7 @@ import junit.framework.TestCase;
import org.apache.myfaces.test.mock.MockApplication20;
import org.easymock.EasyMock;
import org.jboss.el.ExpressionFactoryImpl;
import org.apache.el.ExpressionFactoryImpl;
import org.springframework.binding.expression.ExpressionParser;
import org.springframework.binding.expression.support.FluentParserContext;
import org.springframework.mock.web.MockHttpServletRequest;