<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
  Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:component xmlns="http://www.w3.org/1999/xhtml"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:a4j="http://richfaces.org/a4j"
   xmlns:rich="http://richfaces.org/rich"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets">
 
<rich:modalPanel id="confirmation" width="400" height="250">
   <f:facet name="header">Confirmation</f:facet>
   <a4j:form id="confirmForm">
   <h:panelGrid>
      <h:panelGrid columns="2">
         <h:graphicImage value="img/alert.jpeg" />
	 <h:outputText value="#{modalPanelHelper.caption}" />
      </h:panelGrid>
      <h:panelGroup>
         <rich:spacer height="20px" />
	 <a4j:commandButton value="OK" actionListener="#{modalPanelHelper[modalPanelHelper.actionName]}" id="storebutton" oncomplete="#{rich:component('confirmation')}.hide()" reRender="tree, selectedNode"/>
	 <input type="button" value="Cancel"
	   onclick="#{rich:component('confirmation')}.hide();return false" />
      </h:panelGroup>
   </h:panelGrid>
   </a4j:form>
</rich:modalPanel>
</ui:component>