' Widget Refreshed'})"/>
                        <f:attribute name="widgetPreDestroy" value="PF('msgs').renderMessage({severity: 'info', summary: widget.id + ' Widget Destroyed'})"/>
                    </p:inputText>
                </h:panelGrid>

                <p:commandButton value="Submit" update="@form" icon="pi pi-check" styleClass="mr-2" />
                <p:commandButton value="Destroy" icon="pi pi-times" onclick="PF('wgtName').destroy(); return false" styleClass="ui-button-danger" />
          