@ Deprecated public static void finalizeForDeletion ( UIComponent component ) { // remove any existing marks of deletion component . getAttributes ( ) . remove ( MARK_DELETED ) ; // finally remove any children marked as deleted if ( component . getChildCount ( ) > 0 ) { for ( Iterator < UIComponent > iter = component . getChildren ( ) . iterator ( ) ; iter . hasNext ( ) ; ) { UIComponent child = iter . next ( ) ; if ( child . getAttributes ( ) . containsKey ( MARK_DELETED ) ) { iter . remove ( ) ; } } } // remove any facets marked as deleted if ( component . getFacetCount ( ) > 0 ) { Map < String , UIComponent > facets = component . getFacets ( ) ; Collection < UIComponent > col = facets . values ( ) ; for ( Iterator < UIComponent > itr = col . iterator ( ) ; itr . hasNext ( ) ; ) { UIComponent fc = itr . next ( ) ; if ( fc . getAttributes ( ) . containsKey ( MARK_DELETED ) ) { itr . remove ( ) ; } } } }
Used in conjunction with markForDeletion where any UIComponent marked will be removed .