$render=explode(" ", $_POST['partial_render']);
$render[0]='alerta';
$resposta='
<span id="alerta" class="ui-growl-pl" data-widget="widget_alerta" data-summary="data-summary" data-severity="all,error" data-redisplay="true"></span>
<script id="alerta_s" type="text/javascript">
DinarteCoelho.cw("Growl", "widget_alerta", {
id: "alerta",
sticky: false,
life: 6000,
escape: true,
keepAlive: false,
msgs: [{
summary: "Enviado com o botão '.$_POST['source'].'",
detail: "",
severity: 'info',
severityText: 'Information'
}]
});
</script>
';
dc.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: []
});
dc.cw("InputText", "widget_name", {
id: "name"
});
dc.cw("InputTextarea", "widget_textarea", {
id: "textarea"
, autoResize: true
});
dc.cw("Panel", "widget_panel1", {
id: "panel1"
});
dc.cw("InputText", "widget_otherInput", {
id: "otherInput"
});
dc.cw("Panel", "widget_panel2", {
id: "panel2"
});
dc.cw("CommandButton", "widget_btn1", {
id: "btn1"
});
dc.cw("CommandButton", "widget_btn2", {
id: "btn2"
});
dc.cw("DefaultCommand", "widget_comando", {
id: "comando"
, target: "btn1"
, scope: "panel1"
});
dc.cw("DefaultCommand", "widget_padrao", {
id: "padrao"
, target: "btn2"
, scope: "panel2"
});