Thx works - IE doesnt matter if it works or not.

But still there is the issue - it updates not on demand, i have to focus
another component for update, is this a wanted behaviour or an issue?

Am Mittwoch, den 02.08.2006, 14:11 +0200 schrieb Gerald Müllan:
> Hi,
> 
> don`t know if this will work, but what about setting the expression to:
> 
> $destElem.innerHTML = $srcElem.value.length
> 
> and the destination element is your outputText component. But maybe
> there are issues with innerHTML an IE.
> 
> cheers,
> 
> Gerald
> 
> On 8/2/06, Torsten Krah <[EMAIL PROTECTED]> wrote:
> > 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
> >
> >
> 
> 

Reply via email to