I have a form bean (Employee) which can be shared across different screens. To differentiate the fields across screens used, i had planned group the fields using JSR custom annotation with a group name.
For example,
class Employee {
@Screen(groups={EmployeeScreen.class})
private employeeNo;
@Screen(groups={EmployeeScreen.class})
private employeeName;
@Screen(groups={RoleScreen.class})
private roleName;
How could i read all the attribute names of the bean associated to group names (EmployeeScreen and RoleScreen). Any help would be very much appreciated. Thanks.