Is there a way to automate downloading of files in page which uses JSF?
I need to download file based on parameters I choose from drop-down menu and calendar. After that, if I understand correctly, server redirects to right download file or generates file.
If I had a direct link based on parameters, I could use small bash/batch script, but I don't have the link so I need some help.
If your application is JSF1.2 with richfaces, then refer this url
Download log file using JSF application?
i hope you will get some idea.
Related
So I've built the main functionality for an extension already, and have it uploaded as a web page on my server. I'd like to have it interact with any page a visitor goes to though and not just my page on the server. It's just the HTML/CSS/Javascript and jQuery.
I've been reading the documentation, and it says/implies I need to use a content script. I do have this script included as a content script as well though, however I'm probably doing it wrong. Mainly looking for some guidance/direction as to where to go on this.
The extension is to be one that removes all images from a page.
The site is http://199.127.226.221/testsites/chromeapp/
This is the manifest file: http://199.127.226.221/testsites/chromeapp/manifest.json
This is the .crx file: http://199.127.226.221/testsites/chromeapp/chromeapp3.crx
You should supply the extension as a .crx file.
Also it seems you should specify desired urls for content scripts in permissions of manifest
In my jsf application files names are displayed using datatable component with checkbox option for each files and their is a single download button. When user select any file and click download button it should download into client machine default folder set by browser or into specified folder.For Example:(D:/dstoreFiles) Without dispalying save/open/cancel dialogue box. Application is developed using eclipse.
Without dispalying save/open/cancel dialogue box.
That is not possible using standard HTTP/HTML means as that would be a security breach. You don't want that a website is able to write an arbitrary file to an arbitrary location of your local disk file system without any form of confirmation whenever you just visit a page, do you? As JSF is basically a MVC framework sitting on top of HTTP/HTML, it can't do any magic for you in order to get it to work anyway.
In Java terms, that's only possible using a signed(!!) applet or webstart (JNLP) application. You can then embed this in your JSF (read: HTML) page using <applet> or <object> tag. You can if necessary use a simple servlet to let the applet in the webbrowser interact with code in the webserver.
I want to show some web page INSIDE Inno Setup installer page, how can it be embedded?
I was thinking of using cwebpage.dll ( http://www.codeproject.com/Articles/3365/Embed-an-HTML-control-in-your-own-window-using-pla ), but I have no idea how to use this dll with the means of Inno Setup scripting. If there are some other means, please help.
It's not possible directly in InnoSetup, you can use only components listed in the Classes Reference. However you can embed your setup with the custom form from a library e.g. this way.
I've created an example of such library with a sample InnoSetup script. This project is hosted here.
"shellexec" an .html file or web link. That's all there is to it :)
Is it possible to download all the files in a parent directory?
I'm trying to download all the files here:
http://linux.mirrors.es.net/centos/5.6/isos/i386/
Download how? You can use a browser extension like Firefox's DownThemAll to grab all links on a page, though it's more optimized for media types by default (you can specify your own file masks, though).
You can use wget with the recursive option. There are also many shareware apps that provide GUIs for sucking down the contents of a website.
I would like to display an image on my web page and provide the user the ability to click it and upload another image to replace it.
Either myfaces or Richfaces works.. (I know tomahawk has some solution but i'm wondering if that's the only solution. The least libraries I use the better..)
Thanks!
You can use something like rich:fileUpload (MyFaces has also got a component for that). Handle file upload on the server side and replace the target file. A more sofisticaded solution would be with saving images as blobs in a database.