<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j"
               >
<rich:modalPanel id="commentPanel" resizeable="false">
        <f:facet name="header">#{modalPanelHelper.caption}</f:facet>
        <f:facet name="controls">
            <h:panelGroup>
                <h:graphicImage value="/img/modal/close.png" style="cursor:pointer" id="hidelink6"/>
                <rich:componentControl for="commentPanel" attachTo="hidelink6" operation="hide" event="onclick"/>
            </h:panelGroup>
        </f:facet>
        <a4j:form id="commentForm">
        <a4j:region renderRegionOnly="true">
            <h:panelGrid columns="1" id="editContent">
                <h:inputTextarea required="true" id="description" value="#{comment.message}">
                </h:inputTextarea>
            </h:panelGrid>
            </a4j:region>
            <a4j:commandButton oncomplete="#{rich:component('commentPanel')}.hide()" value="Save" actionListener="#{modalPanelHelper[modalPanelHelper.actionName]}" id="storebutton"  reRender="tooglePanel"/>
                <button type="button" id="cancelbutton" onclick="#{rich:component('commentPanel')}.hide()">Cancel</button>
        </a4j:form>
    </rich:modalPanel>
    </ui:composition>