myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sless...@apache.org
Subject svn commit: r698771 - in /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces: application/Application.java webapp/pdl/ webapp/pdl/ActionSource2AttachedObjectHandler.java webapp/pdl/AttachedObjectHandler.java
Date Wed, 24 Sep 2008 23:12:37 GMT
Author: slessard
Date: Wed Sep 24 16:12:37 2008
New Revision: 698771

URL: http://svn.apache.org/viewvc?rev=698771&view=rev
Log:
Added a part of EDR2's javax.faces.webapp.pdl classes;
Modified part Application to match EDR2.

Added:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/ActionSource2AttachedObjectHandler.java
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/AttachedObjectHandler.java
Modified:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/application/Application.java

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/application/Application.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/application/Application.java?rev=698771&r1=698770&r2=698771&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/application/Application.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/application/Application.java
Wed Sep 24 16:12:37 2008
@@ -115,7 +115,7 @@
         throw new UnsupportedOperationException();
     }
     
-    public void publishEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListenerHolder
source)
+    public void publishEvent(Class<? extends SystemEvent> systemEventClass, Object
source)
     {
         throw new UnsupportedOperationException();
     }

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/ActionSource2AttachedObjectHandler.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/ActionSource2AttachedObjectHandler.java?rev=698771&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/ActionSource2AttachedObjectHandler.java
(added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/ActionSource2AttachedObjectHandler.java
Wed Sep 24 16:12:37 2008
@@ -0,0 +1,32 @@
+/*
+ * 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.webapp.pdl;
+
+/**
+ * A PDL handler that exposes {@link javax.faces.event.ActionListener ActionListener} to
a <em>page author</em>. The
+ * default implementation of Facelets must provide an implemention of this in the handler
for the
+ * <code>&lt;f:actionListener&gt;</code> tag.
+ * 
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2008-09-24 19:04:31 -0400 (mer., 17 sept. 2008) $
+ */
+public interface ActionSource2AttachedObjectHandler
+{
+
+}

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/AttachedObjectHandler.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/AttachedObjectHandler.java?rev=698771&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/AttachedObjectHandler.java
(added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/webapp/pdl/AttachedObjectHandler.java
Wed Sep 24 16:12:37 2008
@@ -0,0 +1,54 @@
+/*
+ * 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.webapp.pdl;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+/**
+ * The abstract base interface for a handler representing an <em>attached object</em>
in a PDL page. Subinterfaces are
+ * provided for the common attached objects that expose {@link javax.faces.convert.Converter
Converter},
+ * {@link javax.faces.validator.Validator Validator}, {@link javax.faces.event.ValueChangeEvent
ValueChangeEvent}, and
+ * {@link javax.faces.event.ActionListener ActionListener} for use by <em>page authors</em>.
+ * 
+ * @author Simon Lessard (latest modification by $Author: slessard $)
+ * @version $Revision: 696523 $ $Date: 2008-09-24 19:06:57 -0400 (mer., 17 sept. 2008) $
+ */
+public interface AttachedObjectHandler
+{
+    /**
+     * Take the argument <code>parent</code> and apply this attached <code>object</code>
to it. The action taken varies
+     * with class that implements one of the subinterfaces of this interface.
+     * 
+     * @param context
+     *            The <code>FacesContext</code> for this request
+     * @param parent
+     *            The <code>UIComponent</code> to which this particular attached
object must be applied.
+     */
+    public void applyAttachedObject(FacesContext context, UIComponent parent);
+
+    /**
+     * Return the value of the "for" attribute specified by the <em>page author</em>
on the tag for this
+     * <code>AttachedObjectHandler</code>.
+     * 
+     * @return the value of the "for" attribute specified by the <em>page author</em>
on the tag for this
+     *         <code>AttachedObjectHandler</code>.
+     */
+    public String getFor();
+}



Mime
View raw message