示例#1
0
 public void apply() {
   if (!TapestryUtils.isValid(this)) {
     return;
   }
   AcdServer acdServer = getAcdServer();
   getAcdContext().saveComponent(acdServer);
   Integer id = acdServer.getId();
   setAcdServerId(id);
 }
示例#2
0
 public IPage editService(IRequestCycle cycle, String serviceBeanId, Integer locationId) {
   PageWithCallback page = (PageWithCallback) cycle.getPage(SERVICE_MAP.get(serviceBeanId));
   page.setReturnPage(EditLocationPage.PAGE);
   if (page instanceof AcdServerPage) {
     AcdServer acdServer = getAcdContext().getAcdServerForLocationId(locationId);
     if (acdServer != null) {
       ((AcdServerPage) page).setAcdServerId(acdServer.getId());
     }
   }
   return page;
 }