Each button posts its id (and value) back when it is submitting.  This
is how JSF knows which action listener to invoke.  So just tell the
script to "click" the appropriate button.

sean


On Tue, 15 Feb 2005 12:44:46 -0600, Norm Deane
<[EMAIL PROTECTED]> wrote:
> Sean Schofield wrote:
> 
> >I took a look at what we are doing in our current application (no
> >Faces just yet) that uses Tiles and has the "nav" section you are
> >describing.
> >
> >Basically we know the id of the form that will ultimately end up in
> >the "main" section of our page so we use:
> >
> >document.forms.fooForm.submit();
> >
> >Why not just use this approach?  I think you can add a style to your
> ><h:commandButton> so it would be hidden.
> >
> >
> >
> There are actually multiple buttons on this form that could trigger a
> submit. Each button is associated with a different actionListener
> method.  How would it know which actionListener to fire if I just used
> "document.forms.fooForm.submit();" ?
> 
> >sean
> >
> >
> >
> 
> Norm
>

Reply via email to