NumberField + FormFieldFactory not work

Hello.

NumberFeld in FormFieldFactory not get correctly decimal value.



		myForm.setFormFieldFactory(new FormFieldFactory() {

			(...)
		    
			@Override
			public Field createField(Item item, Object propertyId, Component uiContext) {
				AbstractTextField field;
				
		    	boolean enabled = ( (Integer) item.getItemProperty("id").getValue() > 0
		    			|| isNew);
		    	
		        if ("numeroFactura".equals(propertyId)) {
		        	(...)
		        } else if ("observaciones".equals(propertyId)) {
		            (...)
		        } else if ("importe".equals(propertyId)) {
		        	NumberField numberField = new NumberField();
		        	numberField.setCaption("Importe");
		        	numberField.setRequired(true);
		        	numberField.setEnabled(enabled);
		        	numberField.setWidth(NUMBER_FIELD_WIDTH);
		        	numberField.setRequiredError("Por favor, aƱada el campo " + DefaultFieldFactory.createCaptionByPropertyId(propertyId));
		                return numberField;
		        } else if ("fecha".equals(propertyId)) {
		        	(...)
		        } else if ("concepto".equals(propertyId)) {
		        	(...)
		        } else {
		        	field = null;
		        }
		        
		        (...)

		        return field;
			}
				
		});
		

12469.png