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 2009/09/19 00:55:00 UTC
svn commit: r816805 -
/myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentChildrenList.java
Author: lu4242
Date: Fri Sep 18 22:54:59 2009
New Revision: 816805
URL: http://svn.apache.org/viewvc?rev=816805&view=rev
Log:
MYFACES-2225 Implement PostAddToViewEvent and PreRemoveFromViewEvent thrown conditions (cleanup)
Modified:
myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentChildrenList.java
Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentChildrenList.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentChildrenList.java?rev=816805&r1=816804&r2=816805&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentChildrenList.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentChildrenList.java Fri Sep 18 22:54:59 2009
@@ -23,10 +23,6 @@
import java.util.ArrayList;
import java.util.List;
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseId;
-import javax.faces.event.PostAddToViewEvent;
-
/**
* @author Manfred Geiler (latest modification by $Author$)
* @version $Revision$ $Date$
@@ -122,20 +118,6 @@
private void childAdded(UIComponent child)
{
updateParent(child);
-
- /*
- FacesContext context = FacesContext.getCurrentInstance();
-
- // After the child component has been added to the view, if the following condition is not met
- // FacesContext.isPostback() returns true and FacesContext.getCurrentPhaseId() returns PhaseId.RESTORE_VIEW
- if (!(context.isPostback() && PhaseId.RESTORE_VIEW.equals(context.getCurrentPhaseId())))
- {
- // Application.publishEvent(java.lang.Class, java.lang.Object) must be called, passing
- // PostAddToViewEvent.class as the first argument and the newly added component as the second
- // argument. TODO: Deal with isInView
- context.getApplication().publishEvent(PostAddToViewEvent.class, child);
- }
- */
}
private void childRemoved(UIComponent child)