public class ViewRegistration { @SessionState private RegistrationData data; public RegistrationData getRegistrationData() { return data; } }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { for (PlasticField field : plasticClass.getFieldsWithAnnotation(SessionState.class)) { SessionState annotation = field.getAnnotation(SessionState.class); transform(plasticClass, field, annotation.create()); field.claim(annotation); } }
public class TestPageForASO { @SessionState private SimpleASO aso; public String getFooString() { return aso.getFoo(); } }
public class ShowBirthdayReminder { @SessionState private BirthdayReminder reminder; public BirthdayReminder getReminder() { return reminder; } }
public class MaybeStateHolder { @SessionState(create = false) private SimpleASO bean; public SimpleASO getBean() { return bean; } }
public class MultiBeanDemoResult { @SessionState private UserCredentials credentials; @SessionState private RolePath rolePath; public UserCredentials getCredentials() { return credentials; } public RolePath getRolePath() { return rolePath; } }
public class StateHolder { @SessionState private SimpleASO bean; private boolean beanExists; public SimpleASO getBean() { return bean; } public void setBean(SimpleASO bean) { this.bean = bean; } public boolean getBeanExists() { return beanExists; } }
public class BeanEditDateDemo { @SessionState private BirthdayReminder reminder; public BirthdayReminder getReminder() { return reminder; } void onActionFromClear() { reminder = null; } Object onSuccess() { return ShowBirthdayReminder.class; } }
public class BaseComponent { @SessionState @Property private IncidentData incidentData; }
public class ShowCalendarHolder { @SessionState @Property private CalendarHolder holder; void onActionFromClear() { holder = null; } }
public class BeanEditCalendarDemo { @SessionState @Property private CalendarHolder holder; void onActionFromClear() { holder = null; } Object onSuccess() { return ShowCalendarHolder.class; } }
public class MultiBeanEditDemo @SessionState private UserCredentials credentials; @SessionState private RolePath rolePath;
public class BeanEditorBeanEditContext { @Component private Form form; @Component(parameters = { "object=registrationData" }) private BeanEditor editor; @SessionState private RegistrationData data; public RegistrationData getRegistrationData() { return data; } Object onSuccess() { return ViewRegistration.class; } void onActionFromClear() { data = null; form.clearErrors(); } }
public class BeanEditorOverride { @Component private Form form; @Component(parameters = { "object=registrationData" }) private BeanEditor editor; @SessionState private RegistrationData data; public RegistrationData getRegistrationData() { return data; } Object onSuccess() { return ViewRegistration.class; } void onActionFromClear() { data = null; form.clearErrors(); } }
private String dismissText; @SessionState(create = false) private AlertStorage storage;
public class SSOEntity @SessionState @Property private User user;
public class SSOEntity @SessionState @Property private User user;
public class SSOEntity @SessionState @Property private User user;
private BeanEditForm form; @SessionState @Property private RegistrationData registrationData;
private Zone formZone; @SessionState private AlertStorage storage;