A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
valueChangeListener not firing
sonia pandit
Ranch Hand
Joined: Apr 19, 2008
Posts: 137
posted
Oct 23, 2009 13:49:36
0
Anyone know why the valueChangeListener wouldn't fire.
Here is the jsp:
<body> <f:view> <tr:document> <tr:form> <tr:selectOneChoice id="list" value="#{viewFile.selected}" styleClass="common-dropdown" valueChangeListener="#{viewFile.changeListener}" > <f:selectItems value="#{viewFile.filesList}"/></tr:selectOneChoice> <tr:outputText value="You have selected"/> <tr:outputText value="#{viewFile.selected}"/> </tr:form> </tr:document> </f:view>
Here is the
java
:
public void changeListener(ValueChangeEvent evt){ System.out.println("in changeListener"); selected = evt.getNewValue().toString(); }
Thanks in advance,
Sonia
I agree. Here's the link:
http://aspose.com/file-tools
subject: valueChangeListener not firing
Similar Threads
Component are not getting repainted - Trinidad PPR
table and partial triggers
the component in not visible
disabling a particular column in a dynamic table
PPR with two tr:selectOneChoice problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter