"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Form.java" between
apache-tapestry-5.7.1-sources.zip and apache-tapestry-5.7.2-sources.zip

About: Apache Tapestry is a framework for creating dynamic, robust, highly scalable web applications in Java. Source code.

Form.java  (apache-tapestry-5.7.1-sources):Form.java  (apache-tapestry-5.7.2-sources)
skipping to change at line 121 skipping to change at line 121
/** /**
* Used by {@link Submit}, etc., to identify which particular client-side el ement (by element id) * Used by {@link Submit}, etc., to identify which particular client-side el ement (by element id)
* was responsible for the submission. An empty hidden field is created, as needed, to store this value. * was responsible for the submission. An empty hidden field is created, as needed, to store this value.
* Starting in Tapestry 5.3, this is a JSONArray with two values: the client id followed by the client name. * Starting in Tapestry 5.3, this is a JSONArray with two values: the client id followed by the client name.
* *
* @since 5.2.0 * @since 5.2.0
*/ */
public static final String SUBMITTING_ELEMENT_ID = "t:submit"; public static final String SUBMITTING_ELEMENT_ID = "t:submit";
/**
* Name of the data attribute added to HTML forms generated by this componen
t.
* @since 5.6.4
*/
public static final String DATA_ATTRIBUTE = "data-generator";
/**
* Name of the data attribute added to HTML forms generated by this componen
t.
* @since 5.6.4
* @see #DATA_ATTRIBUTE
*/
public static final String DATA_ATTRIBUTE_VALUE = "tapestry/core/form";
public static final StreamPageContent STREAM_ACTIVE_PAGE_CONTENT = new Strea mPageContent().withoutActivation(); public static final StreamPageContent STREAM_ACTIVE_PAGE_CONTENT = new Strea mPageContent().withoutActivation();
/** /**
* The context for the link (optional parameter). This list of values will * The context for the link (optional parameter). This list of values will
* be converted into strings and included in * be converted into strings and included in
* the URI. The strings will be coerced back to whatever their values are * the URI. The strings will be coerced back to whatever their values are
* and made available to event handler * and made available to event handler
* methods. * methods.
*/ */
@Parameter @Parameter
skipping to change at line 372 skipping to change at line 385
// Push BeanValidationContext only after the container had a chance to p repare // Push BeanValidationContext only after the container had a chance to p repare
environment.push(BeanValidationContext.class, new BeanValidationContextI mpl(validate)); environment.push(BeanValidationContext.class, new BeanValidationContextI mpl(validate));
// Save the form element for later, in case we want to write an encoding // Save the form element for later, in case we want to write an encoding
// type attribute. // type attribute.
form = writer.element("form", form = writer.element("form",
"id", clientId, "id", clientId,
"method", "post", "method", "post",
"action", actionURL, "action", actionURL,
"data-update-zone", zone); "data-update-zone", zone,
DATA_ATTRIBUTE, DATA_ATTRIBUTE_VALUE);
if (clientValidation != ClientValidation.NONE) if (clientValidation != ClientValidation.NONE)
{ {
writer.attributes("data-validate", "submit"); writer.attributes("data-validate", "submit");
} }
if (async) if (async)
{ {
javascriptSupport.require("t5/core/zone"); javascriptSupport.require("t5/core/zone");
writer.attributes("data-async-trigger", true); writer.attributes("data-async-trigger", true);
 End of changes. 2 change blocks. 
1 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)