Package org.exoplatform.webui.application

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()


            return;
         }
         service.saveGadget(gadget);
         uiManagement.initData();
         uiManagement.setSelectedGadget(name);
         context.addUIComponentToUpdateByAjax(uiManagement);
      }

      private boolean checkUrlExist(List<Gadget> gadgets, String url) throws Exception
      {
         for (Gadget ele : gadgets)
View Full Code Here


            return;
         }
         service.saveGadget(GadgetUtil.toGadget(gadget.getName(), gadget.getUrl(), gadget.isLocal()));
         uiManagement.initData();
         uiManagement.setSelectedGadget(gadget.getName());
         ctx.addUIComponentToUpdateByAjax(uiManagement);
      }

   }

   static public class EditActionListener extends EventListener<UIGadgetInfo>
View Full Code Here

         {
            UIApplication uiApp = ctx.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("application.msg.changeNotExist", null));
            uiOrganizer.reload();
            uiOrganizer.setSelectedCategory(application.getCategoryName());
            ctx.addUIComponentToUpdateByAjax(uiOrganizer);
            ctx.addUIComponentToUpdateByAjax(uiApp.getUIPopupMessages());
            return;
         }
         uiForm.invokeSetBindingBean(application);
         application.setModifiedDate(Calendar.getInstance().getTime());
View Full Code Here

            UIApplication uiApp = ctx.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("application.msg.changeNotExist", null));
            uiOrganizer.reload();
            uiOrganizer.setSelectedCategory(application.getCategoryName());
            ctx.addUIComponentToUpdateByAjax(uiOrganizer);
            ctx.addUIComponentToUpdateByAjax(uiApp.getUIPopupMessages());
            return;
         }
         uiForm.invokeSetBindingBean(application);
         application.setModifiedDate(Calendar.getInstance().getTime());
         String displayName = application.getDisplayName();
View Full Code Here

         }
         service.update(application);
         //uiOrganizer.setSelectedApplication(uiOrganizer.getSelectedApplication());
         uiOrganizer.reload();
         uiOrganizer.setSelectedApplication(application);
         ctx.addUIComponentToUpdateByAjax(uiOrganizer);
      }
     
   }

   static public class CancelActionListener extends EventListener<UIApplicationForm>
View Full Code Here

            if (existCategory == null)
            {
               uiOrganizer.reload();
               UIApplication uiApp = ctx.getUIApplication();
               uiApp.addMessage(new ApplicationMessage("category.msg.changeNotExist", null));
               ctx.addUIComponentToUpdateByAjax(uiOrganizer);
               return;
            }
            category.setModifiedDate(new Date());
         }
         else
View Full Code Here

         }
         service.save(category);
         uiForm.setValue(null);
         uiOrganizer.reload();
         uiOrganizer.setSelectedCategory(category.getName());
         ctx.addUIComponentToUpdateByAjax(uiOrganizer);
      }
   }

   static public class CancelActionListener extends EventListener<UICategoryForm>
   {
View Full Code Here

            uiApp.addMessage(new ApplicationMessage("UIOrganizer.msg.categoryNoExist", null));
            uiOrganizer.reload();
            return;
         }
         uiOrganizer.setSelectedCategory(categoryName);
         ctx.addUIComponentToUpdateByAjax(uiOrganizer);
      }

   }

   public static class ImportAllApplicationsActionListener extends EventListener<UIApplicationOrganizer>
View Full Code Here

               uiOrganizer.reload();
            }
            return;
         }
         uiOrganizer.selectApplication(appName);
         ctx.addUIComponentToUpdateByAjax(uiOrganizer);
      }

   }

   public static class AddCategoryActionListener extends EventListener<UIApplicationOrganizer>
View Full Code Here

            UIGadget uiGadget = event.getSource().createUIComponent(context, UIGadget.class, null, null);
            uiGadget.setState(new TransientApplicationState<Gadget>(application.getApplicationName()));
            UIDashboardContainer uiDashboardContainer = uiDashboard.getChild(UIDashboardContainer.class);
            uiDashboardContainer.addUIGadget(uiGadget, col, row);
            uiDashboardContainer.save();
            context.addUIComponentToUpdateByAjax(uiDashboardContainer);
        }
    }

    public static class MoveGadgetActionListener extends EventListener<UIDashboard> {
        @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.