commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/src/test/org/apache/commons/jelly/core testUseBeanTag.jelly
Date Tue, 31 Aug 2004 04:27:04 GMT
dion        2004/08/30 21:27:04

  Modified:    jelly/src/test/org/apache/commons/jelly/core
                        testUseBeanTag.jelly
  Log:
  JELLY-120. Allow subclasses to ignore bad properties
  
  Revision  Changes    Path
  1.4       +23 -2     jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/testUseBeanTag.jelly
  
  Index: testUseBeanTag.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/testUseBeanTag.jelly,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- testUseBeanTag.jelly	30 Aug 2004 01:12:25 -0000	1.3
  +++ testUseBeanTag.jelly	31 Aug 2004 04:27:04 -0000	1.4
  @@ -14,18 +14,39 @@
     limitations under the License.
   -->
   
  -<j:jelly xmlns:j="jelly:core" xmlns:jx="jelly:org.apache.commons.jelly.core.extension.CoreExtensionTagLibrary">
  +<j:jelly xmlns:j="jelly:core"
  +	xmlns:jx="jelly:org.apache.commons.jelly.core.extension.CoreExtensionTagLibrary">
  +	
       <j:if test="${test.simple}">
           <j:useBean var="foo" 
             class="org.apache.commons.jelly.core.Customer"
             name="testing"
             city="sydney"/>
       </j:if>
  +	
       <j:if test="${test.extension}">
           <jx:useBeanX var="foo" 
             class="org.apache.commons.jelly.core.Customer"
             name="testing"
             city="sydney"/>
  -        Name is ${foo.name}
       </j:if>
  +    
  +    <j:if test="${test.badProperty}">
  +		<j:catch var="ex">
  +        	<jx:useBean var="foo" 
  +			  class="org.apache.commons.jelly.core.Customer"
  +			  name="testing"
  +			  city="sydney"
  +			  foo="bar"/>
  +		</j:catch>
  +    </j:if>
  +	
  +	<j:if test="${test.badPropertyIgnored}">
  +		<jx:useBeanXP var="foo" 
  +			class="org.apache.commons.jelly.core.Customer"
  +			name="testing"
  +			city="sydney"
  +			foo="bar"/> 
  +    </j:if>
  +    
   </j:jelly>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message