コード例 #1
0
 private void preinitializeBean(long contactRecipientId) {
   ContactRecipient contactRecipient = contactRecipientBo.getContactRecipient(contactRecipientId);
   if (contactRecipient != null) {
     this.contactRecipientId = contactRecipient.getContactRecipientId();
     this.firstName = contactRecipient.getFirstName();
     this.lastName = contactRecipient.getLastName();
     this.email = contactRecipient.getEmail();
   }
 }
コード例 #2
0
  public String addContactRecipient() {
    ContactRecipient contactRecipient = new ContactRecipient();
    contactRecipient.setFirstName(firstName);
    contactRecipient.setLastName(lastName);
    contactRecipient.setEmail(email);
    contactRecipientBo.addRecipient(contactRecipient);

    resetView();

    return "";
  }