You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/04/07 00:00:32 UTC
svn commit: r645314 - in
/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt:
CreateComponentAnnotationVisitor.java FacesConfigAnnotationVisitor.java
Author: bommel
Date: Sun Apr 6 15:00:21 2008
New Revision: 645314
URL: http://svn.apache.org/viewvc?rev=645314&view=rev
Log:
(TOBAGO-637) Generate Components, JSP Tags from annotations
Now we are able to generate JSF 1.2 Components and Tags.
Modified:
myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java
myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationVisitor.java
Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java?rev=645314&r1=645313&r2=645314&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java (original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java Sun Apr 6 15:00:21 2008
@@ -242,7 +242,8 @@
throw new IllegalStateException("No UIComponentTag found for componentClass " + baseClass);
}
- private ComponentPropertyInfo addPropertyToComponent(ComponentInfo componentInfo, PropertyInfo info, int index, boolean methodExpression) {
+ private ComponentPropertyInfo addPropertyToComponent(ComponentInfo componentInfo, PropertyInfo info,
+ int index, boolean methodExpression) {
ComponentPropertyInfo componentPropertyInfo =
(ComponentPropertyInfo) info.fill(new ComponentPropertyInfo());
componentPropertyInfo.setIndex(index);
Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationVisitor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationVisitor.java?rev=645314&r1=645313&r2=645314&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationVisitor.java (original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/FacesConfigAnnotationVisitor.java Sun Apr 6 15:00:21 2008
@@ -272,7 +272,7 @@
}
private void applyNamespace(Element parent, Namespace namespace) {
- for (Element element:(List<Element>)parent.getChildren()) {
+ for (Element element:(List<Element>) parent.getChildren()) {
element.setNamespace(namespace);
applyNamespace(element, namespace);
}