assign the form action thru javascript in JSF
843844Feb 14 2007 — edited Feb 16 2007<h:commandButton id="finish" value="Finish " onclick="finish()"/>
when the finish button clicked,finsih() method in javascript should assign the action url for the above button and should submit the form .Can any one tell me how to do it?
i tried the following code,but it didnt work
finish()
{
document.getElemebtById('formId:finish').action='#{BackingBean.page1Action};
document.getElemebtById('formId:finish').click();
}
Thanks for any response.
-GoM