Package javax.faces.convert

Examples of javax.faces.convert.IntegerConverter


        assertEquals(converter.getClass(), converterDescription.getImplementationClass());
    }

    @Test
    public void getConverterMessage() throws Exception {
        converter = new IntegerConverter();
        FacesMessage facesMessage = null;
        controller.replay();
        try {
            converter.getAsObject(environment.getFacesContext(), input, "abc");
        } catch (ConverterException e) {
View Full Code Here


  assertTrue(preSave.equals(postSave));
    }

    public void testImplementsNeither() throws Exception {
  StateHolderSaver saver = null;
  IntegerConverter 
      preSave = new IntegerConverter(),
      postSave = null;

  saver = new StateHolderSaver(facesContext, preSave);
  postSave = (IntegerConverter) saver.restore(facesContext);
  assertTrue(true); // lack of ClassCastException
View Full Code Here

   * Test method for {@link org.ajax4jsf.component.UIActionParameter#processAction(javax.faces.event.ActionEvent)}.
   */
  public void testProcessAction() {
    UICommand command = new UICommand();
    UIActionParameter param = new UIActionParameter();
    param.setConverter(new IntegerConverter());
    param.setName("param");
    ELContext elContext = facesContext.getELContext();
    ExpressionFactory expressionFactory = application.getExpressionFactory();
    ValueExpression expression =
      expressionFactory.createValueExpression(elContext, "#{bean.first}", Integer.TYPE);
View Full Code Here

    // creem el convertidor en funcio del tipus de inputText
    // SI ES INTEGER HEM D'AFEGIR ELS BUTONS DELS OPERADORS (<=, =,...)

    if (tipusColumna != null && tipusColumna.compareToIgnoreCase("INT") == 0)
    {
      Converter conv = new IntegerConverter();
     
      inputText.setConverter(conv);
      inputText.setConverterMessage(messageConverter);
     
      inputText.setValidatorMessage("Entre " + minimum + " y " + maximum + " digitos");
View Full Code Here

    private final String AUTO_COMPLETE_VALUE_REQUIRED =
            "org.fenixedu.academic.ui.faces.validators.autoCompleteValidator.AUTO_COMPLETE_VALUE_REQUIRED";

    public UIAutoComplete() {
        setRendererType(null);
        setConverter(new IntegerConverter());
    }
View Full Code Here

        this.command = command;
    }

    public Converter getConverter() {
        if (converter == null) {
            converter = new IntegerConverter();   
        }
        return converter;
    }
View Full Code Here

     */
    public void testProcessAction() {
        UICommand command = new UICommand();
        UIActionParameter param = new UIActionParameter();

        param.setConverter(new IntegerConverter());
        param.setName("param");

        ELContext elContext = facesContext.getELContext();
        ExpressionFactory expressionFactory = application.getExpressionFactory();
        ValueExpression expression = expressionFactory.createValueExpression(elContext, "#{bean.first}", Integer.TYPE);
View Full Code Here

TOP

Related Classes of javax.faces.convert.IntegerConverter

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.