On 2/19/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > From: "Leila Carvalho" <[EMAIL PROTECTED]> > > > Can I apply Value-change Event in my jsp pages under Struts-Faces > > Integration ??? > > How?? > > Thanks in advance. > > Leila. > > You can add a value change listener as an action binding method on a > backing bean, > > <h:outputText id="city" value="mybean.city" valueChangeListener=" > mybean.cityChanged"/>
This kind of thing will work in Struts-Faces, but only if you correctly specify the expressions, and use an input field :-) <h:inputText id="city" value="#{mybean.city}" valueChangeListener="#{ mybean.cityChanged}"/> Craig public void cityChanged(ValueChangeEvent event) { > } > > or, as a nested object. > > <h:ouputText id="city" value="mybean.city"> > <f:valueChangeListener type="com.acme.MyListener"/> > </h:ouputText> > > public class MyListener implements ValueChangeListener { > public void processValueChange(ValueChangeEvent event) { > > } > } > > > > > Gary >