The hidden command button/javascript click() solution is working for me. I'm not real crazy about it though. Seems like a hack. How about a JSF component that renders a submit button for a form defined elsewhere? I haven't dug very deep into the JSF internals yet but it seems like the component could navigate the component tree, find a form by id, and then render a submit button that uses JavaScript to submit the form. Would this work?

Thanks,

Norm Deane
http://jroller.com/page/deanen


Norm Deane wrote:

Sean Schofield wrote:

Hmmm.  Well I better figure this out because the application I am
going to eventually be porting over an existing application to JSF
that will require this!

How about this ...

Make a command button on the main page but have it be hidden (with a
style I guess.)  Give it a meaningful id and use the new forceId
attribute.  Then have a button on your nav page that uses javascript
and getElementById to locate the button and "click" it.




I think I'll give this approach a shot and see how it works.

Another option might be to put the <h:form> tag in your top level
tiles layout page so both your nav page and your main page are part of
the same form.

HTH,

sean



I thought about this approach but it could get messy when you get into multiple forms on a page.

Norm




Reply via email to