File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes download dialog box opens Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "download dialog box opens" Watch "download dialog box opens" New topic

download dialog box opens

Chetan K Sharma

Joined: Oct 14, 2011
Posts: 1

I recently started learning JSF and everything seemed quite simeple until I tried running my first JSF webapp.. Whenever I try to run the login.xhtml on the server, instead of showing me the webpage, eclipse shows me a file download dialog box! Can someone please help me with my first app?
Marcos Silvestri
Ranch Hand

Joined: Dec 06, 2009
Posts: 62

Man, this is odd!!!

Does the file to be downloaded belong to your project at least?

It's really strange, if you don't write code for generating a SaveAs dialog box, that should not open. Have you not written code for that in your login.xhtml?

You'd better share the code with everybody here so that we can properly try to help.

NOTE: I'm still in search of how to open a dialog box from the browser, prompting the user for download. It seems that your problem might be the solution I'm in need here.


DJ aspirant, Engineering undergraduate, Tokusatsus addicted, fond of English language and Asia's, Buddhist, blogger, etc. I'll need to insert all these attributes in a Java class and manage to create methods for handling my overwhelming life
I agree. Here's the link:
subject: download dialog box opens
It's not a secret anymore!