JDeveloper and ADF
valueChangeListener not firing for af:inputFile
Hi,The use case , I want to upload the file using ADF UI and save it to the database as a blob.I have a af:inputFile in a .jsff page and have defined value change listener in the bean for this page, but value change listener is not firing in my page, the method associated with the VCL is not at all executed. This is the component in jsf page:This is the method in backing bean:at run time this method is not executed wherein other method present in the bean is executed:I tried all the suggestions already available in the forum and included- vc.getComponent().processUpdates(FacesContext.getCurrentInstance()); as well but this also didn't helped. The scope of the bean in set at backing bean level at the task flow: My Jdev version is 22.214.171.124
Your jdev version is quite old.If your valueChangeListner isn't called adding processUpdates doesn't help.put a system.out.println statement into the valeuChangeListener (as first statement) to make sure it's not called. The you can try to change the scope of hte bean to viewScope. Timo
Did you put a debugger and tried whether control is coming in a value change listener or not.? You can increase bean scope to view and try. You can also make use of value attribute of file upload and get access to uploaded object Check this Andrejus Baranovskis Blog: Multiple Files Upload - Unlimited Files Upload in ADF 11g PS6 for reference. Ajay
Thanks Timo, Changing the scope to view worked for me, though I had to try it many times with different combination, may be some issue with Jdev.Clearing cache/temporary file deletion also helped. One more thing I wanted to understand the difference between bean scope at adfc-config and bean scope at user defined task flow. If you suggest me some reading that will be great. Thanks in Advance!!!
How to Implement ADF BC Session in 11g
Accessing file outside document root?
Connection - HTTP Status 500 error
ADF 11g + getting the user details in ADF BC layer
How to set datasource value to jbo.server.internal_connection in bc4j file
How to disable copy-paste operation in af:inputText
Jdeveloper 11g namespace error
CreateInsert row in table refetches dropdown data
How to cache the data of a view?
How to use inlineStyle with % size in graphs
commandMenuItem action not firing within forEach loop - JDev 10.1.3.3.0
data format problem in SQL based view object
patching JDEV 11 errors out
Setting a row in page controller causes JBO-35007 error
Deploying application with Customizations