Swing classes are not in the same heirarchy as Wicket's and the two are not made to work together. What you need is to add an <input type="file" .... /> and a FileUpload (Wicket class). However, you can't have a user just select a directory from their browser - this is a limitation of web apps. Besides, what could you possibly do with that directory path once you had it? You don't have access to their local computer....
Depending on what you're doing, if you really had to do something with a directory, you may have to <horror-music-starts> use an applet </horror-music>. Hope this helps. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Nov 7, 2008 at 5:04 AM, 123shyam <[EMAIL PROTECTED]> wrote: > > Hello, > > I am working on wicket. I need to open a filechooser dialog or a file open > = > dialog (like we have in JFileChooser). > > I am currently unable to implement it from my wicket page. All I want is a > = > file chooser dialog showing only directories , user chooses nd I get back > t= > he path selected. > > I tried to call a JFielChosser (sinwg) thorught wicket but there seems to > b= > e some problem, the dialog cmes in a different location first time and in > t= > he center of the 2nd time onwards, I guess the modality is wrong. The > JFile= > Chooser needs a Component object type as its parent. But I am unable to > pas= > s it from thewicket class. It cannot be cast to a Component or Window. > Kindly help me out on this. > > Thanks, > Shyam > -- > View this message in context: > http://www.nabble.com/File-Chooser-dialog-needed-tp20378500p20378500.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
