You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/09/14 01:10:56 UTC

svn commit: r695059 [3/4] - in /myfaces/core/branches/2_0_0: ./ api/ api/src/main/java/javax/faces/component/ api/src/main/java/javax/faces/convert/ api/src/main/java/javax/faces/validator/ api/src/main/java/javax/faces/webapp/ impl/ impl/src/main/conf...

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/FacesCompositeELResolver.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/FacesCompositeELResolver.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/FacesCompositeELResolver.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/FacesCompositeELResolver.java Sat Sep 13 16:10:53 2008
@@ -26,6 +26,8 @@
 import javax.servlet.jsp.JspApplicationContext;
 import java.beans.FeatureDescriptor;
 import java.util.Iterator;
+import java.util.Map;
+import java.util.Arrays;
 
 /**
  * <p>
@@ -39,11 +41,11 @@
  * resolvers into the jsp engine. Therefore we have to make sure that jsp only pages where no faces context is available
  * are still working
  * </p>
- * 
+ *
  * @author Mathias Broekelmann (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
-public class FacesCompositeELResolver extends org.apache.myfaces.el.CompositeELResolver
+public final class FacesCompositeELResolver extends org.apache.myfaces.el.CompositeELResolver
 {
     private final Scope _scope;
 
@@ -52,11 +54,11 @@
         Faces, JSP
     }
 
-    public FacesCompositeELResolver(Scope scope)
+    public FacesCompositeELResolver(final Scope scope)
     {
         if (scope == null)
         {
-            throw new IllegalArgumentException("scope must not be one of " + Scope.values());
+            throw new IllegalArgumentException("scope must not be one of " + Arrays.toString(Scope.values()));
         }
         _scope = scope;
     }
@@ -64,108 +66,133 @@
     @Override
     public Class<?> getCommonPropertyType(final ELContext context, final Object base)
     {
-        return invoke(new ResolverInvoker<Class<?>>()
+        final FacesContext facesContext = FacesContext.getCurrentInstance();
+        if (facesContext == null)
         {
-            public Class<?> invoke()
-            {
-                return FacesCompositeELResolver.super.getCommonPropertyType(context, base);
-            }
-        });
+            return null;
+        }
+        final Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
+        try
+        {
+            setScope(requestMap);
+            return super.getCommonPropertyType(context, base);
+        }
+        finally
+        {
+            unsetScope(requestMap);
+        }
+
     }
 
     @Override
     public Iterator<FeatureDescriptor> getFeatureDescriptors(final ELContext context, final Object base)
     {
-        return invoke(new ResolverInvoker<Iterator<FeatureDescriptor>>()
+        final FacesContext facesContext = FacesContext.getCurrentInstance();
+        if (facesContext == null)
+        {
+            return null;
+        }
+        final Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
+        try
         {
-            public Iterator<FeatureDescriptor> invoke()
-            {
-                return FacesCompositeELResolver.super.getFeatureDescriptors(context, base);
-            }
-        });
+            setScope(requestMap);
+            return super.getFeatureDescriptors(context, base);
+
+        }
+        finally
+        {
+            unsetScope(requestMap);
+        }
     }
 
     @Override
     public Class<?> getType(final ELContext context, final Object base, final Object property)
     {
-        return invoke(new ResolverInvoker<Class<?>>()
+        final FacesContext facesContext = FacesContext.getCurrentInstance();
+        if (facesContext == null)
         {
-            public Class<?> invoke()
-            {
-                context.setPropertyResolved(false);  
-                return FacesCompositeELResolver.super.getType(context, base, property);
-            }
-        });
+            return null;
+        }
+        final Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
+        try
+        {
+            setScope(requestMap);
+            return super.getType(context, base, property);
+        }
+        finally
+        {
+            unsetScope(requestMap);
+        }
     }
 
     @Override
     public Object getValue(final ELContext context, final Object base, final Object property)
     {
-        return invoke(new ResolverInvoker<Object>()
+        final FacesContext facesContext = FacesContext.getCurrentInstance();
+        if (facesContext == null)
         {
-            public Object invoke()
-            {
-                return FacesCompositeELResolver.super.getValue(context, base, property);
-            }
-        });
+            return null;
+        }
+        final Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
+        try
+        {
+            setScope(requestMap);
+            return super.getValue(context, base, property);
+        }
+        finally
+        {
+            unsetScope(requestMap);
+        }
     }
 
     @Override
     public boolean isReadOnly(final ELContext context, final Object base, final Object property)
     {
-        return invoke(new ResolverInvoker<Boolean>()
+        final FacesContext facesContext = FacesContext.getCurrentInstance();
+        if (facesContext == null)
+        {
+            return false;
+        }
+        final Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
+        try
         {
-            public Boolean invoke()
-            {
-                return FacesCompositeELResolver.super.isReadOnly(context, base, property);
-            }
-        });
+            setScope(requestMap);
+            return super.isReadOnly(context, base, property);
+        }
+        finally
+        {
+            unsetScope(requestMap);
+        }
     }
 
     @Override
     public void setValue(final ELContext context, final Object base, final Object property, final Object val)
     {
-        invoke(new ResolverInvoker<Object>()
-        {
-            public Object invoke()
-            {
-                FacesCompositeELResolver.super.setValue(context, base, property, val);
-                return null;
-            }
-        });
-    }
-
-    <T> T invoke(ResolverInvoker<T> invoker)
-    {
-        FacesContext context = FacesContext.getCurrentInstance();
-        if (context == null)
+        final FacesContext facesContext = FacesContext.getCurrentInstance();
+        if (facesContext == null)
         {
-            return null;
+            return;
         }
+        final Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
         try
         {
-            setScope(context);
-            return invoker.invoke();
+            setScope(requestMap);
+            super.setValue(context, base, property, val);
+
         }
         finally
         {
-            unsetScope(context);
+            unsetScope(requestMap);
         }
     }
 
-    private void setScope(FacesContext context)
-    {
-        context.getExternalContext().getRequestMap().put(Scope.class.getName(), _scope);
-    }
-
-    private void unsetScope(FacesContext context)
+    private void setScope(final Map<String, Object> requestMap)
     {
-        context.getExternalContext().getRequestMap().remove(Scope.class.getName());
+        requestMap.put(Scope.class.getName(), _scope);
     }
 
-    interface ResolverInvoker<T>
+    private static void unsetScope(final Map<String, Object> requestMap)
     {
-        T invoke();
+        requestMap.remove(Scope.class.getName());
     }
-
 }

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java Sat Sep 13 16:10:53 2008
@@ -117,7 +117,7 @@
     public ManagedBeanResolver() {
     }
 
-    public void setValue(ELContext context, Object base, Object property, Object value) 
+    public void setValue(final ELContext context, final Object base, final Object property, final Object value)
         throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException {
         
         if ( (base == null) && (property == null)) {
@@ -126,7 +126,7 @@
         
     }
 
-    public boolean isReadOnly(ELContext context, Object base, Object property) 
+    public boolean isReadOnly(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
        if ( (base == null) && (property == null)) {
@@ -136,7 +136,7 @@
         return false;
     }
 
-    public Object getValue(ELContext context, Object base, Object property) 
+    public Object getValue(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if (base != null) return null;
@@ -145,7 +145,7 @@
             throw new PropertyNotFoundException();
         }
         
-        ExternalContext extContext = externalContext(context);
+        final ExternalContext extContext = externalContext(context);
         
         if (extContext == null) return null;
         if (extContext.getRequestMap().containsKey(property)) return null;
@@ -154,9 +154,9 @@
         
         if ( !(property instanceof String) ) return null;
         
-        String strProperty = (String)property;
+        final String strProperty = (String)property;
         
-        ManagedBean managedBean = runtimeConfig(context).getManagedBean(strProperty);
+        final ManagedBean managedBean = runtimeConfig(context).getManagedBean(strProperty);
         Object beanInstance = null;
         if (managedBean != null) {
             FacesContext facesContext = facesContext(context);
@@ -172,12 +172,12 @@
     // scope and return null.
     //
     // adapted from Manfred's JSF 1.1 VariableResolverImpl
-    private Object createManagedBean(ManagedBean managedBean,
-                                  FacesContext facesContext) 
+    private Object createManagedBean(final ManagedBean managedBean,
+                                  final FacesContext facesContext)
         throws ELException {
         
-        ExternalContext extContext = facesContext.getExternalContext();
-        Map requestMap = extContext.getRequestMap();
+        final ExternalContext extContext = facesContext.getExternalContext();
+        final Map requestMap = extContext.getRequestMap();
         
         // check for cyclic references
         List beansUnderConstruction = (List)requestMap.get(BEANS_UNDER_CONSTRUCTION);
@@ -186,7 +186,7 @@
             requestMap.put(BEANS_UNDER_CONSTRUCTION, beansUnderConstruction);
         }
 
-        String managedBeanName = managedBean.getManagedBeanName();
+        final String managedBeanName = managedBean.getManagedBeanName();
         if (beansUnderConstruction.contains(managedBeanName)) {
             throw new ELException( "Detected cyclic reference to managedBean " + managedBeanName);
         }
@@ -205,7 +205,7 @@
         return obj;
     }
     
-    private void putInScope(ManagedBean managedBean, ExternalContext extContext, Object obj) {
+    private void putInScope(final ManagedBean managedBean, final ExternalContext extContext, final Object obj) {
 
         final String managedBeanName = managedBean.getManagedBeanName();
         
@@ -214,10 +214,10 @@
                 log.debug("Variable '" + managedBeanName + "' could not be resolved.");
         } else {
 
-            String scopeKey = managedBean.getManagedBeanScope();
+            final String scopeKey = managedBean.getManagedBeanScope();
 
             // find the scope handler object
-            Scope scope = (Scope) _scopes.get(scopeKey);
+            final Scope scope = (Scope) _scopes.get(scopeKey);
             if (scope == null) {
                 log.error("Managed bean '" + managedBeanName + "' has illegal scope: " + scopeKey);
             } else {
@@ -228,17 +228,17 @@
     }
     
     // get the FacesContext from the ELContext
-    private FacesContext facesContext(ELContext context) {
+    private static FacesContext facesContext(final ELContext context) {
         return (FacesContext)context.getContext(FacesContext.class);
     }
     
-    private ExternalContext externalContext(ELContext context) {
-        FacesContext facesContext = facesContext(context);
+    private static ExternalContext externalContext(final ELContext context) {
+        final FacesContext facesContext = facesContext(context);
 
         return facesContext != null ? facesContext.getExternalContext() : null;
     }
 
-    public Class<?> getType(ELContext context, Object base, Object property) 
+    public Class<?> getType(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if ( (base == null) && (property == null)) {
@@ -248,22 +248,22 @@
         return null;
     }
 
-    public Iterator getFeatureDescriptors(ELContext context, Object base) {
+    public Iterator getFeatureDescriptors(final ELContext context, final Object base) {
         
         if (base != null) return null;
         
-        ArrayList<FeatureDescriptor> descriptors = new ArrayList<FeatureDescriptor>();
+        final ArrayList<FeatureDescriptor> descriptors = new ArrayList<FeatureDescriptor>();
         
-        Map<String, ManagedBean> managedBeans = runtimeConfig(context).getManagedBeans();
-        for (String beanName : managedBeans.keySet()) {
-            descriptors.add(makeDescriptor(beanName, managedBeans.get(beanName)));
+        final Map<String, ManagedBean> managedBeans = runtimeConfig(context).getManagedBeans();
+        for (Map.Entry<String, ManagedBean> managedBean : managedBeans.entrySet()) {
+            descriptors.add(makeDescriptor(managedBean.getKey(), managedBean.getValue()));
         }
         
         return descriptors.iterator();
     }
     
-    private FeatureDescriptor makeDescriptor(String beanName, ManagedBean managedBean) {
-        FeatureDescriptor fd = new FeatureDescriptor();
+    private static FeatureDescriptor makeDescriptor(final String beanName, final ManagedBean managedBean) {
+        final FeatureDescriptor fd = new FeatureDescriptor();
         fd.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, Boolean.TRUE);
         fd.setValue(ELResolver.TYPE, managedBean.getManagedBeanClass());
         fd.setName(beanName);
@@ -275,8 +275,8 @@
         return fd;
     }
 
-    protected RuntimeConfig runtimeConfig(ELContext context) {
-        FacesContext facesContext = facesContext(context);
+    protected RuntimeConfig runtimeConfig(final ELContext context) {
+        final FacesContext facesContext = facesContext(context);
         
         // application-level singleton - we can safely cache this
         if (this.runtimeConfig == null) {
@@ -286,7 +286,7 @@
         return runtimeConfig;
     }
     
-    public Class<?> getCommonPropertyType(ELContext context, Object base) {
+    public Class<?> getCommonPropertyType(final ELContext context, final Object base) {
         
         if (base != null) return null;
         

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ResourceBundleResolver.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ResourceBundleResolver.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ResourceBundleResolver.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ResourceBundleResolver.java Sat Sep 13 16:10:53 2008
@@ -38,7 +38,7 @@
  *
  * @author Stan Silvert
  */
-public class ResourceBundleResolver extends ELResolver {
+public final class ResourceBundleResolver extends ELResolver {
     
     /**
      * RuntimeConfig is instantiated once per servlet and never changes--we can
@@ -50,28 +50,28 @@
     public ResourceBundleResolver() {
     }
 
-    public void setValue(ELContext context, Object base, Object property, Object value) 
+    public void setValue(final ELContext context, final Object base, final Object property, final Object value)
         throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException {
         
         if ((base == null) && (property == null)) throw new PropertyNotFoundException();
 
         if (!(property instanceof String)) return;
         
-        ResourceBundle bundle = getResourceBundle(context, (String)property);
+        final ResourceBundle bundle = getResourceBundle(context, (String)property);
         
         if (bundle != null) {
             throw new PropertyNotWritableException("ResourceBundles are read-only");
         }
     }
 
-    public boolean isReadOnly(ELContext context, Object base, Object property) 
+    public boolean isReadOnly(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if (base != null) return false;
         if (property == null) throw new PropertyNotFoundException();
         if (!(property instanceof String)) return false;
         
-        ResourceBundle bundle = getResourceBundle(context, (String)property);
+        final ResourceBundle bundle = getResourceBundle(context, (String)property);
         
         if (bundle != null) {
             context.setPropertyResolved(true);
@@ -81,14 +81,14 @@
         return false;
     }
 
-    public Object getValue(ELContext context, Object base, Object property) 
+    public Object getValue(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if (base != null) return null;
         if (property == null) throw new PropertyNotFoundException();
         if (!(property instanceof String)) return null;
         
-        ResourceBundle bundle = getResourceBundle(context, (String)property);
+        final ResourceBundle bundle = getResourceBundle(context, (String)property);
         
         if (bundle != null) {
             context.setPropertyResolved(true);
@@ -98,14 +98,14 @@
         return null;
     }
     
-    public Class<?> getType(ELContext context, Object base, Object property) 
+    public Class<?> getType(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if (base != null) return null;
         if (property == null) throw new PropertyNotFoundException();
         if (!(property instanceof String)) return null;
         
-        ResourceBundle bundle = getResourceBundle(context, (String)property);
+        final ResourceBundle bundle = getResourceBundle(context, (String)property);
         
         if (bundle != null) {
             context.setPropertyResolved(true);
@@ -115,13 +115,13 @@
         return null;
     }
 
-    public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
+    public Iterator<FeatureDescriptor> getFeatureDescriptors(final ELContext context, final Object base) {
        
         if (base != null) return null;
         
-        ArrayList<FeatureDescriptor> descriptors = new ArrayList<FeatureDescriptor>();
+        final ArrayList<FeatureDescriptor> descriptors = new ArrayList<FeatureDescriptor>();
         
-        Map<String, org.apache.myfaces.config.impl.digester.elements.ResourceBundle> resourceBundles = runtimeConfig(context).getResourceBundles();
+        final Map<String, org.apache.myfaces.config.impl.digester.elements.ResourceBundle> resourceBundles = runtimeConfig(context).getResourceBundles();
         
         for (org.apache.myfaces.config.impl.digester.elements.ResourceBundle resourceBundle : resourceBundles.values()) {
             descriptors.add(makeDescriptor(resourceBundle));
@@ -130,7 +130,7 @@
         return descriptors.iterator();
     }
 
-    public Class<?> getCommonPropertyType(ELContext context, Object base) {
+    public Class<?> getCommonPropertyType(final ELContext context, final Object base) {
         
         if (base != null) return null;
         
@@ -138,14 +138,14 @@
     }
     
     // get the FacesContext from the ELContext
-    private FacesContext facesContext(ELContext context) {
+    private static FacesContext facesContext(final ELContext context) {
         return (FacesContext)context.getContext(FacesContext.class);
     }
 
-    private ResourceBundle getResourceBundle(ELContext context, String property) {
-        FacesContext facesContext = facesContext(context);
+    private static ResourceBundle getResourceBundle(final ELContext context, final String property) {
+        final FacesContext facesContext = facesContext(context);
         if (facesContext != null) {
-            Application application = facesContext.getApplication();
+            final Application application = facesContext.getApplication();
             return application.getResourceBundle(facesContext, property);
         }
         
@@ -153,7 +153,7 @@
     }
     
     protected RuntimeConfig runtimeConfig(ELContext context) {
-        FacesContext facesContext = facesContext(context);
+        final FacesContext facesContext = facesContext(context);
         
         // application-level singleton - we can safely cache this
         if (this.runtimeConfig == null) {
@@ -163,8 +163,8 @@
         return runtimeConfig;
     }
 
-    private FeatureDescriptor makeDescriptor(org.apache.myfaces.config.impl.digester.elements.ResourceBundle bundle) {
-        FeatureDescriptor fd = new FeatureDescriptor();
+    private static FeatureDescriptor makeDescriptor(org.apache.myfaces.config.impl.digester.elements.ResourceBundle bundle) {
+        final FeatureDescriptor fd = new FeatureDescriptor();
         fd.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, Boolean.TRUE);
         fd.setName(bundle.getVar());
         fd.setDisplayName(bundle.getDisplayName());

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java Sat Sep 13 16:10:53 2008
@@ -37,7 +37,7 @@
  *
  * @author Stan Silvert
  */
-public class ScopedAttributeResolver extends ELResolver {
+public final class ScopedAttributeResolver extends ELResolver {
     
     /**
      * Creates a new instance of ScopedAttributeResolver
@@ -45,13 +45,13 @@
     public ScopedAttributeResolver() {
     }
 
-    public void setValue(ELContext context, Object base, Object property, Object value) 
+    public void setValue(final ELContext context, final Object base, final Object property, final Object value)
         throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException {
         
         if (base != null) return;
         if (property == null) throw new PropertyNotFoundException();
         
-        Map<String, Object> scopedMap = findScopedMap(externalContext(context), property);
+        final Map<String, Object> scopedMap = findScopedMap(externalContext(context), property);
         if (scopedMap != null) {
             scopedMap.put((String)property, value);
         } else {
@@ -61,7 +61,7 @@
         context.setPropertyResolved(true);
     }
 
-    public boolean isReadOnly(ELContext context, Object base, Object property) 
+    public boolean isReadOnly(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if (base == null) context.setPropertyResolved(true);
@@ -69,7 +69,7 @@
         return false;
     }
 
-    public Object getValue(ELContext context, Object base, Object property) 
+    public Object getValue(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if (base != null) return null;
@@ -77,7 +77,7 @@
 
         context.setPropertyResolved(true);
 
-        Map scopedMap = findScopedMap(externalContext(context), property);
+        final Map scopedMap = findScopedMap(externalContext(context), property);
         if (scopedMap != null) {
             return scopedMap.get(property);
         }
@@ -85,7 +85,7 @@
         return null;
     }
 
-    public Class<?> getType(ELContext context, Object base, Object property) 
+    public Class<?> getType(final ELContext context, final Object base, final Object property)
         throws NullPointerException, PropertyNotFoundException, ELException {
         
         if (base != null) return null;
@@ -95,12 +95,12 @@
         return Object.class;
     }
 
-    public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
+    public Iterator<FeatureDescriptor> getFeatureDescriptors(final ELContext context, final Object base) {
         
         if (base != null) return null;
         
-        List<FeatureDescriptor> descriptorList = new ArrayList<FeatureDescriptor>();
-        ExternalContext extContext = externalContext(context);
+        final List<FeatureDescriptor> descriptorList = new ArrayList<FeatureDescriptor>();
+        final ExternalContext extContext = externalContext(context);
         addDescriptorsToList(descriptorList, extContext.getRequestMap());
         addDescriptorsToList(descriptorList, extContext.getSessionMap());
         addDescriptorsToList(descriptorList, extContext.getApplicationMap());
@@ -108,7 +108,7 @@
         return descriptorList.iterator();
     }
 
-    public Class<?> getCommonPropertyType(ELContext context, Object base) {
+    public Class<?> getCommonPropertyType(final ELContext context, final Object base) {
         
         if (base != null) return null;
         
@@ -116,7 +116,7 @@
     }
     
     // side effect: modifies the list
-    private void addDescriptorsToList(List<FeatureDescriptor> descriptorList, Map scopeMap) {
+    private static void addDescriptorsToList(final List<FeatureDescriptor> descriptorList, final Map scopeMap) {
         for (Object name: scopeMap.keySet()) {
             String strName = (String)name;
             Class runtimeType = scopeMap.get(strName).getClass();
@@ -124,7 +124,7 @@
         }
     }
     
-    private FeatureDescriptor makeDescriptor(String name, Class runtimeType) {
+    private static FeatureDescriptor makeDescriptor(final String name, final Class runtimeType) {
         FeatureDescriptor fd = new FeatureDescriptor();
         fd.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, Boolean.TRUE);
         fd.setValue(ELResolver.TYPE, runtimeType);
@@ -138,7 +138,7 @@
     }
     
     // returns null if not found
-    private Map<String, Object> findScopedMap(ExternalContext extContext, Object property) {
+    private static Map<String, Object> findScopedMap(final ExternalContext extContext, final Object property) {
         
         if (extContext == null) return null;
 
@@ -155,11 +155,11 @@
     }
     
     // get the FacesContext from the ELContext
-    private FacesContext facesContext(ELContext context) {
+    private static FacesContext facesContext(final ELContext context) {
         return (FacesContext)context.getContext(FacesContext.class);
     }
     
-    private ExternalContext externalContext(ELContext context) {
+    private static ExternalContext externalContext(final ELContext context) {
         FacesContext facesContext = facesContext(context);
         if (facesContext != null) {
             return facesContext(context).getExternalContext();

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlButtonRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlButtonRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlButtonRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlButtonRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,19 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlButtonRendererBase;
 
 
 /**
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Command",
+    type="javax.faces.Button")
 public class HtmlButtonRenderer
     extends HtmlButtonRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,14 +18,27 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderers;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlCheckboxRendererBase;
 
 
 /**
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @author Anton Koinov
  * @version $Revision$ $Date$
  */
+@JSFRenderers(renderers={
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.SelectBoolean",
+        type="javax.faces.Checkbox"),   
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.SelectMany",
+        type="javax.faces.Checkbox")
+})
 public class HtmlCheckboxRenderer
         extends HtmlCheckboxRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormRenderer.java Sat Sep 13 16:10:53 2008
@@ -25,6 +25,7 @@
 import javax.faces.context.FacesContext;
 import javax.faces.context.ResponseWriter;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.config.MyfacesConfig;
 import org.apache.myfaces.shared_impl.renderkit.html.HTML;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlFormRendererBase;
@@ -32,11 +33,16 @@
 
 
 /**
+ *   
  * @author Manfred Geiler (latest modification by $Author$)
  * @author Thomas Spiegl
  * @author Anton Koinov
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Form",
+    type="javax.faces.Form")
 public class HtmlFormRenderer
         extends HtmlFormRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormatRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormatRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormatRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlFormatRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,30 +18,36 @@
  */
 package org.apache.myfaces.renderkit.html;
 
-import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
-import org.apache.myfaces.shared_impl.renderkit.RendererUtils;
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlRenderer;
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import java.io.IOException;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
 
 import javax.faces.component.UIComponent;
 import javax.faces.component.UIOutput;
 import javax.faces.component.UIParameter;
 import javax.faces.component.html.HtmlOutputFormat;
 import javax.faces.context.FacesContext;
-import java.io.IOException;
-import java.text.MessageFormat;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
+import org.apache.myfaces.shared_impl.renderkit.RendererUtils;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlRenderer;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase;
 
 /**
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @author Thomas Spiegl
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Output",
+    type="javax.faces.Format")
 public class HtmlFormatRenderer
         extends HtmlRenderer
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGridRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGridRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGridRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGridRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,16 +18,22 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase;
 
 
 /**
  * X-CHECKED: tlddoc h:panelGrid 1.0 final
  *
+ *
  * @author Manfred Geiler (latest modification by $Author$)
  * @author Thomas Spiegl
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Panel",
+    type="javax.faces.Grid")
 public class HtmlGridRenderer
     extends HtmlGridRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGroupRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGroupRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGroupRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlGroupRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,14 +18,20 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase;
 
 
 /**
+ *   
  * @author Thomas Spiegl (latest modification by $Author$)
  * @author Manfred Geiler
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Panel",
+    type="javax.faces.Group")
 public class HtmlGroupRenderer
     extends HtmlGroupRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlHiddenRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlHiddenRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlHiddenRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlHiddenRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,11 +18,7 @@
  */
 package org.apache.myfaces.renderkit.html;
 
-import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
-import org.apache.myfaces.shared_impl.renderkit.RendererUtils;
-import org.apache.myfaces.shared_impl.renderkit.html.HTML;
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlRenderer;
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils;
+import java.io.IOException;
 
 import javax.faces.component.UIComponent;
 import javax.faces.component.UIInput;
@@ -30,14 +26,25 @@
 import javax.faces.context.FacesContext;
 import javax.faces.context.ResponseWriter;
 import javax.faces.convert.ConverterException;
-import java.io.IOException;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
+import org.apache.myfaces.shared_impl.renderkit.RendererUtils;
+import org.apache.myfaces.shared_impl.renderkit.html.HTML;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlRenderer;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils;
 
 
 /**
+ *   
  * @author Thomas Spiegl (latest modification by $Author$)
  * @author Anton Koinov
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Input",
+    type="javax.faces.Hidden")
 public class HtmlHiddenRenderer
 extends HtmlRenderer
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlImageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlImageRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlImageRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlImageRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,14 +18,20 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlImageRendererBase;
 
 
 /**
+ *   
  * @author Thomas Spiegl (latest modification by $Author$)
  * @author Anton Koinov
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Graphic",
+    type="javax.faces.Image")
 public class HtmlImageRenderer
 extends HtmlImageRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLabelRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLabelRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLabelRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLabelRenderer.java Sat Sep 13 16:10:53 2008
@@ -28,6 +28,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
 import org.apache.myfaces.shared_impl.renderkit.RendererUtils;
 import org.apache.myfaces.shared_impl.renderkit.html.HTML;
@@ -36,11 +37,16 @@
 
 
 /**
+ *   
  * @author Thomas Spiegl (latest modification by $Author$)
  * @author Anton Koinov
  * @author Martin Marinschek
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Output",
+    type="javax.faces.Label")
 public class HtmlLabelRenderer
 extends HtmlRenderer
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLinkRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLinkRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLinkRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlLinkRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,26 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderers;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase;
 
 
 /**
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderers(renderers={
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.Output",
+        type="javax.faces.Link"),    
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.Command",
+        type="javax.faces.Link")
+})
 public class HtmlLinkRenderer
     extends HtmlLinkRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlListboxRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlListboxRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlListboxRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlListboxRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,26 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderers;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlListboxRendererBase;
 
 
 /**
+ *   
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderers(renderers={
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.SelectOne",
+        type="javax.faces.Listbox"),   
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.SelectMany",
+        type="javax.faces.Listbox")
+})
 public class HtmlListboxRenderer
         extends HtmlListboxRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMenuRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMenuRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMenuRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMenuRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,26 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderers;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase;
 
 
 /**
+ *   
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderers(renderers={
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.SelectOne",
+        type="javax.faces.Menu"),    
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.SelectMany",
+        type="javax.faces.Menu")
+})
 public class HtmlMenuRenderer
         extends HtmlMenuRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessageRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessageRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessageRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,18 +18,25 @@
  */
 package org.apache.myfaces.renderkit.html;
 
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlMessageRendererBase;
+import java.io.IOException;
 
 import javax.faces.application.FacesMessage;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
-import java.io.IOException;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlMessageRendererBase;
 
 /**
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @author Thomas Spiegl
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Message",
+    type="javax.faces.Message")
 public class HtmlMessageRenderer
         extends HtmlMessageRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessagesRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessagesRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessagesRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlMessagesRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,12 +18,14 @@
  */
 package org.apache.myfaces.renderkit.html;
 
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlMessagesRendererBase;
+import java.io.IOException;
 
 import javax.faces.application.FacesMessage;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
-import java.io.IOException;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlMessagesRendererBase;
 
 /**
  *
@@ -32,6 +34,10 @@
  * @author Thomas Spiegl
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Messages",
+    type="javax.faces.Messages")
 public class HtmlMessagesRenderer
         extends HtmlMessagesRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRadioRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRadioRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRadioRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRadioRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,14 +18,20 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlRadioRendererBase;
 
 
 /**
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @author Thomas Spiegl
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.SelectOne",
+    type="javax.faces.Radio")
 public class HtmlRadioRenderer
         extends HtmlRadioRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java Sat Sep 13 16:10:53 2008
@@ -18,27 +18,30 @@
  */
 package org.apache.myfaces.renderkit.html;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils;
-import org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.Writer;
+import java.util.HashMap;
+import java.util.Map;
 
 import javax.faces.context.ResponseStream;
 import javax.faces.context.ResponseWriter;
 import javax.faces.render.RenderKit;
 import javax.faces.render.Renderer;
 import javax.faces.render.ResponseStateManager;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.Writer;
-import java.util.HashMap;
-import java.util.Map;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderKit;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils;
+import org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl;
 
 
 /**
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderKit(renderKitId = "HTML_BASIC")
 public class HtmlRenderKitImpl
     extends RenderKit
 {
@@ -139,38 +142,39 @@
 
     public ResponseStream createResponseStream(OutputStream outputStream)
     {
-        final OutputStream output = outputStream;
-
-        return new ResponseStream()
-        {
-            public void write(int b) throws IOException
-            {
-                output.write(b);
-            }
-
+        return new MyFacesResponseStream(outputStream);       
+    }
 
-            public void write(byte b[]) throws IOException
-            {
-                output.write(b);
-            }
+    private static class MyFacesResponseStream extends ResponseStream {
+        private OutputStream output;
 
+        public MyFacesResponseStream(OutputStream output) {
+            this.output = output;
+        }
 
-            public void write(byte b[], int off, int len) throws IOException
-            {
-                output.write(b, off, len);
-            }
+        public void write(int b) throws IOException
+        {
+            output.write(b);
+        }
 
+        public void write(byte b[]) throws IOException
+        {
+            output.write(b);
+        }
 
-            public void flush() throws IOException
-            {
-                output.flush();
-            }
+        public void write(byte b[], int off, int len) throws IOException
+        {
+            output.write(b, off, len);
+        }
 
+        public void flush() throws IOException
+        {
+            output.flush();
+        }
 
-            public void close() throws IOException
-            {
-                output.close();
-            }
-        };
+        public void close() throws IOException
+        {
+            output.close();
+        }
     }
 }

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlSecretRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlSecretRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlSecretRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlSecretRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,19 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlSecretRendererBase;
 
 
 /**
+ *   
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Input",
+    type="javax.faces.Secret")
 public class HtmlSecretRenderer
         extends HtmlSecretRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTableRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTableRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTableRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTableRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,19 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase;
 
 
 /**
+ * 
  * @author Thomas Spiegl (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Data",
+    type="javax.faces.Table")
 public class HtmlTableRenderer
     extends HtmlTableRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,26 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderers;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase;
 
 
 /**
+ *   
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderers(renderers={
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.Input",
+        type="javax.faces.Text"),
+    @JSFRenderer(
+        renderKitId="HTML_BASIC",
+        family="javax.faces.Output",
+        type="javax.faces.Text")
+})
 public class HtmlTextRenderer
         extends HtmlTextRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextareaRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextareaRenderer.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextareaRenderer.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlTextareaRenderer.java Sat Sep 13 16:10:53 2008
@@ -18,13 +18,19 @@
  */
 package org.apache.myfaces.renderkit.html;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFRenderer;
 import org.apache.myfaces.shared_impl.renderkit.html.HtmlTextareaRendererBase;
 
 
 /**
+ *   
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFRenderer(
+    renderKitId="HTML_BASIC",
+    family="javax.faces.Input",
+    type="javax.faces.Textarea")
 public class HtmlTextareaRenderer
         extends HtmlTextareaRendererBase
 {

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ActionListenerTag.java Sat Sep 13 16:10:53 2008
@@ -22,10 +22,22 @@
 import javax.faces.component.ActionSource;
 import javax.faces.event.ActionListener;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
+
 /**
+ * This tag creates an instance of the specified ActionListener, and
+ * associates it with the nearest parent UIComponent.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ * </p>
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFJspTag(
+        name="f:actionListener",
+        bodyContent="empty")
 public class ActionListenerTag
         extends GenericListenerTag<ActionSource, ActionListener>
 {
@@ -46,6 +58,29 @@
     {
         return new DelegateActionListener(type,binding);
     }
+    
+    /**
+     * The fully qualified class name of the ActionListener class.
+     */
+    @JSFJspAttribute(
+            className="java.lang.String",
+            rtexprvalue=true)
+    public void setType(ValueExpression type)
+    {
+        super.setType(type);
+    }
+    
+    /**
+     * Value binding expression that evaluates to an object that
+     * implements javax.faces.event.ActionListener.
+     */
+    @JSFJspAttribute(
+            className="javax.faces.event.ActionListener",
+            rtexprvalue=true)
+    public void setBinding(ValueExpression binding)
+    {
+        super.setBinding(binding);
+    }
 }
 
 

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/AttributeTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/AttributeTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/AttributeTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/AttributeTag.java Sat Sep 13 16:10:53 2008
@@ -27,11 +27,44 @@
 import javax.el.ValueExpression;
 import javax.el.ELContext;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
+
 /**
+ * This tag associates an attribute with the nearest parent
+ * UIComponent.
+ * <p>
+ * When the value is not an EL expression, this tag has the same effect
+ * as calling component.getAttributes.put(name, value). When the attribute
+ * name specified matches a standard property of the component, that
+ * property is set. However it is also valid to assign attributes
+ * to components using any arbitrary name; the component itself won't
+ * make any use of these but other objects such as custom renderers,
+ * validators or action listeners can later retrieve the attribute
+ * from the component by name.
+ * </p>
+ * <p>
+ * When the value is an EL expression, this tag has the same effect
+ * as calling component.setValueBinding. A call to method
+ * component.getAttributes().get(name) will then cause that
+ * expression to be evaluated and the result of the expression is
+ * returned, not the original EL expression string.
+ * </p>
+ * <p>
+ * See the javadoc for UIComponent.getAttributes for more details.
+ * </p>
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ * </p>
+ * 
  * @author Manfred Geiler (latest modification by $Author$)
  * @author Bruno Aranda (JSR-252)
  * @version $Revision$ $Date$
  */
+@JSFJspTag(
+        name="f:attribute",
+        bodyContent="empty")
 public class AttributeTag
         extends TagSupport
 {
@@ -40,16 +73,26 @@
     private ValueExpression _valueExpression;
 
     /**
+     * The name of the attribute.
+     * 
      * @param nameExpression
      */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="java.lang.String")
     public void setName(ValueExpression nameExpression)
     {
         _nameExpression = nameExpression;
     }
 
     /**
+     * The attribute's value.
+     * 
      * @param valueExpression
      */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="java.lang.Object")
     public void setValue(ValueExpression valueExpression)
     {
         _valueExpression = valueExpression;

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ConverterImplTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ConverterImplTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ConverterImplTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ConverterImplTag.java Sat Sep 13 16:10:53 2008
@@ -25,15 +25,20 @@
 import javax.faces.webapp.ConverterELTag;
 import javax.servlet.jsp.JspException;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
+
 /**
- * Implementation of ConverterELTag
- * 
- * Implements the Tag class of f:converter
+ * This tag creates an instance of the specified Converter, and
+ * associates it with the nearest parent UIComponent.
  * 
  * @author Leonardo Uribe (latest modification by $Author$)
  * @version $Revision$ $Date$
  *
  */
+@JSFJspTag(
+        name="f:converter",
+        bodyContent="empty")
 public class ConverterImplTag extends ConverterELTag
 {
 
@@ -47,11 +52,23 @@
         super();
     }
 
+    /**
+     * The converter's registered ID.
+     */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="java.lang.String")
     public void setConverterId(ValueExpression converterId)
     {
         _converterId = converterId;
     }
 
+    /**
+     * A ValueExpression that evaluates to a Converter.
+     */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="javax.faces.convert.Converter")
     public void setBinding(ValueExpression binding)
     {
         _binding = binding;

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/GenericListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/GenericListenerTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/GenericListenerTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/GenericListenerTag.java Sat Sep 13 16:10:53 2008
@@ -78,9 +78,9 @@
             throw new JspException("no parent UIComponentTag found");
         }
 
-        if (_type == null)
+        if (_type == null && _binding == null)
         {
-            throw new JspException("type attribute not set");
+            throw new JspException("\"actionListener\" must have binding and/or type attribute.");
         }
 
         if (!componentTag.getCreated())
@@ -88,11 +88,6 @@
             return Tag.SKIP_BODY;
         }
 
-        if (_type == null)
-        {
-            throw new JspException("type attribute not set");
-        }
-
         _Holder holder = null;
         UIComponent component = componentTag.getComponentInstance();
         try

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/LoadBundleTag.java Sat Sep 13 16:10:53 2008
@@ -36,16 +36,27 @@
 import javax.servlet.jsp.tagext.TagSupport;
 import javax.el.ValueExpression;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
 /**
+ * Loads a resource bundle and saves it as a variable in the request scope.
+ * <p>
+ * Unless otherwise specified, all attributes accept static values or EL expressions.
+ * </p>
+ * <p> 
  * TODO:
  * We should find a way to save loaded bundles in the state, because otherwise
  * on the next request the bundle map will not be present before the render phase
  * and value bindings that reference to the bundle will always log annoying
  * "Variable 'xxx' could not be resolved" error messages.
+ * </p>
  *
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFJspTag(
+        name="f:loadBundle",
+        bodyContent="empty")
 public class LoadBundleTag
         extends TagSupport
 {
@@ -54,11 +65,23 @@
     private ValueExpression _basename;
     private String _var;
 
+    /**
+     * The base name of the resource bundle.
+     */
+    @JSFJspAttribute(
+            required=true,
+            rtexprvalue=true,
+            className="java.lang.String")
     public void setBasename(ValueExpression basename)
     {
         _basename = basename;
     }
 
+    /**
+     * The name of the variable in request scope that the resources
+     * are saved to.  This must be a static value.
+     */
+    @JSFJspAttribute(required=true)
     public void setVar(String var)
     {
         _var = var;

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/PhaseListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/PhaseListenerTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/PhaseListenerTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/PhaseListenerTag.java Sat Sep 13 16:10:53 2008
@@ -20,6 +20,8 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
 import org.apache.myfaces.shared_impl.util.ClassUtils;
 
 import javax.el.ValueExpression;
@@ -37,9 +39,14 @@
 import java.io.Serializable;
 
 /**
+ * Register a PhaseListener instance
+ * 
  * @author martin.haimberger
  * @version $Revision: 462929 $ $Date: 2006-10-11 21:26:36 +0100 (mi�, 11 oct 2006) $
  */
+@JSFJspTag(
+        name="f:phaseListener",
+        bodyContent="empty")
 public class PhaseListenerTag extends TagSupport {
 
     private final Log log = LogFactory.getLog(PhaseListenerTag.class);
@@ -53,12 +60,23 @@
      * A value binding expression used to create a PhaseListener instance.
      */
     private ValueExpression binding = null;
-
-    /*--- Setter ---*/
+    
+    /**
+     * Class name of the PhaseListener to be created and registered.
+     */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="java.lang.String")
     public void setType(ValueExpression type) {
         this.type = type;
     }
 
+    /**
+     * Value binding expression that evaluates to a PhaseListener.
+     */
+    @JSFJspAttribute(
+            className="javax.faces.event.PhaseListener",
+            rtexprvalue=true)
     public void setBinding(ValueExpression binding) {
         this.binding = binding;
     }

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SetPropertyActionListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SetPropertyActionListenerTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SetPropertyActionListenerTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SetPropertyActionListenerTag.java Sat Sep 13 16:10:53 2008
@@ -29,13 +29,17 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
 import org.apache.myfaces.event.SetPropertyActionListener;
 
 /**
  * @author Dennis Byrne
  * @since 1.2
  */
-
+@JSFJspTag(
+        name="f:setPropertyActionListener",
+        bodyContent="empty")
 public class SetPropertyActionListenerTag extends TagSupport
 {
     
@@ -88,6 +92,10 @@
         return SKIP_BODY;
     }
     
+    /**
+     * ValueExpression for the destination of the value attribute.
+     */
+    @JSFJspAttribute(required=true)
     public ValueExpression getTarget()
     {
         return target;
@@ -98,6 +106,12 @@
         this.target = target;
     }
 
+    /**
+     * ValueExpression for the value of the target attribute.
+     * 
+     * @return
+     */
+    @JSFJspAttribute(required=true)
     public ValueExpression getValue()
     {
         return value;

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java Sat Sep 13 16:10:53 2008
@@ -25,6 +25,7 @@
 import javax.faces.context.FacesContext;
 
 import org.apache.myfaces.application.jsp.ViewResponseWrapper;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
 
 /**
  * @author Thomas Spiegl (latest modification by $Author$)

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValidatorImplTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValidatorImplTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValidatorImplTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValidatorImplTag.java Sat Sep 13 16:10:53 2008
@@ -26,12 +26,38 @@
 import javax.faces.webapp.ValidatorELTag;
 import javax.servlet.jsp.JspException;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
+
 /**
- * Basic Validator implementation.
+ * Creates a validator and associates it with the nearest parent UIComponent. 
+ * <p>
+ *  During the validation phase (or the apply-request-values
+ * phase for immediate components), if the associated component has any
+ * submitted value and the conversion of that value to the required
+ * type has succeeded then the specified validator type is
+ * invoked to test the validity of the converted value.
+ * </p>
+ * <p>
+ * Commonly associated with an h:inputText entity, but may be applied to
+ * any input component.
+ * </p>
+ * <p>
+ * Some validators may allow the component to use attributes to define
+ * component-specific validation constraints; see the f:attribute tag.
+ * See also the "validator" attribute of all input components, which
+ * allows a component to specify an arbitrary validation &lt;i&gt;method&lt;/i&gt;
+ * (rather than a registered validation type, as this tag does).
+ * </p>
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ * </p>
  *
  * @author Leonardo Uribe (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFJspTag(name="f:validator",bodyContent="empty")
 public class ValidatorImplTag
         extends ValidatorELTag
 {
@@ -39,11 +65,24 @@
     private ValueExpression _binding;
     private String _validatorIdString = null;
 
+    /**
+     * The registered ID of the desired Validator.
+     */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="java.lang.String")    
     public void setValidatorId(ValueExpression validatorId)
     {
         _validatorId = validatorId;
     }
 
+    /**
+     *  A ValueExpression that evaluates to an implementation of
+     * the javax.faces.validator.Validator interface. 
+     */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="javax.faces.validator.Validator")
     public void setBinding(ValueExpression binding)
     {
         _binding = binding;

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/ValueChangeListenerTag.java Sat Sep 13 16:10:53 2008
@@ -23,10 +23,29 @@
 import javax.faces.event.ActionListener;
 import javax.faces.event.ValueChangeListener;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
+
 /**
+ * Adds the specified ValueChangeListener to the nearest parent UIComponent 
+ * (which is expected to be a UIInput component).
+ * <p>
+ * Whenever the form containing the parent UIComponent is submitted,
+ * an instance of the specified type is created. If the submitted
+ * value from the component is different from the component's current
+ * value then a ValueChangeEvent is queued. When the ValueChangeEvent
+ * is processed (at end of the validate phase for non-immediate components,
+ * or at end of the apply-request-values phase for immediate components)
+ * the object's processValueChange method is invoked.
+ * </p>
+ * <p>
+ * Unless otherwise specified, all attributes accept static values
+ * or EL expressions.
+ * </p>
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFJspTag(name="f:valueChangeListener",bodyContent="empty")
 public class ValueChangeListenerTag
         extends GenericListenerTag<EditableValueHolder, ValueChangeListener>
 {
@@ -46,5 +65,28 @@
             ValueExpression binding)
     {
         return new DelegateValueChangeListener(type,binding);
+    }
+
+    /**
+     * The name of a Java class that implements ValueChangeListener.
+     */
+    @JSFJspAttribute(
+            className="java.lang.String",
+            rtexprvalue=true)
+    public void setType(ValueExpression type)
+    {
+        super.setType(type);
+    }
+
+    /**
+     * Value binding expression that evaluates to an implementation of
+     * the javax.faces.event.ValueChangeListener interface.
+     */
+    @JSFJspAttribute(
+            className="javax.faces.event.ValueChangeListener",
+            rtexprvalue=true)
+    public void setBinding(ValueExpression binding)
+    {
+        super.setBinding(binding);
     }    
 }

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java?rev=695059&r1=695058&r2=695059&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/taglib/core/VerbatimTag.java Sat Sep 13 16:10:53 2008
@@ -18,6 +18,8 @@
  */
 package org.apache.myfaces.taglib.core;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspAttribute;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
 import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
 import org.apache.myfaces.shared_impl.taglib.UIComponentELTagBase;
 
@@ -31,6 +33,7 @@
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
+@JSFJspTag(name="f:verbatim",bodyContent="JSP")
 public class VerbatimTag
         extends UIComponentELTagBase
 {
@@ -61,11 +64,25 @@
         component.setTransient(true);
     }
 
+    /**
+     * If true, generated markup is escaped.  Default:  false.
+     */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="java.lang.Boolean")
     public void setEscape(ValueExpression escape)
     {
         _escape = escape;
     }
 
+    /**
+     * Flag indicating whether or not this component should be rendered
+     * (during Render Response Phase), or processed on any subsequent
+     * form submit.  The default value for this property is true.
+     */
+    @JSFJspAttribute(
+            rtexprvalue=true,
+            className="java.lang.Boolean")
     public void setRendered(ValueExpression rendered)
     {
         _rendered = rendered;