I have problems refreshing the data. Heretable content is a part of my code here.
& lt; H: Input Text id = "Counterfeit" value = "# {myBean.quantity}" & gt; & Lt; F: ajax event = "replace" render = "myadabletable" execution = "counter feature" & gt; & Lt; / F: ajax & gt; & Lt; / H: inputText>
What do I like to do, when the quantity changes (dynamically with JS scripts), call setQuantity ()
to my bean And update that value
I tried with execute = "@ this"
but it also does not work. And I have to say that when I set an event like event = "keyup"
, I work but I want to do things automatically, because all the javascript script is included Is performed.
I saw some answers but I could not work due to my limited knowledge of JSF.
Thank you in advance
This is actually a normal behavior HTML DOM The change
event has only been removed after the endorsers manipulation of the input field. If the input field is manipulated programmatically by javascript, then you basically allow very javascript code to trigger the change
event manually.
Believing that you are using (not), here it looks like:
var input = document.getElementById (...); Input.value = newValue; Input.onchange (); // Trigger Javascript code declared in the `on change` feature.
No comments:
Post a Comment