We had this problem also.  The way we solved it was to have a few
different options for form configuration.

There is essentially 1 Tile for content in our pages that does an
include on a JSP.  The rest of the framework gets built from xml files
so that developers don't have to deal with styling.

Normally, a <h:form /> wraps all the Tiles, but occassionally, you
need two forms inside your content JSP, so you can use a Tiles
parameter to turn off the wrapping form.


On Thu, 10 Feb 2005 08:37:17 -0500, Sean Schofield
<[EMAIL PROTECTED]> 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.
> 
> 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
> 
> On Tue, 08 Feb 2005 13:09:03 -0600, Norm Deane
> <[EMAIL PROTECTED]> wrote:
> > Is it possible to create a form submit button (with htmlCommandLink or
> > whatever) outside the scope of the <h:form> that is submits. Sounds
> > crazy I know but consider this scenario...
> >
> > We have a Tiles application. In this Tiles application there is a
> > "navigation" tile on the left and a "content" tile on the right. The
> > navigation tile has action links that are related to the current view in
> > the content tile. Sometimes an action link in the navigation tile will
> > submit a form that is defined in the content tile. In the current
> > Struts/Tiles/JSP implementation this easily achieved through some simple
> > JavaScript onclick stuff. How can this same approach be implemented in
> > JSF?  I thought about just continuing down the JavaScript road but I
> > wasn't sure what pitfalls I might run into.
> >
> > Thanks,
> >
> > Norm Deane
> > http://jroller.com/page/deanen
> >
> 


-- 
-Heath Borders-Wing
[EMAIL PROTECTED]

Reply via email to