parttio / textfieldformatter

TextField Formatter Vaadin add-on
Apache License 2.0
13 stars 9 forks source link

NumeralFieldFormatter not working in Vaadin 8.8.5 in Liferay #20

Open Temire opened 5 years ago

Temire commented 5 years ago

The component has been having errors in my browser. I get this error in the console: com.google.gwt.event.shared.UmbrellaException: Exception caught: (ReferenceError) : Cleave is not defined

What is the problem? or am i using it wrong?

Here is my usage in code:

    TextField amount = new TextField("Amount");
    new NumeralFieldFormatter(",", ".", 3).extend(amount);
johannesh2 commented 5 years ago

Thanks for reporting. Assuming you are using add-on version 2.x for Vaadin 8. I need to test this in Liferay. Which version of Liferay you are using?

Does the component work for you in a simple app created with mvn -B archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=8.8.5 -DgroupId=org.test -DartifactId=textfielformatter-app -Dversion=1.0-SNAPSHOT

Temire commented 5 years ago

Thanks for reporting. Assuming you are using add-on version 2.x for Vaadin 8. I need to test this in Liferay. Which version of Liferay you are using?

Does the component work for you in a simple app created with mvn -B archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=8.8.5 -DgroupId=org.test -DartifactId=textfielformatter-app -Dversion=1.0-SNAPSHOT

It is working outside of the Liferay portal environment. So i guess the issue is the liferay environment??

Liferay version is 7.1

johannesh2 commented 5 years ago

Ok. I'll take a look at and try to figure out what's happening.

Temire commented 5 years ago

Ok.