Working with Jdeveloper 11.1.1.6
Hi
I have a piece of code in a jsf page where several fields are defined this way:
<af:inputText label="#{bundle.importeEarly}"
id="inputText3"
value="#{pageFlowScope.ActoTPVMB.importeEarly}"
autoSubmit="true" required="true"
converter="javax.faces.BigDecimal"
columns="10">
<af:convertNumber type="number" locale="es_ES"
minFractionDigits="2"
maxFractionDigits="2"/>
</af:inputText>
but very strange things happen while entering data in these fields.
As you can see I'm working with locale Spanish_Spain.
As an example, if I enter value 20 in these fields, when I leave the fields the value is formatted but also unexpectedly changed. Randomly I get 20.000,00 or 200,00 or 20,00 (the last one is correct).
After this, when I click on this commandButton;
<af:commandButton text="#{bundle.guardarDatosFormInsc}"
id="saveTPV" partialSubmit="true"
actionListener="#{pageFlowScope.ActoTPVMB.listenerGuardarTPV}"/>
it does nothing. listenerGuardarTPV is not executed !
I have tried lots of things: delete the locale (then working with the english default) changing to frecnh or latinamerica locales (es_AR, es_MX, fr_FR, etc), removing the mandatory, autosubmit clauses and normally I get different behaviours but never the expected one wich is the number formatted to 20,00.
Down in the same page I have this definition:
<af:inputText label="#{bundle.importe}"
id="importeUnico"
value="#{pageFlowScope.ActoTPVMB.importeUnico}"
autoSubmit="true"
converter="javax.faces.BigDecimal"
columns="10" required="true">
<af:convertNumber type="number" locale="es_ES"
minFractionDigits="2"
maxFractionDigits="2"/>
</af:inputText>
This field always works ok. ¿? It seems almost the same definition.... :-(
I have activated the javascript console on Google Chrome and when I get the unexpected results (bad output and also the button that doesn't execute the method) I get this error:
core-11.1.1.6.0-1318.js:225
Uncaught TypeError: undefined is not a function
I get no more javascript errors while doing other operations in this application.
What can happen ?
This is an application that has been in production for years but now we are reproducing this strange behaviour.
Thank you.