/** * Sets whether the form should be submitted when the selection changes. * * @param submitOnChange true to submit the form on change. * @deprecated 1.4.0 as it results in a level A accessibility problem See * https://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-unpredictable-change.html. */ @Deprecated @Override public void setSubmitOnChange(final boolean submitOnChange) { super.setSubmitOnChange(submitOnChange); }
/** * Setting this flag to true will cause this list component to post the form to the server when it's selection is * changed. * * @param flag if true, the form is submitted when the selection changes. * @deprecated 1.4.0 as it results in a level A accessibility problem See * https://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-unpredictable-change.html. */ @Deprecated @Override public void setSubmitOnChange(final boolean flag) { super.setSubmitOnChange(flag); }
/** * Sets whether the form should be submitted when the checkbox is checked/unchecked. This sets the default option * SubmitOnChange seen by all user sessions. * * @param submitOnChange true to submit the form on change. * @deprecated 1.4.0 as it results in a level A accessibility problem See * https://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-unpredictable-change.html. */ @Deprecated @Override public void setSubmitOnChange(final boolean submitOnChange) { super.setSubmitOnChange(submitOnChange); }
@Test public void testSubmitOnChangeAccessors() { AbstractInput input = new MyInput(); Assert.assertFalse("submitOnChange flag should default to false", input.isSubmitOnChange()); input.setSubmitOnChange(true); Assert.assertTrue("submitOnChange flag should be true", input.isSubmitOnChange()); }