Package com.liferay.faces.demos.dto

Examples of com.liferay.faces.demos.dto.Customer


   * model-el Expression #{bookingsPortlet:bookingsModelBean.selectedCustomerId} found in the WEB-INF/faces-config.xml
   * descriptor.
   */
  public void selectionListener(ActionEvent actionEvent) {
    UICommand uiCommand = (UICommand) actionEvent.getComponent();
    Customer customer = (Customer) uiCommand.getValue();
    logger.debug("User click! selectedCustomerId=[{0}]", customer.getCustomerId());
    customersModelBean.setSelectedCustomerId(Long.toString(customer.getCustomerId()));
  }
View Full Code Here


  Customer customer;

  @PostConstruct
  public void postConstruct() {
    logger.trace("@PostConstruct annotation worked");
    customer = new Customer();
    customer.setBookings(new ArrayList<Booking>(5));
  }
View Full Code Here

    allCustomers = new ArrayList<Customer>();

    long userId = 0;

    // US
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "John", "Adams", getDate(10, 30, 1735)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Samuel", "Adams", getDate(9, 27, 1722)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Josiah", "Bartlett", getDate(11, 21, 1729)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Carter", "Braxton", getDate(9, 16, 1736)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Charles", "Carroll", getDate(9, 19, 1737)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Benjamin", "Franklin", getDate(1, 17, 1706)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Elbridge", "Gerry", getDate(2, 3, 1701)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "John", "Hancock", getDate(1, 23, 1737)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Thomas", "Jefferson", getDate(4, 13, 1743)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Francis", "Lewis", getDate(3, 21, 1713)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Philip", "Livingston", getDate(1, 15, 1716)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Thomas", "Stone", getDate(1, 1, 1743)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "George", "Taylor", getDate(2, 2, 1716)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "George", "Washington", getDate(2, 22, 1732)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "John", "Witherspoon", getDate(2, 5, 1723)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Oliver", "Wolcott", getDate(11, 20, 1726)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "George", "Wythe", getDate(3, 3, 1726)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Thomas", "McKean", getDate(3, 19, 1734)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Arthur", "Middleton", getDate(6, 26, 1742)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "John", "Penn", getDate(5, 17, 1741)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "George", "Read", getDate(9, 18, 1733)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "John", "Rutledge", getDate(9, 17, 1739)));
    allCustomers.add(new Customer(userId++, unitedStatesCountryId, "Roger", "Sherman", getDate(4, 19, 1721)));

    // UK
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Hardyman", getDate(3, 24, 1575)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Pullain", getDate(4, 27, 1566)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Miles", "Hawkins", getDate(12, 12, 1608)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Robert", "Coverdale", getDate(2, 3, 1603)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Andrew", "Colman", getDate(3, 4, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Christopher", "Kingsmill", getDate(3, 29, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Becon", getDate(4, 4, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Axton", getDate(5, 5, 1587)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Bonham", getDate(8, 8, 1612)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Robert", "Johnson", getDate(9, 9, 1577)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Adoniram", "Taverner", getDate(4, 5, 1665)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Bale", getDate(2, 21, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Richard", "Byfield", getDate(10, 10, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Aldrich", getDate(2, 1, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Whittingham", getDate(6, 7, 1586)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Francis", "Merbury", getDate(4, 6, 1597)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Lever", getDate(5, 7, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Robert", "Wright", getDate(6, 9, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Bernard", "Gilpin", getDate(7, 9, 1597)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Underdown", getDate(8, 10, 1608)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Hill", getDate(9, 11, 1590)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Nicholas", "Brown", getDate(10, 12, 1601)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Richard", "Crick", getDate(11, 10, 1604)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Anthony", "Gilby", getDate(11, 7, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Brayne", getDate(2, 8, 1586)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Edwin", getDate(11, 6, 1596)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Copping", getDate(7, 8, 1608)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Barnaby", "Benison", getDate(8, 9, 1585)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Cuthbery", "Brainbrigg", getDate(5, 5, 1613)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Willaim", "Bergland", getDate(9, 10, 1605)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Stroud", getDate(10, 11, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "David", "Rockrey", getDate(7, 7, 1606)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Browning", getDate(11, 12, 1598)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Ward", getDate(12, 13, 1587)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Gilbert", "Alcock", getDate(6, 6, 1582)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edmund", "Whitehead", getDate(2, 4, 1608)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Deering", getDate(5, 6, 1598)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Robert", "Moore", getDate(3, 5, 1606)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Gellibrand", getDate(11, 5, 1598)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Gardiner", getDate(5, 30, 1601)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Nicholas", "Glover", getDate(11, 11, 1592)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Field", getDate(11, 14, 1575)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Huckle", getDate(10, 13, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Standen", getDate(11, 4, 1603)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Fox", getDate(9, 12, 1641)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Wilson", getDate(8, 11, 1597)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Elliston", getDate(8, 10, 1592)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Robert", "Crowley", getDate(7, 9, 1604)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Turner", getDate(1, 2, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Nicholas", "Crane", getDate(6, 8, 1605)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Lawnrence", "Humprey", getDate(11, 1, 1595)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Sampson", getDate(8, 15, 1582)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Fulke", getDate(9, 16, 1574)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Garbrand", getDate(3, 5, 1580)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Dudley", "Fenner", getDate(4, 6, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edmund", "Littleton", getDate(8, 14, 1587)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Larding", getDate(9, 13, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Andrew", "Kingston", getDate(8, 2, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Malancthon", "Jewell", getDate(2, 4, 1597)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Snape", getDate(3, 13, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Holmes", getDate(2, 16, 1584)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Richard", "Greenham", getDate(2, 17, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Giles", "Wigginton", getDate(2, 18, 1596)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Barber", getDate(8, 3, 1616)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Robert", "Cawdrey", getDate(9, 6, 1665)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Lever", "Wood", getDate(10, 9, 1572)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Hymphrey", "Fenn", getDate(11, 12, 1643)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Daniel", "Wright", getDate(12, 15, 1573)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Proudlove", getDate(10, 12, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "More", getDate(4, 12, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Lyford", getDate(2, 22, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Obadiah", "de la Marche", getDate(11, 11, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Maynard", getDate(2, 19, 1597)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Jean", "Sedgwick", getDate(2, 20, 1585)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Stephen", "Hickes", getDate(2, 21, 1594)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Richard", "Hildersha", getDate(1, 3, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Gaspar", "Heyrick", getDate(12, 5, 1605)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Samuel", "Marshall", getDate(11, 6, 1594)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Hodges", getDate(10, 7, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Hill", getDate(9, 8, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Richard", "Hoyle", getDate(7, 9, 1590)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Joshua", "Holdsworth", getDate(6, 10, 1588)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Henry", "Chambers", getDate(5, 11, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Humphrey", "Hutton", getDate(1, 3, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Perne", getDate(7, 27, 1583)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Andrew", "Peale", getDate(8, 26, 1595)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Pickering", getDate(9, 25, 1585)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Benjamin", "de la Place",
        getDate(10, 24, 1620)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Samuel", "Price",
        getDate(11, 23, 1576)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Philip", getDate(12, 22, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Nicholas", "Delme", getDate(1, 21, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Philippe", "Prophet", getDate(12, 9, 1653)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Calybute", "Mew", getDate(11, 8, 1606)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Downing", getDate(2, 23, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Moreton",
        getDate(2, 24, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Macklet", getDate(2, 25, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Whiddon", getDate(6, 7, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "George", "Newcomen", getDate(2, 26, 1598)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Josias", "Walker", getDate(12, 10, 1588)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Matthew", "Morley", getDate(2, 27, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Anthony", "Langley", getDate(2, 25, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Daniel", "Ford", getDate(11, 3, 1582)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Featley", getDate(11, 2, 1598)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Nye", getDate(2, 28, 1591)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Richard", "Valentine", getDate(6, 21, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Henry", "Nicholson", getDate(3, 31, 1589)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "James", "Harris", getDate(4, 7, 1581)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Philip", "Nye", getDate(4, 30, 1595)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Henry", "Palmer", getDate(5, 29, 1583)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Rathbone", getDate(1, 15, 1588)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Launce", getDate(3, 19, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Reynolds", getDate(4, 18, 1595)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Edward", "Rayne", getDate(5, 17, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Herbert", "Painter", getDate(6, 28, 1601)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Henry", "Sallaway", getDate(6, 16, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Arthur", "Roborough", getDate(7, 15, 1606)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Francis", "Templeton", getDate(9, 1, 1589)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Taylor", getDate(10, 5, 1601)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Tisdale", getDate(11, 10, 1595)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Christopher", "Thorowgood",
        getDate(12, 15, 1592)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Henry", "Pyne", getDate(1, 20, 1601)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Tozer", getDate(2, 20, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Tuckney", getDate(2, 14, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Gibbon", getDate(3, 30, 1577)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Twisse", getDate(10, 17, 1587)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "George", "Goodwin", getDate(11, 18, 1590)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Samuel", "Goodard", getDate(12, 19, 1580)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Gibson", getDate(12, 20, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Hardwick", getDate(12, 21, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Humphrey", "Gibbs", getDate(5, 7, 1602)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Matthias", "Strickland", getDate(6, 4, 1591)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Stiles", getDate(7, 3, 1601)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Francis", "Wincop", getDate(1, 18, 1599)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "John", "Usher", getDate(4, 6, 1587)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Thomas", "Vines", getDate(5, 14, 1586)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "George", "Shute", getDate(7, 28, 1582)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Sidrach", "Spurstowe", getDate(1, 9, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "William", "Woodcock", getDate(3, 7, 1600)));
    allCustomers.add(new Customer(userId++, unitedKingdomCountryId, "Francis", "Simpson", getDate(7, 7, 1614)));
  }
View Full Code Here

  @PostConstruct
  public void postConstruct() {
    allCustomers = new ArrayList<Customer>();

    Customer customer = new Customer(ID_BRIAN_GREEN, "Brian", "Green");
    allCustomers.add(customer);
    customer = new Customer(ID_LIZ_KESSLER, "Liz", "Kessler");
    allCustomers.add(customer);
    customer = new Customer(ID_RICH_SHEARER, "Rich", "Shearer");
    allCustomers.add(customer);
  }
View Full Code Here

    return allCustomers;
  }

  public Customer getCustomer(long customerId) {

    Customer customer = null;
    List<Customer> customers = getAllCustomers();

    for (Customer curCustomer : customers) {

      if (curCustomer.getCustomerId() == customerId) {
View Full Code Here

TOP

Related Classes of com.liferay.faces.demos.dto.Customer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.