Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package beans;
  6.  
  7. import javax.faces.bean.ManagedBean;
  8. import javax.faces.bean.RequestScoped;
  9.  
  10.  
  11.  
  12. /**
  13. *
  14. * @author oracle
  15. */
  16. @ManagedBean(name="myBean")
  17. @RequestScoped
  18. public class MyBean {
  19.  
  20. private int number;
  21.  
  22. public MyBean () {
  23. System.out.println("Creating the managed bean");
  24. }
  25.  
  26. public int getNumber() {
  27. return number;
  28. }
  29.  
  30. public void setNumber(int number) {
  31. this.number = number;
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement