Hi all,
i am using valueChangeListener with <tx:selectOneChoice/>.
this part of code
<f:facet name="change">
<tc:command immediate="true"/>
</f:facet>
is used to submit the page when a item is the listbox selected which alters
another <tx:selectOneChoice/> component.
the JSP code snippet is as below
<tx:selectOneChoice label="#{bundle.select}"
value="#{checkout.selectedBillingAddress}"
id="selectedBillingAddress"
rendered="#{checkout.billToSiteSize > 1}"
valueChangeListener="#{checkout.billingAddressValueChanged}"
>
<f:selectItems value="#{checkout.billToSites}"/>
<f:facet name="change">
<tc:command immediate="true"/>
</f:facet>
</tx:selectOneChoice>
and the method called for valueChangeListener is as below
public void billingAddressValueChanged(ValueChangeEvent e){
log.debug(" *** billingAddressValueChanged is called *** ");
}
When i select a particular method the bean constructor is called, but the
method binding to valueChangeListener is never called.
am using Tobago 1.0.9 .
Regards,
Madan
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/