-
-
Save fabriciofx/10001871 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ManagedBean | |
public class UserBean { | |
private String name; | |
private List<User> users = new ArrayList<User>(); | |
public String listAll() { | |
UserDao dao = new UserDao(); | |
this.users = dao.findByName(name); | |
return "list"; | |
} | |
public List<User> getUsers() { | |
return this.users; | |
} | |
// other gets and sets | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment