Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIFormRadioBoxInput


      for (Application app : applications_)
      {
         UIFormInputSet uiInputSet = new UIFormInputSet(app.getId());
         ArrayList<SelectItemOption<String>> options = new ArrayList<SelectItemOption<String>>(5);
         options.add(new SelectItemOption<String>("", String.valueOf(i)));
         UIFormRadioBoxInput uiRadioInput = new UIFormRadioBoxInput(FIELD_APPLICATION, "", options);
         //TODO review
         if (i == 0)
         {
            uiRadioInput.setValue(options.get(0).getValue());
         }
         //----------------------------------------------
         uiInputSet.addChild(uiRadioInput);
         UIFormInputInfo uiInfo = new UIFormInputInfo("label", null, app.getDisplayName());
         uiInputSet.addChild(uiInfo);
View Full Code Here


            uiApp.addMessage(new ApplicationMessage("category.msg.changeNotExist", null));
            ctx.addUIComponentToUpdateByAjax(uiOrganizer);
            return;
         }

         UIFormRadioBoxInput uiRadio = uiForm.getUIInput("application");
         String displayName = uiForm.getUIStringInput(FIELD_NAME).getValue();
         if (uiForm.getApplications().size() == 0)
         {
            ctx.getUIApplication().addMessage(new ApplicationMessage("UIAddApplicationForm.msg.appNotExists", null));
            ctx.addUIComponentToUpdateByAjax(uiOrganizer);
            return;
         }
         Application tmp = uiForm.getApplications().get(Integer.parseInt(uiRadio.getValue()));

         // check portet name is exist
         if (appRegService.getApplication(selectedCate.getName(), tmp.getApplicationName()) != null)
         {
            WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
View Full Code Here

    public UIForgetPasswordWizard() {
        List<SelectItemOption<String>> options = new ArrayList<SelectItemOption<String>>(2);
        options.add(new SelectItemOption<String>(Password_Radio, "password"));
        options.add(new SelectItemOption<String>(Username_Radio, "username"));
        addUIFormInput(new UIFormRadioBoxInput(Forgot, null, options).setAlign(UIFormRadioBoxInput.VERTICAL_ALIGN));
    }
View Full Code Here

        int i = 0;
        for (Application app : applications_) {
            UIFormInputSet uiInputSet = new UIFormInputSet(app.getId());
            ArrayList<SelectItemOption<String>> options = new ArrayList<SelectItemOption<String>>(5);
            options.add(new SelectItemOption<String>("", String.valueOf(i)));
            UIFormRadioBoxInput uiRadioInput = new UIFormRadioBoxInput(FIELD_APPLICATION, "", options);
            // TODO review
            if (i == 0) {
                uiRadioInput.setValue(options.get(0).getValue());
            }
            // ----------------------------------------------
            uiInputSet.addChild(uiRadioInput);
            UIFormInputInfo uiInfo = new UIFormInputInfo("label", null, app.getDisplayName());
            uiInputSet.addChild(uiInfo);
View Full Code Here

            if (uiForm.getApplications().size() == 0) {
                ctx.getUIApplication().addMessage(new ApplicationMessage("UIAddApplicationForm.msg.appNotExists", null));
                ctx.addUIComponentToUpdateByAjax(uiOrganizer);
                return;
            }
            UIFormRadioBoxInput uiRadio = uiForm.getUIInput("application");
            String displayName = uiForm.getUIStringInput(FIELD_NAME).getValue();
            Application tmp = uiForm.getApplications().get(Integer.parseInt(uiRadio.getValue()));

            // check portet name is exist
            for (Application application : appRegService.getApplications(selectedCate)) {
                if (application.getContentId().equals(tmp.getContentId())) {
                    ctx.getUIApplication().addMessage(new ApplicationMessage("UIAddApplicationForm.msg.PortletExist", null));
View Full Code Here

   private void addUIComponentToSet(UIFormInputWithActions inputSet) throws Exception
   {
      inputSet.addUIFormInput(new UIFormStringInput(USERNAME, null, null).addValidator(MandatoryValidator.class));
      inputSet.addUIFormInput(new UIFormStringInput(PASSWORD, null, null).setType(UIFormStringInput.PASSWORD_TYPE));
      inputSet.addUIFormInput(new UIFormColorPicker(FAVORITE_COLOR, null, UIFormColorPicker.Colors.N_RED));
      inputSet.addUIFormInput(new UIFormRadioBoxInput(GENDER, "Male", makeRadioOptions())
         .addValidator(MandatoryValidator.class));
      inputSet.addUIFormInput(new UIFormDateTimeInput(DATE_OF_BIRTH, null, new Date()));
      inputSet.addUIFormInput(new UIFormTextAreaInput(DESCRIPTION, null, ""));

      List<SelectItemOption<String>> selectItemOptions = makeSelectItemOptions();
View Full Code Here

   public UIForgetPasswordWizard() throws Exception
   {
      List<SelectItemOption<String>> options = new ArrayList<SelectItemOption<String>>(2);
      options.add(new SelectItemOption<String>(Password_Radio, "password"));
      options.add(new SelectItemOption<String>(Username_Radio, "username"));
      addUIFormInput(new UIFormRadioBoxInput(Forgot, null, options).setAlign(UIFormRadioBoxInput.VERTICAL_ALIGN));
   }
View Full Code Here

    private void addUIComponentToSet(UIFormInputWithActions inputSet) throws Exception {
        inputSet.addUIFormInput(new UIFormStringInput(USERNAME, null, null).addValidator(MandatoryValidator.class));
        inputSet.addUIFormInput(new UIFormStringInput(PASSWORD, null, null).setType(UIFormStringInput.PASSWORD_TYPE));
        inputSet.addUIFormInput(new UIFormColorPicker(FAVORITE_COLOR, null, UIFormColorPicker.Colors.N_RED));
        inputSet.addUIFormInput(new UIFormRadioBoxInput(GENDER, "Male", makeRadioOptions())
                .addValidator(MandatoryValidator.class));
        inputSet.addUIFormInput(new UIFormDateTimeInput(DATE_OF_BIRTH, null, new Date()));
        inputSet.addUIFormInput(new UIFormTextAreaInput(DESCRIPTION, null, ""));

        List<SelectItemOption<String>> selectItemOptions = makeSelectItemOptions();
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.form.UIFormRadioBoxInput

Copyright © 2018 www.massapicom. 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.