Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2007
Added on Feb 14 2007
7 comments
233 views