Author: igorz
Date: 2007-12-24 09:45:36 -0500 (Mon, 24 Dec 2007)
New Revision: 91862

Added:
   
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/faces-config.xml
Modified:
   
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.csproj
   trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/web.xml
   trunk/mcs/class/System.Web/run-mono-tests.bat
Log:
update test with jsf implementation

Modified: 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.csproj
===================================================================
--- 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.csproj
   2007-12-24 14:37:15 UTC (rev 91861)
+++ 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.csproj
   2007-12-24 14:45:36 UTC (rev 91862)
@@ -197,6 +197,7 @@
   <ItemGroup>
     <Content Include="App_Themes\Theme2\Theme2.skin" />
     <Content Include="GridViewUpdate.aspx" />
+    <Content Include="WEB-INF\faces-config.xml" />
   </ItemGroup>
   <ItemGroup>
     <Folder Include="Properties\" />

Added: 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/faces-config.xml
===================================================================
--- 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/faces-config.xml
  2007-12-24 14:37:15 UTC (rev 91861)
+++ 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/faces-config.xml
  2007-12-24 14:45:36 UTC (rev 91862)
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE faces-config PUBLIC
+  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>
+
+<faces-config>
+       <application>
+               
<state-manager>Mainsoft.Web.Hosting.ServletFacesStateManager</state-manager>
+               
<view-handler>Mainsoft.Web.Hosting.ServletFacesViewHandler</view-handler>
+       </application>
+</faces-config>

Modified: 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/web.xml
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/web.xml   
2007-12-24 14:37:15 UTC (rev 91861)
+++ trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/WEB-INF/web.xml   
2007-12-24 14:45:36 UTC (rev 91862)
@@ -15,6 +15,24 @@
         <param-value>Virtual</param-value>
     </context-param>      
 
+       <context-param>
+               <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+               <param-value>client</param-value>
+       </context-param>
+       <context-param>
+               <param-name>javax.faces.application.CONFIG_FILES</param-name>
+               <param-value>/WEB-INF/faces-config.xml</param-value>
+       </context-param>
+
+       <context-param>
+               <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+               <param-value>.aspx</param-value>
+       </context-param>
+
+       <listener>
+               
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+       </listener>
+
     <listener>
         <listener-class>system.Web.GH.SessionListener</listener-class>
     </listener>

Modified: trunk/mcs/class/System.Web/run-mono-tests.bat
===================================================================
--- trunk/mcs/class/System.Web/run-mono-tests.bat       2007-12-24 14:37:15 UTC 
(rev 91861)
+++ trunk/mcs/class/System.Web/run-mono-tests.bat       2007-12-24 14:45:36 UTC 
(rev 91862)
@@ -46,6 +46,7 @@
 
 set JGAC_PATH=%VMW_HOME%\java_refs\framework\
 set TOMCAT_PATH=%VMW_HOME%\jakarta-tomcat\common\lib\
+set TOMCAT_SHARED_PATH=%VMW_HOME%\jakarta-tomcat\shared\lib\
 set JAVA_HOME=%VMW_HOME%\jre
 
 set RUNTIME_CLASSPATH=%JGAC_PATH%mscorlib.jar
@@ -65,6 +66,7 @@
 set 
RUNTIME_CLASSPATH=%RUNTIME_CLASSPATH%;Test\mainsoft\MainsoftWebTest\bin\Debug_Java20\HtmlCompare.jar
 
 set TOMCAT_CLASSPATH=%TOMCAT_PATH%servlet-api.jar
+set 
TOMCAT_CLASSPATH=%TOMCAT_CLASSPATH%;%TOMCAT_SHARED_PATH%myfaces-api-1.1.5.jar
 set NUNIT_OPTIONS=/exclude=NotWorking
 
 if "%GH_VERSION%"=="" (
@@ -86,6 +88,8 @@
 
 set CLASSPATH="%RUNTIME_CLASSPATH%;%NUNIT_CLASSPATH%;%TOMCAT_CLASSPATH%"
 
+IF "%BUILD_OPTION%"=="nobuild" GOTO RUN
+
 REM ********************************************************
 @echo Building GH solution...
 REM ********************************************************

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to