On 10/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > So, is it possible to submit a form to another page, either with > submit button or with a link?
There is no such attribute on the <h:commandButton> or <h:commandLink> components, because in HTML that is not what determines where the submit goes -- it's the "action" attribute of the parent form component that determines that. The only way to do what you're describing is to have some client side Javascript that goes and messes with the action attribute before calling document.submit(). Of course, doing this means you're throwing away the current component tree, so it kind of defeats the purpose of using JSF in the first place. If you want alternative processing of the same input data based some environmental conditions, that's whay DI frameworks like Spring or Hivemind let you build up on the server side -- just use them in the action method that handles the submit to do what you need, without trying to mess around at the HTML level. OutputLink does not seem to submit a > form. Nope ... that's why <h:commandLink> exists, to provide you something that looks like a hyperlink but actually does submit the form. Michael. Craig