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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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(
|
||||
@@ -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;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.webflow.executor.jsf;
|
||||
package org.springframework.faces.webflow;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -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;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.webflow.executor.jsf;
|
||||
package org.springframework.faces.webflow;
|
||||
|
||||
public class JSFModel {
|
||||
String value;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.webflow.executor.jsf;
|
||||
package org.springframework.faces.webflow;
|
||||
|
||||
public interface MockService {
|
||||
|
||||
@@ -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;
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user