When deploying and running developed application, you should carefully follow steps described in Oracle WebCenter Framework Tutorial - 9 Deploying Your WebCenter Application.
Developed spatial portlet used in Oracle ADF should look similar:
It is possible to refresh or hide it. This functionality is provided by Oracle WebCenter framework.
When running sample application, don't forget to add adf-faces-impl.jar, jsf-impl.jar, custComps.jar and portlet-client-adf.jar to application's WEB-INF\lib directory.