IN PROGRESS - issue SWF-388: Extract all JSF-related code into a separate component project

http://opensource.atlassian.com/projects/spring/browse/SWF-388
This commit is contained in:
Jeremy Grelle
2007-08-16 21:33:36 +00:00
parent 8c47f340ed
commit 559a8f0716
16 changed files with 18 additions and 23 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import junit.framework.TestCase;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import javax.faces.el.EvaluationException;
import javax.faces.el.PropertyNotFoundException;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import java.io.IOException;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import javax.faces.context.FacesContext;
import javax.faces.el.EvaluationException;

View File

@@ -1,4 +1,4 @@
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import java.io.FileNotFoundException;
@@ -12,10 +12,6 @@ import org.springframework.faces.el.DelegatingFlowVariableResolver;
import org.springframework.faces.el.FlowPropertyResolver;
import org.springframework.faces.el.FlowVariableResolver;
import org.springframework.faces.el.Jsf11ELExpressionParser;
import org.springframework.faces.webflow.FlowExecutionHolder;
import org.springframework.faces.webflow.FlowExecutionHolderUtils;
import org.springframework.faces.webflow.FlowNavigationHandler;
import org.springframework.faces.webflow.FlowPhaseListener;
import org.springframework.util.ResourceUtils;
import org.springframework.web.context.support.GenericWebApplicationContext;
import org.springframework.web.jsf.DelegatingVariableResolver;
@@ -124,7 +120,7 @@ public class JSF11ManagedBeanAccessTests extends AbstractXmlFlowExecutionTests {
protected FlowDefinitionResource getFlowDefinitionResource() {
try {
return createFlowDefinitionResource(ResourceUtils.getFile(
"classpath:org/springframework/webflow/executor/jsf/jsf-flow.xml").getPath());
"classpath:org/springframework/faces/webflow/jsf-flow.xml").getPath());
} catch (FileNotFoundException e) {
fail(e.getMessage());
return null;
@@ -137,8 +133,7 @@ public class JSF11ManagedBeanAccessTests extends AbstractXmlFlowExecutionTests {
ctx = new GenericWebApplicationContext();
XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(ctx);
xmlReader.loadBeanDefinitions(new ClassPathResource(
"org/springframework/webflow/executor/jsf/jsf-flow-beans.xml"));
xmlReader.loadBeanDefinitions(new ClassPathResource("org/springframework/faces/webflow/jsf-flow-beans.xml"));
ctx.refresh();
jsf.externalContext().getApplicationMap().put(

View File

@@ -1,4 +1,4 @@
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import org.jboss.el.ExpressionFactoryImpl;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;

View File

@@ -1,4 +1,4 @@
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import java.util.ArrayList;
import java.util.List;

View File

@@ -1,4 +1,4 @@
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import org.apache.shale.test.base.AbstractJsfTestCase;
import org.apache.shale.test.mock.MockApplication;

View File

@@ -1,4 +1,4 @@
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
public class JSFModel {
String value;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import java.util.Collection;
import java.util.Iterator;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import java.util.Iterator;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import java.io.IOException;
import java.io.InputStream;

View File

@@ -1,4 +1,4 @@
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
public interface MockService {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.webflow.executor.jsf;
package org.springframework.faces.webflow;
import java.io.IOException;
import java.util.Locale;

View File

@@ -10,8 +10,8 @@
<flow:enable-scopes/>
<bean name="jsfModel" class="org.springframework.webflow.executor.jsf.JSFModel" scope="prototype"/>
<bean name="jsfModel" class="org.springframework.faces.webflow.JSFModel" scope="prototype"/>
<bean name="flowScopedModel" class="org.springframework.webflow.executor.jsf.JSFModel" scope="flow"/>
<bean name="flowScopedModel" class="org.springframework.faces.webflow.JSFModel" scope="flow"/>
</beans>