/** * Indicates whether the form should be submitted when the checkbox is checked/unchecked. * * @return true if the form should be submitted 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 boolean isSubmitOnChange() { return super.isSubmitOnChange(); }
/** * Indicates whether the form should submit to server when the list component's selection changes. * * @return true if 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 boolean isSubmitOnChange() { return super.isSubmitOnChange(); }
/** * Indicates whether the form should be submitted when the selection changes. * * @return true if the form should be submitted 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 boolean isSubmitOnChange() { return super.isSubmitOnChange(); }
@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()); }