The issue that I have with this component is that when ajax request is made which updates the value of the component, the value is not "consumed" by the component and even though the update attribute on the ajax request is set to update the inputNumber, the value is not updated. I tried the same workflow with inputText and outputText and it works as it is supposed to.
Here are some code snippets that should explain the issue better. The following is the definition of my inputNumber component:
Code: Select all
<p:inputNumber id="input-number"
immediate="true"
label="inputNumber"
title="#{BB.stringValue}"
converter="#{BB.bigDecimalConverter}"
value="#{BB.value}">
</p:inputNumber>
Code: Select all
<p:remoteCommand name="updateValue" immediate="true" actionListener="#{BB.updateValue}" update="input-number"/>
What I have debugged so far is that the after the remoteCommand finished, the BB.value method is being called when JSF tries to update the inputNumber and strangely enough it returns the right value. The title is also with the new value. What I noticed is that the BB.bigDecimalConverter method is not being called, the renderer does not "ask" for the converter for some reason. As I said the BB.value returns the correct value and same goes for the title. However the new value is never rendered and also is not set as a value to the HTML input. However when I inspect the HTML DOM tree and the element the title is set to the correct value, but the value is not.
I would really appreciate if someone can investigate this, because it is definitely a component issue, since the same workflow works correct for other inputs and outputs.
Thank you!