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/06/04 05:06:00 UTC
svn commit: r662952 - in
/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x:
./ api/ api/src/main/java-templates/javax/faces/component/
api/src/main/java/javax/faces/component/
Author: lu4242
Date: Tue Jun 3 20:05:59 2008
New Revision: 662952
URL: http://svn.apache.org/viewvc?rev=662952&view=rev
Log:
Component generation for myfaces core 1.2
Added:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UIMessage.java (with props)
Modified:
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/pom.xml
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java-templates/javax/faces/component/UIGraphicTemplate.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponent.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIForm.java
myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/pom.xml
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/pom.xml?rev=662952&r1=662951&r2=662952&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/pom.xml (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/pom.xml Tue Jun 3 20:05:59 2008
@@ -42,6 +42,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.myfaces.buildtools</groupId>
<artifactId>myfaces-faces-plugin</artifactId>
@@ -69,6 +70,28 @@
</dependency>
</dependencies>
</plugin>
+ -->
+ <plugin>
+ <groupId>org.apache.myfaces.buildtools</groupId>
+ <artifactId>myfaces-builder-plugin</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>build-metadata</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>makecomp</id>
+ <configuration>
+ <jsfVersion>12</jsfVersion>
+ </configuration>
+ <goals>
+ <goal>make-components</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<profiles>
@@ -172,7 +195,12 @@
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
-
+ <dependency>
+ <groupId>org.apache.myfaces.buildtools</groupId>
+ <artifactId>myfaces-builder-annotations</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java-templates/javax/faces/component/UIGraphicTemplate.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java-templates/javax/faces/component/UIGraphicTemplate.java?rev=662952&r1=662951&r2=662952&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java-templates/javax/faces/component/UIGraphicTemplate.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java-templates/javax/faces/component/UIGraphicTemplate.java Tue Jun 3 20:05:59 2008
@@ -36,6 +36,7 @@
setValue(url);
}
+ @JSFProperty
/**///getUrl
public String getUrl()
{
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponent.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponent.java?rev=662952&r1=662951&r2=662952&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponent.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponent.java Tue Jun 3 20:05:59 2008
@@ -27,12 +27,20 @@
import javax.faces.el.ValueBinding;
import javax.faces.event.AbortProcessingException;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+
/**
* see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
*
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
+@JSFComponent(
+ type="javax.faces.Component",
+ family="javax.faces.Component",
+ desc = "abstract base component",
+ configExcluded = true
+ )
public abstract class UIComponent
implements StateHolder
{
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java?rev=662952&r1=662951&r2=662952&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIComponentBase.java Tue Jun 3 20:05:59 2008
@@ -17,6 +17,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspProperty;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
import javax.el.ValueExpression;
import javax.faces.FacesException;
@@ -54,6 +57,14 @@
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
+@JSFComponent(type = "javax.faces.ComponentBase",
+ family = "javax.faces.ComponentBase",
+ desc = "base component when all components must inherit",
+ tagClass = "javax.faces.webapp.UIComponentELTag")
+@JSFJspProperty(name = "binding" ,
+ returnType = "java.lang.String",
+ longDesc = "Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.",
+ desc="backing bean property to bind to this component instance")
public abstract class UIComponentBase
extends UIComponent
{
@@ -263,6 +274,8 @@
* Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer
* component. The id is not necessarily unique across all components in the current view.
*/
+ @JSFProperty
+ (literalOnly = true)
public String getId()
{
return _id;
@@ -902,6 +915,10 @@
getPathToComponent(component.getParent(), buf);
}
+ @JSFProperty(
+ literalOnly = true,
+ istransient = true,
+ tagExcluded = true)
public boolean isTransient()
{
return _transient;
@@ -1220,6 +1237,11 @@
_rendered = Boolean.valueOf(rendered);
}
+ /**
+ * A boolean value that indicates whether this component should be rendered.
+ * Default value: true.
+ **/
+ @JSFProperty
public boolean isRendered()
{
return getExpressionValue("rendered", _rendered, DEFAULT_RENDERED);
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIForm.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIForm.java?rev=662952&r1=662951&r2=662952&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIForm.java (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/UIForm.java Tue Jun 3 20:05:59 2008
@@ -19,6 +19,9 @@
import javax.faces.context.FacesContext;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
/**
* see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
@@ -26,6 +29,8 @@
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
*/
+@JSFComponent(type = "javax.faces.Form",
+ family = "javax.faces.Form")
public class UIForm
extends UIComponentBase
implements NamingContainer
@@ -142,6 +147,7 @@
return null;
}
+ @JSFProperty(defaultValue = "true")
public boolean isPrependId()
{
return getExpressionValue("prependId", _prependId, true);
Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UIMessage.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UIMessage.java?rev=662952&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UIMessage.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UIMessage.java Tue Jun 3 20:05:59 2008
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+package javax.faces.component;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+/**
+ *
+ * UIMessage is the base component class for components
+ * that display a single message on behalf of a component.
+ */
+@JSFComponent
+(clazz = "javax.faces.component.UIMessage",
+defaultRendererType = "javax.faces.Message"
+)
+abstract class _UIMessage extends UIComponentBase
+{
+
+ static public final String COMPONENT_FAMILY =
+ "javax.faces.Message";
+ static public final String COMPONENT_TYPE =
+ "javax.faces.Message";
+
+ /**
+ * The ID of the component whose attached FacesMessage object (if present)
+ * should be diplayed by this component.
+ * <p>
+ * This is a required property on the component.
+ * </p>
+ *
+ * @return the new for value
+ */
+ @JSFProperty
+ (required = true)
+ public abstract String getFor();
+
+ /**
+ * Specifies whether the detailed information from the message should be shown.
+ * Default to false.
+ *
+ * @return the new showDetail value
+ */
+ @JSFProperty
+ (defaultValue = "true")
+ public abstract boolean isShowDetail();
+
+ /**
+ * Specifies whether the summary information from the message should be shown.
+ * Defaults to true.
+ *
+ * @return the new showSummary value
+ */
+ @JSFProperty
+ (defaultValue = "false")
+ public abstract boolean isShowSummary();
+
+}
Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/api/src/main/java/javax/faces/component/_UIMessage.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/pom.xml?rev=662952&r1=662951&r2=662952&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/pom.xml (original)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/core_trunk_1.2.x/pom.xml Tue Jun 3 20:05:59 2008
@@ -66,7 +66,7 @@
<plugin>
<groupId>org.apache.myfaces.buildtools</groupId>
<artifactId>myfaces-faces-plugin</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>