File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes valueChangeListener does not work if i give rendered property. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "valueChangeListener does not work if i give rendered property." Watch "valueChangeListener does not work if i give rendered property." New topic
Author

valueChangeListener does not work if i give rendered property.

shashi saini
Greenhorn

Joined: Jul 07, 2010
Posts: 1
hi All,

I have encoutered an issue. The valueChangeListener dose not fire it i give "rendered" property with in "selectOneChoice"
I tried giving the render property for "cellFormat" that is enclosing the selectOneChoice. But still the valueChangeListener dose not get fired.

Code:
<afh:cellFormat width="40%" binding="#{FAQAdd.cellFormat12}"
id="cellFormat12" halign="left" rendered="#{FAQAdd.enableDropDown}">
<af:selectOneChoice label="FAQ For" unselectedLabel="Select"
binding="#{FAQAdd.selectOneChoice1}"
id="selectOneChoice1" rendered="#{FAQAdd.enableDropDown}" valueChangeListener="#{FAQAdd.refreshFaq}"
autoSubmit="true" immediate="true"
value="#{FaqDept}" >
<af:selectItem label="Intranet" value="0"
binding="#{FAQAdd.selectItem1}"
id="selectItem1"/>
<af:selectItem label="Corporate Communication" value="10"
binding="#{FAQAdd.selectItem2}"
id="selectItem2"/>
</af:selectOneChoice>
</afh:cellFormat>



Regards
Saini
 
 
subject: valueChangeListener does not work if i give rendered property.