public class FormFieldOutsideForm { @Property private int quantity; }
public class GenericTypeDemo { private Set<Long> setOfLongs; @Property private Map<String, String> mapOfStrings; public List<List<Date>> getListOfListOfDates() { throw new UnsupportedOperationException(); } public void setSetOfLongs(Set<Long> setOfLongs) { throw new UnsupportedOperationException(); } }
public class MessageConstraintGeneratorDemo { @Property private Pet pet; }
public class Bootstrap { @Inject private RequestGlobals requestGlobals; @Parameter @Property private String build; @Parameter @Property private Boolean nocache; public String getBody() { BootstrapComponent bootstrapComponent = new BootstrapComponent(requestGlobals.getHTTPServletRequest()); if (nocache != null && nocache) bootstrapComponent.setNoCache(true); return bootstrapComponent.getJavaScript(); } }
public class FormZoneDemo { @Property private Long longValue; @InjectComponent private Zone valueZone; Object onSuccess() { return valueZone.getBody(); } }
public class BaseComponent { @SessionState @Property private IncidentData incidentData; }
public class ValidateFormValidationExceptionDemo { @Property @Persist private String event; void onValidateFromForm() throws ValidationException { throw new ValidationException("From event handler method."); } void onSuccessFromForm() { event = "success"; } void onFailureFromForm() { event = "failure"; } }
@Import(module = {"validate-in-error"}) public class ValidateInErrorEvent { @Property private String value; }
public class KaptchaDemo { @Property @Persist(PersistenceConstants.FLASH) private String message; void onSuccessFromForm() { message = "Kaptcha passed."; } }
public class ShowCalendarHolder { @SessionState @Property private CalendarHolder holder; void onActionFromClear() { holder = null; } }
public class ReloadDemo { @Property @Inject private Reloadable reloadable; }
@Import(stack = "core") public class BeanEditFormValidationDemo { @Property @Persist private User user; }
public class SelectModelCoercionDemo { @Inject private MusicLibrary library; @Property @Persist private Track track; public List<Track> getTracks(){ return library.getTracks(); } }
@Import(stack = "core") public class ClientValidationDemo { @Property @Persist private TestEntity testEntity; public StringValueEncoder getStringValueEncoder() { return new StringValueEncoder(); } }