Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. import static org.omnifaces.util.Messages.addGlobalInfo;
  2. import static org.omnifaces.util.Faces.redirect;
  3. import static org.omnifaces.util.Messages.addFlashGlobalWarn;
  4.  
  5. import java.io.IOException;
  6. import javax.enterprise.inject.Model;
  7. import javax.inject.Inject;
  8.  
  9. /**
  10. *
  11. * @author Sukma Wardana
  12. * @since 1.0.0
  13. */
  14. @Model
  15. public class Register {
  16.  
  17. private String username;
  18. private String password;
  19. private String email;
  20.  
  21. public void submit() {
  22. // store account data here
  23. addGlobalInfo("register.message.success");
  24. }
  25.  
  26. public String getUsername() {
  27. return username;
  28. }
  29.  
  30. public void setUsername(String username) {
  31. this.username = username;
  32. }
  33.  
  34. public String getPassword() {
  35. return password;
  36. }
  37.  
  38. public void setPassword(String password) {
  39. this.password = password;
  40. }
  41.  
  42. public String getEmail() {
  43. return email;
  44. }
  45.  
  46. public void setEmail(String email) {
  47. this.email = email;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement