I have the following code in my entity query class, which I use to display a List objects. The objects do get displayed properly when I use the @Factory method name ("users") to iterate through all members in a rich:dataTable. But when I click on particular user to go the detail page, the following gets tacked on as a page parameter (e.g. &dataModelSelection=_user:users[0])
which causes the page to not show the detail information, but if I remove this query parameter it seems to work fine. What could be possibly going wrong here?
@Name("userList")
public class UserList extends EntityQuery<User> {
@DataModel(scope = ScopeType.PAGE)
private List<User> users;
@Factory("users")
public List<User> getUsersByOrg() {
}
Note: If I comment out the line containing the @DataModel annotation, the above defined parameter is not defined and I am able to view user details.