dev@woodstock.java.net

Alert and DynaFaces in woodstock components 4.2 build 2

From: Dipesh Patel <masterdipesh_at_gmail.com>
Date: Tue, 19 Feb 2008 19:18:52 +0530

Hello,

I am using alert component.

i have delete button which delete the item and shows message in alert
component and on click of delete component i have used the following script

<webuijsf:button
actionExpression="#{products$ProductHome.btndeletproducteattachment_action}"

binding="#{products$ProductHome.btndeletproducteattachment}"
                                 id="btndeletproducteattachment"
                                 onClick="return
btndeleteproductattachment(this);" primary="true"
                                 style="width: 71px" text="Delete"/>

 function btndeleteproductattachment(temp) {
     var h=confirm("Are you sure you want to delete this product");

    if(h==true)
    {
        var h=temp.value;
        document.getElementById('form1:hiddenid').setProps({value:h});
        DynaFaces.fireAjaxTransaction(temp,{execute:temp.id+'
,form1:hiddenid',render:'*form1:mainpanel:alertpanel:alert1*
,form1:mainpanel:layoutPanel2:layoutPanel4:tabSet1:tbattachments:layoutPanel17:attachmenttablepanel'});
    }
    return false;

 }

here *form1:mainpanel:alertpanel:alert1 *is the alert component i want to
rendered using dynafaces but it is not rendered

but when i do not use ajax i.e dynafaces the alert is rendered.

*and also document.getElementById('form1:mainpanel:alertpanel:alert1').refresh()
does not work.

*so is this a bug or i am doing something wrong.

please help me

--
Dipesh Patel
Computer Engineer