Index: nbproject/project.properties =================================================================== --- nbproject/project.properties (revision 99) +++ nbproject/project.properties (working copy) @@ -66,7 +66,7 @@ main.class= manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF -platform.active=default_platform +platform.active=Java_HotSpot_TM__Client_VM_1.5.0_06-b05 run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} Index: nbproject/project.xml =================================================================== --- nbproject/project.xml (revision 99) +++ nbproject/project.xml (working copy) @@ -5,6 +5,7 @@ Stripes 1.6.5 + Index: nbproject/genfiles.properties =================================================================== --- nbproject/genfiles.properties (revision 99) +++ nbproject/genfiles.properties (working copy) @@ -1,8 +1,8 @@ -build.xml.data.CRC32=1ecb6362 +build.xml.data.CRC32=767f3b7b build.xml.script.CRC32=118e755d build.xml.stylesheet.CRC32=a12b3d02 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=1ecb6362 -nbproject/build-impl.xml.script.CRC32=93fae3cd -nbproject/build-impl.xml.stylesheet.CRC32=ccee9889 +nbproject/build-impl.xml.data.CRC32=767f3b7b +nbproject/build-impl.xml.script.CRC32=9a11c6b6 +nbproject/build-impl.xml.stylesheet.CRC32=d6fac558 Index: nbproject/build-impl.xml =================================================================== --- nbproject/build-impl.xml (revision 99) +++ nbproject/build-impl.xml (working copy) @@ -47,6 +47,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + Platform is not correctly set up @@ -91,6 +121,7 @@ + @@ -128,27 +159,49 @@ - + - - - - - + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + - + @@ -174,6 +227,9 @@ + + + @@ -187,7 +243,9 @@ - + + + @@ -206,7 +264,7 @@ - + @@ -227,7 +285,7 @@ - + @@ -263,6 +321,7 @@ + @@ -279,6 +338,7 @@ Must select some files in the IDE or set javac.includes + @@ -318,7 +378,7 @@ - java -cp "${run.classpath.with.dist.jar}" ${main.class} + ${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class} @@ -343,7 +403,7 @@ To run this application from the command line without Ant, try: - java -jar "${dist.jar.resolved}" + ${platform.java} -jar "${dist.jar.resolved}" @@ -362,7 +422,7 @@ - + Must select one file in the IDE or set run.class @@ -390,7 +450,7 @@ Must select one file in the IDE or set debug.class - + Must set fix.includes @@ -406,7 +466,7 @@ --> - + @@ -433,6 +493,7 @@ + @@ -447,6 +508,7 @@ Must select some files in the IDE or set javac.includes + @@ -482,7 +544,7 @@ Some tests failed; see details above. - + The CSS class to be applied to the element. (HTML Pass-through)classfalsetrue Index: src/META-INF/stripes-dynattr.tld =================================================================== --- src/META-INF/stripes-dynattr.tld (revision 99) +++ src/META-INF/stripes-dynattr.tld (working copy) @@ -458,6 +458,14 @@ Scripting code run prior to the form being submitted to the server, (HTML Pass-through) onsubmitfalsetrue + + + Tells the form whether or not actually render the >form< tag and the hidden + sourcePage tags as well. This is useful for partial forms when you are using ajax + to render the segements and you don't want the additional form elements. + + partialFormfalsetrue + The CSS class to be applied to the element. (HTML Pass-through)classfalsetrue Index: src/net/sourceforge/stripes/tag/FormTag.java =================================================================== --- src/net/sourceforge/stripes/tag/FormTag.java (revision 99) +++ 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 @@ -192,28 +196,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("
"); - out.write(""); + if(!partialForm){ + // 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("
"); + out.write(""); - if (isWizard()) { - writeWizardFields(); - } + if (isWizard()) { + writeWizardFields(); + } - writeFieldsPresentHiddenField(out); - out.write("
"); + writeFieldsPresentHiddenField(out); + out.write("
"); - writeCloseTag(getPageContext().getOut(), "form"); + writeCloseTag(getPageContext().getOut(), "form"); + } // Write out a warning if focus didn't find a field if (this.focus != null && !this.focusSet) {