Re: How do I use JAVA Frame instead of WOFrame in my app
Re: How do I use JAVA Frame instead of WOFrame in my app
- Subject: Re: How do I use JAVA Frame instead of WOFrame in my app
- From: "Daniele Corti" <email@hidden>
- Date: Thu, 7 Dec 2006 09:24:52 +0100
Hi Randy,
FileDialog takes as argument a java.awt.Frame, that coincides with a windows Dialog box, not a web Frame.
I'm not sure, so if someones disagree, please correct my explanation, but I think a code that uses this class can be runned only as a java application.
If you need to parse the file you select, maybe it would be easier to upload the file to the server and read there (using WOFileUpload)
Otherwise you can use _javascript_ to open a dialog box on client side, to choose a file (I'm not an expert of _javascript_, but I think there's a call you can use)
I hope this can help you,
2006/12/7, Randy Knolle <email@hidden>:
Hi Daniele,
I'm using a java class called FileDialog which takes a
Frame object in its constructor method. It takes the
Frame object so that the FileDialog object can hover
above the page from which it was called.
I need to place the java Frame instance in my page in
order for the FileDialog modal window to appear above
my page.
Randy.
--- Daniele Corti <email@hidden
> wrote:
> Hi Randy,
> I'm sorry, but I really don't undestand what are
> you doing:
> do you want to make the client site to open a Frame?
>
> If it's this, well, I don't think you can do
> something like this, not
> without a software installed on client side.
>
> Maybe, I haven't undestand your application, please
> give more info.
>
> Daniele
>
> 2006/12/5, Randy Knolle <
email@hidden>:
> >
> > I am using FileDialog which allows the user to
> select
> > a file in the filesystem, but it requires a java
> Frame
> > object so that it knows where to position the
> modal
> > window.
> >
> > The question is, how do I use a java Frame in my
> app
> > instead of a WOFrame?
> >
> > Currently, I pass in a frame object to the
> FileDialog
> > constructor method which doesn't appear within my
> app.
> > The problem is, the second time the user access
> the
> > dialog box from my app the box doesn't open, but
> > instead, appear in the menu bar and "blinks",
> alerting
> > the user to open it.
> >
> > I am supposing that, if the java Frame object
> appeared
> > somewhere in my app, the modal box will display
> above
> > the app.
> >
> > Thanks,
> >
> > Randy.
> >
> >
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Any questions? Get answers on any topic at
>
www.Answers.yahoo.com. Try it
> > now.
> > _______________________________________________
> > Do not post admin requests to the list. They will
> be ignored.
> > Webobjects-dev mailing list
> Daniele Corti
> AIM: S0CR4TE5
> Messenger: email@hidden
>
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden