| 
	
	
		
		
		
		
		 читаем документацию 
 
removeAll( [Boolean autoDestroy] ) : Array 
Removes all components from this container. 
 
Parameters 
autoDestroy : Boolean 
(optional) True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. 
 
добавляешь параметр false чтобы компонент p2 автоматически не удалялся при удалении его из панели p1  
p1.removeAll(false); 
		
	
		
		
		
		
		
		
	
		
		
	
	
	 |