Esempio n. 1
0
 public void saveAuthCode() {
   LOG.info("ENTERED EditAuthCode::saveAuthCode() : ");
   if (!TapestryUtils.isValid(this)) {
     return;
   }
   AuthCode code = getAuthCode();
   getAuthCodeManager().saveAuthCode(code);
   setAuthCodeId(code.getId());
 }
Esempio n. 2
0
 public void pageBeginRender(PageEvent event) {
   AuthCode code = getAuthCode();
   if (code != null) {
     if (!code.isNew()) {
       setAuthCodeId(code.getId());
     }
     return;
   }
   if (getAuthCodeId() != null) {
     code = getAuthCodeManager().getAuthCode(getAuthCodeId());
   } else {
     code = getAuthCodeManager().newAuthCode();
   }
   setAuthCode(code);
 }