myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r635802 - /myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/GenerateJspTaglibsMojo.java
Date Tue, 11 Mar 2008 05:13:24 GMT
Author: lu4242
Date: Mon Mar 10 22:13:17 2008
New Revision: 635802

URL: http://svn.apache.org/viewvc?rev=635802&view=rev
Log:
fix required attribute for properties on tags for 1.1 generation

Modified:
    myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/GenerateJspTaglibsMojo.java

Modified: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/GenerateJspTaglibsMojo.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/GenerateJspTaglibsMojo.java?rev=635802&r1=635801&r2=635802&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/GenerateJspTaglibsMojo.java
(original)
+++ myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/GenerateJspTaglibsMojo.java
Mon Mar 10 22:13:17 2008
@@ -560,11 +560,22 @@
 
     if (!_is12())
     {
+      if (property != null)
+      {        
+        if (property.isRequired())
+        {
+          stream.writeCharacters("\n    ");
+          stream.writeStartElement("required");
+          stream.writeCharacters("true");
+          stream.writeEndElement();
+        }
+      }
+        
       stream.writeCharacters("\n      ");
       stream.writeStartElement("rtexprvalue");
       stream.writeCharacters("false");
       stream.writeEndElement();
-
+      
       // In JSP 2.0, the tag description goes at the end
       _writeTagAttributeDescription(stream, description, unsupportedAgents);
     }



Mime
View raw message