myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r762321 - /myfaces/trinidad-maven/branches/1.2.10.1-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateFaceletsTaglibsMojo.java
Date Mon, 06 Apr 2009 13:11:52 GMT
Author: matzew
Date: Mon Apr  6 13:11:51 2009
New Revision: 762321

URL: http://svn.apache.org/viewvc?rev=762321&view=rev
Log:
TRINIDAD-1441 - Facelets: Need Custom Validator and Converter handlers

applied plugins related change. Thx to Max Starets

Modified:
    myfaces/trinidad-maven/branches/1.2.10.1-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateFaceletsTaglibsMojo.java

Modified: myfaces/trinidad-maven/branches/1.2.10.1-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateFaceletsTaglibsMojo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/branches/1.2.10.1-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateFaceletsTaglibsMojo.java?rev=762321&r1=762320&r2=762321&view=diff
==============================================================================
--- myfaces/trinidad-maven/branches/1.2.10.1-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateFaceletsTaglibsMojo.java
(original)
+++ myfaces/trinidad-maven/branches/1.2.10.1-branch/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateFaceletsTaglibsMojo.java
Mon Apr  6 13:11:51 2009
@@ -328,6 +328,16 @@
                 validator.getValidatorId() : validator.getRootValidatorId();
     stream.writeCharacters(id);
     stream.writeEndElement();
+    
+    String tagHandler = faceletValidatorHandlerClass;
+    
+    if (tagHandler != null)
+    {
+      stream.writeCharacters("\n      ");
+      stream.writeStartElement("handler-class");
+      stream.writeCharacters(tagHandler);
+      stream.writeEndElement();
+    }
 
     stream.writeCharacters("\n    ");
     stream.writeEndElement();
@@ -356,6 +366,16 @@
                 converter.getConverterId() : converter.getRootConverterId();
     stream.writeCharacters(id);
     stream.writeEndElement();
+    
+    String tagHandler = faceletConverterHandlerClass;
+        
+    if (tagHandler != null)
+    {
+      stream.writeCharacters("\n      ");
+      stream.writeStartElement("handler-class");
+      stream.writeCharacters(tagHandler);
+      stream.writeEndElement();
+    }
 
     stream.writeCharacters("\n    ");
     stream.writeEndElement();
@@ -389,6 +409,16 @@
    *@parameter
    */
   private String faceletHandlerClass;
+  
+  /**
+   *@parameter
+   */
+  private String faceletConverterHandlerClass;
+  
+  /**
+   *@parameter
+   */
+  private String faceletValidatorHandlerClass;
 
   /**
    * @parameter expression="src/main/conf"



Mime
View raw message