[jboss-cvs] JBossAS SVN: r78910 - in trunk/testsuite/src/resources/web/html/jsftest: WEB-INF and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Sep 28 16:38:22 EDT 2008


Author: stan.silvert at jboss.com
Date: 2008-09-28 16:38:21 -0400 (Sun, 28 Sep 2008)
New Revision: 78910

Modified:
   trunk/testsuite/src/resources/web/html/jsftest/WEB-INF/faces-config.xml
   trunk/testsuite/src/resources/web/html/jsftest/index.jsp
Log:
JBAS-5673: Changed JSF test case to show NullPointerException caused by JBAS-5673


Modified: trunk/testsuite/src/resources/web/html/jsftest/WEB-INF/faces-config.xml
===================================================================
--- trunk/testsuite/src/resources/web/html/jsftest/WEB-INF/faces-config.xml	2008-09-27 12:12:07 UTC (rev 78909)
+++ trunk/testsuite/src/resources/web/html/jsftest/WEB-INF/faces-config.xml	2008-09-28 20:38:21 UTC (rev 78910)
@@ -19,4 +19,15 @@
       <managed-bean-scope>session</managed-bean-scope> 
    </managed-bean>
    
+   <managed-bean>
+     <description>Use a swing JButton as a simple javabean</description>
+     <managed-bean-name>myJButton</managed-bean-name>
+     <managed-bean-class>javax.swing.JButton</managed-bean-class>
+     <managed-bean-scope>session</managed-bean-scope>
+     <managed-property>
+       <property-name>text</property-name>
+       <value>Initial Value</value>
+     </managed-property>
+   </managed-bean>
+   
 </faces-config>

Modified: trunk/testsuite/src/resources/web/html/jsftest/index.jsp
===================================================================
--- trunk/testsuite/src/resources/web/html/jsftest/index.jsp	2008-09-27 12:12:07 UTC (rev 78909)
+++ trunk/testsuite/src/resources/web/html/jsftest/index.jsp	2008-09-28 20:38:21 UTC (rev 78910)
@@ -37,6 +37,8 @@
          <h3><h:outputText rendered="#{mySessionBean.color == 'PURPLE'}" 
                            value="JBoss Color selection is #{mySessionBean.color}"
                            /></h3>
+         <font color="red"><h1>Test using JDK class as a managed bean</h1></font>     
+         <h3><h:outputText value="JButton value = #{myJButton}"/></h3>
      </f:view>
  
        <font color="red"><h1>Logging Test</h1></font>




More information about the jboss-cvs-commits mailing list