Every JSF input component has a "valueChangeListener" attribute whose
value is an EL expression. So:

<h:inputText id="name"
   valueChangeListener="#{myBean.handleNameChange}" .../>

public void handleNameChange(ValueChangeEvent ev) {
  .. do what you want here
}

wang suya wrote:
> Dear Worm Danny
> 
>     Thank you for your replay. I want to use Beans to relate with 
> valueChangeListener
> but it does not work. Therefore I tryed jsValueChangeListener. Now I know 
> what jsValueChangeListener
> is. Do you know  whether Tomahawk can relate  valueChangeListener to Beans?
> 
>    Wang suya  
> 
> Worm, Danny さんは書きました:
>> Hi wang suya,
>>
>> please have a look at this link:
>> http://myfaces.apache.org/tomahawk/javascriptListener.html
>>
>> At the bottom of the page there are two examples of your
>> trouble-component :)
>>
>> "js" in the component-name means JavaScript, that means client-side
>> execution (no Beans or EL)
>>
>> Perhaps that's helpful. 
>>
>> Kind regards
>> DaWorm
>>
> 
> wang suya

Reply via email to