Package com.cosmo.ui.controls

Examples of com.cosmo.ui.controls.FormFieldHidden


         // Seg�n el comando, realiza una acci�n. Si no hay comando, muestra el grid
         if (HttpRequestUtils.getValue(request, PARAMETER_COMMAND, "").equals(COMMAND_CREATE))
         {
            FormControl form = new FormControl(getWorkspace(), app.getId());
            form.addGroup(cls);
            form.addHiddenValue(new FormFieldHidden(PARAMETER_APPID, HttpRequestUtils.getValue(request, PARAMETER_APPID)));
            form.addHiddenValue(new FormFieldHidden(PARAMETER_COMMAND, HttpRequestUtils.getValue(request, PARAMETER_COMMAND)));
            pc.addContent(form, ContentColumns.MAIN);
         }
         else if (HttpRequestUtils.getValue(request, PARAMETER_COMMAND, "").equals(COMMAND_EDIT))
         {
            Object instance = OrmFactory.getObjectFromRequest(cls, request);

            OrmFactory ormp = new OrmFactory(app.getConnectionId(), getWorkspace());
            instance = ormp.get(instance);

            FormControl form = new FormControl(getWorkspace(), app.getId());
            form.addGroup(instance);
            form.addHiddenValue(new FormFieldHidden(PARAMETER_APPID, HttpRequestUtils.getValue(request, PARAMETER_APPID)));
            form.addHiddenValue(new FormFieldHidden(PARAMETER_COMMAND, HttpRequestUtils.getValue(request, PARAMETER_COMMAND)));
            pc.addContent(form, ContentColumns.MAIN);
         }
         else
         {
            // Muestra el GRID de la aplicaci�n
View Full Code Here


      DynamicMessageControl message = new DynamicMessageControl(getWorkspace(), ID_MSG);
      pc.addContent(message, ContentColumns.MAIN);

      FormControl form = new FormControl(getWorkspace(), "LoginForm");
      form.addHiddenValue(new FormFieldHidden(Cosmo.URL_PARAM_TOURL, HttpRequestUtils.getValue(request,
            Cosmo.URL_PARAM_TOURL)));
      FormFieldset group = new FormFieldset("Datos de identificaci�n");
      group.addField(new FormFieldText(LoginPage.FIELD_LOGIN, "Login"));
      group.addField(new FormFieldText(LoginPage.FIELD_PASSWORD, "Password", true));
      form.addGroup(group);
View Full Code Here

     
      DynamicMessageControl message = new DynamicMessageControl(getWorkspace(), ID_MSG);
      pc.addContent(message, ContentColumns.MAIN);
     
      FormControl form = new FormControl(getWorkspace(), "LoginForm");
      form.addHiddenValue(new FormFieldHidden(Cosmo.URL_PARAM_TOURL, HttpRequestUtils.getValue(request, Cosmo.URL_PARAM_TOURL)));
      FormFieldset group = new FormFieldset("Datos de identificaci�n");
      group.addField(new FormFieldText(LoginPage.FIELD_LOGIN, "Login"));
      group.addField(new FormFieldText(LoginPage.FIELD_PASSWORD, "Password", true));
      form.addGroup(group);
      form.addButton(new FormButton("cmdAcceopt", "Enviar", ButtonType.Submit));
View Full Code Here

TOP

Related Classes of com.cosmo.ui.controls.FormFieldHidden

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.