You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2008/12/12 11:40:21 UTC

svn commit: r725961 - /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java

Author: werpu
Date: Fri Dec 12 02:40:21 2008
New Revision: 725961

URL: http://svn.apache.org/viewvc?rev=725961&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2094

thank you Jan for providing the patch
 

Added:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java   (with props)

Added: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java?rev=725961&view=auto
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java (added)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java Fri Dec 12 02:40:21 2008
@@ -0,0 +1,59 @@
+/*
+ * 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.event;
+
+import javax.faces.component.UIComponent;
+
+/**
+ *
+ * @author Jan-Kees van Andel 
+ * @since 2.0
+ */
+public class InitialStateEvent extends ComponentSystemEvent
+{
+
+    /**
+     * This event marks that the component is in its initial state
+     * happens after the AfterRestore Event
+     * 
+     * @param component the affected component
+     * @throws NullPointerException the component argument is null!
+     * FIXME There seems to be an errata in the SPEC here the spec
+     * clearly says NPE while the base class throws an illegal argument
+     * exception, either we have to wrap the base class in a delegate
+     * or the spec is faulty here, I do not wrap for now
+     * and file a bug report!
+     * 
+     *
+     */
+    public InitialStateEvent(UIComponent component)
+    {
+        super(component);
+    }
+
+    /**
+     * Set a new component on the event.
+     *
+     * @param newComponent The new component.
+     */
+    public void setComponent(UIComponent newComponent)
+    {
+        source = newComponent;
+    }
+}

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/InitialStateEvent.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL