I have the following issue with my portal.
  1. Add portlets
  2. Save Configuration
  3. Delete some portlets
  4. Reload portlets

When I reload the portal from a hashmap after removing all the portlets in the first column (close portlets), the portlets are not visible in my first column.
Code:
private Map<int[], Portlet> state;
	                while (iterator.hasNext()) {
	                    int[] key = (int[]) iterator.next();
	                    int col = key[0] ;//Column
	                    int row = key[1] ;//Row
	                    Portlet portlet = (Portlet)state.get(key);
	                    portal.add(portlet, col);
	                    portlet.layout();

	                }
The previous code adds the portlets to the portal (validated in debug mode) but it doesn't display them.
The following code works:
Code:
	                while (iterator.hasNext()) {
	                    int[] key = (int[]) iterator.next();
	                    int col = key[0] ;//Column
	                    int row = key[1] ;//Row
	                    chartPortlet = new OpportunityPortlet();
	    	            portal.add(chartPortlet, col);
	                    portlet.layout();

	                }
It will display the new portlet but not the saved one.

In debug mode, the following atributes are different between the new portlet and the saved one: afterrendered=true vs false and rendered=true vs /false. But I have no way to modify these value.

Could Anybody please tell me what I am missing?

Thanks a lot.