You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2017/09/17 12:29:48 UTC

[myfaces-trinidad] 04/33: TRINIDAD-2104 Suppress warning when id set on converters

This is an automated email from the ASF dual-hosted git repository.

deki pushed a commit to branch 2.0.0.x-branch
in repository https://gitbox.apache.org/repos/asf/myfaces-trinidad.git

commit 6048afae247f33474c7d1269857a29e9e463ff82
Author: Scott Bryan <so...@apache.org>
AuthorDate: Tue May 8 23:17:11 2012 +0000

    TRINIDAD-2104 Suppress warning when id set on converters
---
 .../myfaces/trinidadinternal/facelets/TrinidadConverterHandler.java  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/facelets/TrinidadConverterHandler.java b/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/facelets/TrinidadConverterHandler.java
index ee35ac9..d6259f4 100644
--- a/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/facelets/TrinidadConverterHandler.java
+++ b/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/facelets/TrinidadConverterHandler.java
@@ -19,11 +19,13 @@
 package org.apache.myfaces.trinidadinternal.facelets;
 
 
+import java.beans.Beans;
 
 import javax.faces.view.facelets.ConverterConfig;
 import javax.faces.view.facelets.ConverterHandler;
 import javax.faces.view.facelets.MetaRuleset;
 
+
 public class TrinidadConverterHandler
   extends ConverterHandler
 {
@@ -36,6 +38,9 @@ public class TrinidadConverterHandler
   protected MetaRuleset createMetaRuleset(Class type)
   {
     MetaRuleset m = super.createMetaRuleset(type);
+    // Trinidad-2014 : Converters may have id specified in the tld, but it isn't supported
+    if (Beans.isDesignTime())
+      m.ignore("id");
     m.addRule(StringArrayPropertyTagRule.Instance);
     m.addRule(ValueExpressionTagRule.Instance);
     m.addRule(LocalePropertyTagRule.Instance);

-- 
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.