Index: stripes/src/net/sourceforge/stripes/tag/FormTag.java =================================================================== --- stripes/src/net/sourceforge/stripes/tag/FormTag.java (revision 542) +++ stripes/src/net/sourceforge/stripes/tag/FormTag.java (working copy) @@ -52,6 +52,8 @@ /** Stores the field name (or magic values ''/'first') to set focus on. */ private String focus; private boolean focusSet = false; + + private boolean partialForm; /** Stores the value of the action attribute before the context gets appended. */ private String actionWithoutContext; @@ -123,6 +125,8 @@ /** Gets the name of the field that should receive focus when the form is rendered. */ public String getFocus() { return focus; } + public void setPartialForm(boolean partialForm){ this.partialForm = partialForm; } + public boolean isPartialForm(){ return partialForm; } //////////////////////////////////////////////////////////// // Additional attributes specific to the form tag @@ -198,28 +202,33 @@ } JspWriter out = getPageContext().getOut(); - writeOpenTag(out, "form"); + if(!partialForm){ + writeOpenTag(out, "form"); + } + getBodyContent().writeOut( getPageContext().getOut() ); - // Write out a hidden field with the name of the page in it.... - // The div is necessary in order to be XHTML compliant, where a form can contain - // only block level elements (which seems stupid, but whatever). - out.write("