* event source.
*/
@SuppressWarnings("unchecked")
public void removeFacets(ActionEvent event)
{
CoreCommandButton eventSource = (CoreCommandButton) event.getComponent();
//pu: Anything until ":" in the button text represents the facet name/s
String facetNameFromButtonText = (eventSource.getText().split(":"))[0];
//pu: In case of the button that removes multiple facets, this is again
// delimited by "_"
String removableFacetNames[] = facetNameFromButtonText.split("_");
//pu: Get the CorePanelPage components that has all the removable facets
UIComponent uic = eventSource.findComponent("pp1");
Map<String, UIComponent> facets = uic.getFacets();
if (facets.keySet().size() == 0)
return;
for (int i=0; i<removableFacetNames.length; i++)