After pondering on how to implement a file chooser component, I came up with a work around and I feel like sharing it with all the ranchers!
Problem - Choosing a file path,saving only the path and no file upload, any other form submit (such as value change) would cause the upload component(Tomahawk,Richfaces woodstock...)to lose it's value causing user annoyance!
Solution/Work Around - I created the file upload component in another
jsf page and on submitting that page I take the value of the Uploaded File and put it on the required page.
Here is the code
This will work for any file upload component , I have used Woodstock.
This was useful to me, it may not be a good way to do it or developers might be doing it in some efficient way!
But It works!
Note : I tried putting the javascript(to open the pop up) in an external file, it works but never sets focus to the new window(problem occurs in IE!!). Any insight on this would be great !
(onkclick - because I could not type 'C'!!)