Exemplo 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());
 }
Exemplo 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);
 }