@Test public void formInvalid() { name.req(); final RadioButtonLine l = new RadioButtonLine("l"); l.bind(name).addValue("one", "one label"); name.touch(); assertThat(l.valid().get(), is(false)); assertThat(l.getErrorList(), hasErrors("Name is required")); }
public <P> MoreValues<P> bind(final Property<P> property) { addToValid(property); return new MoreValues<P>(property); }
RadioButtonLine extends BasicLine { public <P> MoreValues<P> bind(final Property<P> property) { addToValid(property); return new MoreValues<P>(property); } }
RadioButtonLine extends BasicLine { public <P> MoreValues<P> bind(final Property<P> property) { addToValid(property); return new MoreValues<P>(property); } @UiConstructor  RadioButtonLine(final String name); }
RadioButtonLine extends BasicLine { public <P> MoreValues<P> bind(final Property<P> property) { addToValid(property); return new MoreValues<P>(property); } @UiConstructor  RadioButtonLine(final String name); MoreValues<P> bind(final Property<P> property); }
RadioButtonLine extends BasicLine { public <P> MoreValues<P> bind(final Property<P> property) { addToValid(property); return new MoreValues<P>(property); } @UiConstructor  RadioButtonLine(final String name); MoreValues<P> bind(final Property<P> property);  }