myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "MyfacesBuilderPlugin" by LeonardoUribe
Date Sun, 16 Mar 2008 22:15:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by LeonardoUribe:
http://wiki.apache.org/myfaces/MyfacesBuilderPlugin

------------------------------------------------------------------------------
  
  === Component class generation ===
  
-  * There are three possible scenarios for component generation:
+  There are three possible scenarios for component generation:
  
   1. Annotated class is the same component file:
  
@@ -139, +139 @@

  
  === Component tag class generation ===
  
+ The tag class can be generated like this:
  
+ {{{
+ 
+ /**
+  * @mfp.component 
+  *    tagClass = "org.apache.myfaces.component.ComponentTag" //Required for generation
+  *    tagSuperClass = "javax.faces.webapp.UIComponentTag" //default is parent by type tagClass.
+  *
+ **/
+ public class Component extends ComponentParent {
+ 
+   /**
+    * @mfp.property
+    *   tagAttributeExcluded = "true" //no generation on ComponentTag
+    *   
+   **/
+   public void setProperty(String property){
+      _property = property;
+   }
+ 
+ }
+ 
+ }}}
+ 
+ General guidelines:
+ 
+  * A component can or cannot have a generated component tag class.
+  * If a class extends from UIComponentTag and is 1.2, it is replaced to UIComponentELTag.
  
  === faces-config.xml generation ===
  
@@ -155, +183 @@

  /**
   * @mfp.renderer
   *   renderKitId = "HTML_BASIC"
+  *   componentFamily = "org.apache.myfaces.Component"
+  *   rendererType = "org.apache.myfaces.Component"
   *
  **/
- public class Component extends ComponentParent{
+ public class ComponentRenderer extends Renderer{
  
  }
  
@@ -171, +201 @@

   * Properties defined in the component class 
   * Properties defined on the parent(s) component following the type hierarchy.
  
+ General guidelines:
+ 
+  * A component that inherit properties from its parent can exclude some properties.
+ 

Mime
View raw message