need to pass cookies to the submission handler, otherwise content is written to the wrong xformsbean.

removing the submit button.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3520 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-08-15 15:28:29 +00:00
parent 6aea4ef3af
commit d385022212
4 changed files with 57 additions and 13 deletions

View File

@@ -51,3 +51,29 @@ final InstanceData instanceData = new InstanceData() {
};
tim.generate(instanceData, tt, out);
%>
<script type="text/javascript">
dojo.addOnLoad(function()
{
//alert('foo');
var b = document.getElementById("wizard:next-button");
var baseOnClick = b.onclick;
b.onclick = function()
{
if (!document.submitTrigger.done)
{
document.submitTrigger.buttonClick();
return false;
}
else
{
return baseOnClick();
}
}
});
function doSubmit()
{
var b = document.getElementById("wizard:next-button");
b.click();
}
</script>