Looking at the examples i tried this:
<h:inputText id="text1">
<t:jsValueChangeListener for="text2" property="value"
expressionValue="$srcElem.value.length" />
</h:inputText>
<h:inputText id="text2"/>
Does work - but the value if text2 is only updated if it gets the focus, i can
write in the first field what i want - field2
stays the same and shows nothing until it gets the focus.
Changing the second inputTex in an outputText shows nothing ( but it should? )
Any hints?
I want to have something like:
User is writing in first field, an outputText after that field shows the length
of what the user have inserted, updating with ervery
change event - i thought this tag should do the work, should it?
kind regards
ps: using myfaces + tomahawk v1.1.4 + facelets 1.1.11