[richfaces-svn-commits] JBoss Rich Faces SVN: r2487 - trunk/ui/tabPanel/src/main/java/org/richfaces/taglib.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Fri Aug 24 14:58:45 EDT 2007
Author: nbelaevski
Date: 2007-08-24 14:58:45 -0400 (Fri, 24 Aug 2007)
New Revision: 2487
Modified:
trunk/ui/tabPanel/src/main/java/org/richfaces/taglib/TabPanelTagHandlerBase.java
Log:
value deprecation message added to TabPanelTagHandlerBase
Modified: trunk/ui/tabPanel/src/main/java/org/richfaces/taglib/TabPanelTagHandlerBase.java
===================================================================
--- trunk/ui/tabPanel/src/main/java/org/richfaces/taglib/TabPanelTagHandlerBase.java 2007-08-24 18:24:59 UTC (rev 2486)
+++ trunk/ui/tabPanel/src/main/java/org/richfaces/taglib/TabPanelTagHandlerBase.java 2007-08-24 18:58:45 UTC (rev 2487)
@@ -21,9 +21,13 @@
package org.richfaces.taglib;
+import javax.faces.context.FacesContext;
+
import org.ajax4jsf.webapp.taglib.AjaxComponentHandler;
import com.sun.facelets.tag.MetaRuleset;
+import com.sun.facelets.tag.TagAttribute;
+import com.sun.facelets.tag.TagAttributes;
import com.sun.facelets.tag.jsf.ComponentConfig;
/**
@@ -42,6 +46,15 @@
}
protected MetaRuleset createMetaRuleset(Class type) {
+ TagAttributes attributes = this.tag.getAttributes();
+ TagAttribute attribute = attributes.get("value");
+ if (attribute != null && attributes.get("selectedTab") != null) {
+ TagAttribute idAttribute = attributes.get("id");
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ facesContext.getExternalContext().log("selectedTab attribute has been already set for component with id: " +
+ idAttribute != null ? idAttribute.getValue() : null +
+ "[" + attribute.getValue() + "]. value attribute is deprecated and thus has been dropped!");
+ }
return super.createMetaRuleset(type).alias("selectedTab", "value");
}
More information about the richfaces-svn-commits
mailing list