I have other fields in the form, On click of the download link, the page simply refreshes but doesn't call the fileDownload method in the bean...any idea where am wrong?
1. You didn't declare fileDownload as a public no-argument method returning a String in the backing bean.
2. You have a problem with some of the data that's being sent when you click the link. The JSF messages tag will usually display a message, if that's the problem.
Sometimes the only way things ever got fixed is because people became uncomfortable.
I tried with the action listenertoo...with no luck. The form has many other fileds with a link to the download field. I have 2 different beans in the form and the commanlink for one of the form works and downloads the file...but the same code for the other form and other bean in the same page doesn't call the method. The form gets submitted populationg the bean except calling this method
I was calling the filedownlad method using a command link and sepecifying the action as beanname.fileDownload. The problem which am facing now is , the response i get contains the whole file (from DB)inaddition to the html elements which is on the form. as the page refreshes on click of the link .. Is there any way to download only the file contents ignoring the other fields which is on the page and without submitting the whole page. [ April 03, 2008: Message edited by: Mary Cole ]