Examples of Param


Examples of org.jboss.seam.navigation.Param

   }
  
   @Test
   public void testDateConverter()
   {
      Param param = setupParam(false);
     
      assert DateConverter.class.equals(param.getConverter().getClass());
     
   }
View Full Code Here

Examples of org.jboss.seam.navigation.Param

   public void testGetValidatorById() throws ClassNotFoundException
   {
      String validatorId = "TestValidator";
      String validatorClass= "org.jboss.seam.test.unit.PageParamTest$TestValidator";
      FacesContext.getCurrentInstance().getApplication().addValidator(validatorId, validatorClass);
      Param param = new Param("param");
      param.setValidatorId(validatorId);
      assert param.getValidator() instanceof TestValidator : "expecting: " + validatorClass + "; got: " + param.getValidator();
   }
View Full Code Here

Examples of org.jboss.seam.navigation.Param

   }
  
   protected Param setupParamToValidate(boolean disableModelValidator)
   {
      installComponent(Contexts.getApplicationContext(), Validators.class);
      Param param = new Param("value");
      param.setValueExpression(Expressions.instance().createValueExpression("#{bean.value}"));
      Contexts.getEventContext().set("bean", new Bean());
      if (disableModelValidator) {
         param.setValidateModel(false);
      }
      return param;
   }
View Full Code Here

Examples of org.jboss.seam.navigation.Param

   }

   protected Param setupParam(boolean disableModelValidator)
   {
      installComponent(Contexts.getApplicationContext(), DateConverter.class);
      Param param = new Param("birthDate");
      param.setValueExpression(Expressions.instance().createValueExpression("#{bean.birthDate}"));
      Bean bean = new Bean();
      bean.setBirthDate(new Date());
      Contexts.getEventContext().set("bean", bean);
      if (disableModelValidator) {
         param.setValidateModel(false);
      }
      return param;
   }
View Full Code Here

Examples of org.jboss.seam.pages.Param

         {
            throw new IllegalArgumentException("must specify name or value for page <param/> declaration");
         }
         name = valueExpression.substring(2, valueExpression.length()-1);
      }
      Param param = new Param(name);
      if (valueExpression!=null)
      {
         param.setValueBinding(Expressions.instance().createValueBinding(valueExpression));
      }
      param.setConverterId(element.attributeValue("converterId"));
      String converterExpression = element.attributeValue("converter");
      if (converterExpression!=null)
      {
         param.setConverterValueBinding(Expressions.instance().createValueBinding(converterExpression));
      }
      return param;
   }
View Full Code Here

Examples of org.jbpm.ui.validation.ValidatorDefinition.Param

                        }
                    }

                    IConfigurationElement[] paramElements = configElement.getChildren();
                    for (IConfigurationElement paramElement : paramElements) {
                        Param param = new Param(
                                paramElement.getAttribute("name"),
                                paramElement.getAttribute("displayName"),
                                paramElement.getAttribute("type"));
                        definition.addParam(param);
                    }
                    definitions.put(definition.getName(), definition);
                } catch (Exception e) {
                    DesignerLogger.logError("Error processing org.jbpm.ui.validators element", e);
                }
            }
        }
       
        ValidatorDefinition global = new ValidatorDefinition(
                ValidatorDefinition.GLOBAL_VALIDATOR_NAME,
                "BSH",
                ValidatorDefinition.GLOBAL_TYPE,
                "BSH code");
        global.addParam(new Param(ValidatorDefinition.EXPRESSION_PARAM_NAME, "", Param.BSH_TYPE));
        definitions.put(ValidatorDefinition.GLOBAL_VALIDATOR_NAME, global);
    }
View Full Code Here

Examples of org.jsynthlib.device.viewcontroller.widgets.EnvelopeWidget.Param

        return widget.getSliderNum();
    }

    @Override
    public int getMin() {
        Param param = widget.getParams()[getFader() - getSliderNum()];
        Node node = widget.getNodes()[param.node];
        if (param.isX) {
            return node.getMinX();
        } else {
            return node.getMinY();
View Full Code Here

Examples of org.kapott.hbci.manager.ChallengeInfo.Param

   */
  @Test
  public void testWrt()
  {
    HhdVersion version = null;
    Param p            = null;
    String code        = "HKAOM";
   
   
    version = getHhdVersion(code,ChallengeInfo.VERSION_HHD_1_2);
    p = version.getParams().get(1);
    Assert.assertEquals(p.getPath(),"BTG.value");
    Assert.assertEquals(p.getType(),"Wrt");
    Assert.assertEquals(p.format("100"),"100,");
    Assert.assertEquals(p.format("100.50"),"100,5");
    Assert.assertEquals(p.format("100.99"),"100,99");
    Assert.assertNull(p.format(null));
   
    version = getHhdVersion(code,ChallengeInfo.VERSION_HHD_1_3);
    p = version.getParams().get(2);
    Assert.assertEquals(p.getPath(),"BTG.value");
    Assert.assertEquals(p.getType(),"Wrt");
    Assert.assertEquals(p.format("100"),"100,");
    Assert.assertEquals(p.format("100.50"),"100,5");
    Assert.assertEquals(p.format("100.99"),"100,99");
    Assert.assertNull(p.format(null));
   

    version = getHhdVersion(code,ChallengeInfo.VERSION_HHD_1_4);
    p = version.getParams().get(0);
    Assert.assertEquals(p.getPath(),"BTG.value");
    Assert.assertEquals(p.getType(),"Wrt");
    Assert.assertEquals(p.format("100"),"100,");
    Assert.assertEquals(p.format("100.50"),"100,5");
    Assert.assertEquals(p.format("100.99"),"100,99");
    Assert.assertNull(p.format(null));
  }
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Param

            if (attributes.containsKey(REVERSE_PRIMARY_KEY))
            {
               reverseKey = attributes.get(REVERSE_PRIMARY_KEY);
            }

            Param param = new Param();
            param.putAttribute("name", "id");
            param.putAttribute(
                     "value",
                     StaticFacesUtils.wrapExpression(StaticFacesUtils.unwrapExpression(link.getValue()) + StringUtils.SEPARATOR_DOT_CHAR
                              + reverseKey));
            link.getChildren().add(param);
View Full Code Here

Examples of org.metawidget.statically.faces.component.html.widgetbuilder.Param

                  break;
               }
            }
         }

         Param param = new Param();
         param.putAttribute("name", "id");
         param.putAttribute(
                  "value",
                  StaticFacesUtils.wrapExpression(dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR
                           + primaryKeyName));
         link.getChildren().add(param);
         link.getChildren().add(column.getChildren().remove(1));
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.