commit | 57c244715eb183823bc531d2b0deb464987e5618 | [log] [tgz] |
---|---|---|
author | Andrew Robinson <arobinson74@apache.org> | Tue Apr 09 20:43:20 2013 +0000 |
committer | Andrew Robinson <arobinson74@apache.org> | Tue Apr 09 20:43:20 2013 +0000 |
tree | 0b9289a05559d79aa193d72dc5e9e662ee60be79 | |
parent | c9c158061e265d8de41945515685479b3ec206bd [diff] |
TRINIDAD-1892 - Add support for custom tag sub-classes of generated tag classes
diff --git a/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/taglib/AbstractComponentTagGenerator.java b/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/taglib/AbstractComponentTagGenerator.java index 9399e79..2e447c8 100644 --- a/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/taglib/AbstractComponentTagGenerator.java +++ b/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/taglib/AbstractComponentTagGenerator.java
@@ -130,6 +130,14 @@ // TODO: add support for source template int modifiers = component.getTagClassModifiers(); + + // If there is no source template but there is a sub-class, then make the generate class + // abstract. + if (template == null && hasTemplate) + { + modifiers |= Modifier.ABSTRACT; + } + String classStart = Modifier.toString(modifiers); out.println("/**");