hi!
i'm simulating a click on a commandButton with JS, using it as a sort of "callback" from a popup window, in order to refresh the primary page with the data inserted in the popup.
i'm using Seam 2.1.1 and richfaces 3.3.2 (from CVS)
the popup is used in other pages so it starts a conversation then ends it. The refresh has no conversation annotation on it, but the class has @Scope(ScopeType.CONVERSATION)
here's the button
<h:commandButton action="#{arcRegManager.refreshRegistrazioneDoc}"
style="display:none"
id="refreshDocumento"
/>
and here's the JS
...
buttonNewRegDoc=document.getElementById("newRegDoc:refreshDocumento");
if(buttonNewRegDoc!=null){
buttonNewRegDoc.click();
}
any suggestion? Could it be that the Scope declaration is causing the problem? and if that's the answer, why did it work fine in Seam 1.2?
thanks