Author: alexsmirnov
Date: 2009-12-28 20:11:58 -0500 (Mon, 28 Dec 2009)
New Revision: 16215
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java
Log:
set proper order of faces-config elements.
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java 2009-12-28
22:46:45 UTC (rev 16214)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java 2009-12-29
01:11:58 UTC (rev 16215)
@@ -50,7 +50,7 @@
*
* @return JSF <em>renderer-type</em>.
*/
- public String type() default "";
+ public String value() default "";
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java 2009-12-28
22:46:45 UTC (rev 16214)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java 2009-12-29
01:11:58 UTC (rev 16215)
@@ -23,16 +23,22 @@
package org.richfaces.cdk.annotations;
+import java.io.IOException;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
+import javax.faces.component.UIComponent;
+import javax.faces.view.facelets.FaceletContext;
+import javax.faces.view.facelets.TagConfig;
+import javax.faces.view.facelets.TagHandler;
+
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
*/
@Retention(RetentionPolicy.CLASS)
@@ -46,25 +52,28 @@
* <p class="changed_added_4_0">
* Name of the JSF tag that creates target component.
* </p>
- *
+ *
* @return tag name.
*/
public String name();
- /**
- * <p class="changed_added_4_0">The value of this annotation
attribute defines JSF renderer that will be
- * associated with component.</p>
- *
- * @return
- */
- public Renderer renderer();
+ public Class<? extends TagHandler> handler() default DEFAULT.class;
/**
- * <p class="changed_added_4_0">Taglib url in which generated tag
will be defined. By default CDK uses url
- * defined in the built project.</p>
- *
- * @return
+ * Used in {@link Tag} to signal that tag uses the default handler.
*/
- public String taglib() default "";
+ static final class DEFAULT extends TagHandler {
+
+ public DEFAULT(TagConfig config) {
+ super(config);
+ }
+
+ @Override
+ public void apply(FaceletContext ctx, UIComponent parent) throws IOException {
+ // do nothing
+ }
+
+ }
+
}
Show replies by date