Edit HTML file in ADF

Hi,
I have a HTML file that gets displayed in the ADF application using the inlineFrame component.
Wanted to have a Edit button, where the user can modify the HTML file, save the file and see the modifications.
Really appreciate if anybody can provide any ideas/samples/links of how to do this in ADF application.
Thanks
SR

If your html file is on the same server as your adf application then when user presses "Edit" button you can use standard java api to read this file from filesystem to some managed bean variable and show it in large multiline af:inputText component(in popup or new page), and when user press "Save" button, save content of af:inputText to file and then refresh af:inlineFrame(or just navigate back to previous page) to show changes.
Dario

Similar Messages

  • Can't edit .html file in dreamweaver?

    Why can't I edit .html file in Dreamweaver CS 5.5 when it is not attached to a template?
    I have always been able to edit it every other time I have opened the file (since I built the site over two years ago).
    Now each time I try to edit it in Design mode, no matter where I click in the file the whole page gets a dark grey overlay and I can't get a curser.
    I am still able to edit the code directly but I do not want to be restricted.
    The last thing I did the last time I opened the file was paste Google Analytics code in just before the </head> tag. I did this to all the files on the site but this is the only one that isn't working. I have tried taking out this code but it makes no difference.
    I am using a 6 month old Macbook pro.
    Can anyone help me?

    In your stylesheet you have -
    .container {    overflow:hidden; width: 100%;}
    .container2 {   overflow:hidden; width: 646px; margin:0 0 10px 0}
    Try right clicking on the page in Design view and then selecting Element view > Full and see if that helps.

  • Editing HTML file leaves temporary files lying about the place

    G'day
    CFB 2.0.1, installed as stand-alone on Windows 7 Enterprise 64-bit.  Although this has been the case since CFB 1.0, and on various Windows installs.
    Whenever I edit a HTML file (ie: with a .html extension), CFB creates  a temporary file in the same dir, eg: .tmp_charts.html.33659~ (the original file name is charts.html).  I've no problem with this - other than the fact it should not be necessary - but what I do have a problem with is that it does not tidy up after itself once it's done: the tmp files stay there.  This is a bit sloppy.
    I'm sure (100% sure) I've raised with this with Adobe in the past, and raised a bug for it, but it's not on the bug tracker for some reason.
    Can other CFB users test out what happens when they edit HTML files with CFB? Note: the tmp file does not show up in the navigator listing within CFB, but it is there in the file system if one looks with Windows Explorer.
    I'm going to raise a bug again (done: 3328624), in the hope this can be fixed.  It's a minor thing, but I'm sick of accidentally committing rubbish to my source control because I forget CFB can't tidy up after itself.
    Cheers.
    Adam

    Curious.
    Still: they should just not be there in the first place.  They don't appear for any other file type that I am aware of.
    Agreed!
    Come to think of it, I had another issue with CFB leaving bits around a while back.  Ahhh, now I can't remember exactly what the issue was.  I remember it had to do with mapping a networked drive.  When I would map a particular drive letter, say 'W', then start CFB it would create an entire folder hierarchy on there seemingly from a different server.  I know this because we have two different CF environments here; some server are running CF under JRun and others are running CF under WebSphere.  I only noticed this issue because I had mapped one of our JRun servers and all of a sudden it had portions of the WebSphere directory structure on there.  I think it had to do with a workspace in CFB but can't remember for sure.  I fixed it a while back by removing the offending setting in CFB.  Man, wish I could remember exactly what it was...

  • Unable to edit html file

    Hi,
    I downloaded an html file from our server to edit the logo. However, I am unable to edit the logo part. It's like commented out. And once I opened the file on Dreamweaver CS5, I am getting this pop-up message:
    "This page contains some SWF objects that may not work properly in the most recent versions of Internet Explorer. Dreamweaver cannot convert them to the new SWF markups. Please delete each of them and insert again."
    I can't edit the html file and change the logo. Please help.
    Thank you and God bless!
    Dannie

    Dannie,
    Are you familiar with dreamweaver templates and editable regions? If the logo is in the template, then you need to modify the template file. The changes you make to the template will automatically be propogated to all of the files which use the template.  If your html file uses a template, the html code will look like its commented out.
    Also, you should not have to download the html fiile from your server because you should always keep a copy of all the html files on your computer.
    I don't know about the SWF error.
    Good luck.
    mitzy_kitty

  • Editing .html files in iWeb!

    Hello, mutual iWeb users!
    I work as a freelance webmaster, and after converting to mac a year ago I have been using iWeb as my favorite editing program. I recently made a web page for a company, and it was published using a one.com domain. I reinstalled my macbook's software, and the files were lost from iWeb. I have been able to download the .html files, pictures and everything using FileZilla, but how can i upload these files and continue editing in iWeb?
    Thanks in advance. Daniel.

    Welcome to the Apple Discussions. You didn't make a backup of your user folder before reinstalling the system? Then, as Wyodor pointed out you're up a creek without a paddle. (My vernacular)
    Chapter 2.3 of the iWeb FAQ.org site has tips on using some of the existing files in the published site in the reconstruction of the site.
    OT

  • Error when editing HTML files - after check in

    Hi
    Version of portal = NE04SP15
    I have an HTML file, and after editing and check in of such a document, Norwegian characters are represented with some strange characters.
    Any idea how to solve this?
    Regards
    Kay-Arne

    I have the same issue, apparently when you edit locally an HTML document that was generated with “KM HTML Editing tool” it looses some kind of attribute that makes KM to recognize it as a “KM HTML file”. So then some characters do not get rendered correctly.
    If you find a solution for this issue please let me know.
    Other related issue is when you transport these HTML files from one enviroment to another, again KM will not recognice its own HTML docs and then some incorrect characters may appear.
    Regards Jeronimo

  • Edit HTML File using java

    Hi....
    I have a report in HTML format and a list of thresholds in txt format.
    Now, using java how can I:
    1. Compare the values in the report with the thresholds
    2. Edit the report such that values over the thresholds are highlighted in say, red colour.
    I am new to Java programming, so java jargons won't be of much help. I read about jeditorpane but it's primary use is to display html file(that is what i inferred). Is their a way in which i could accomplish the above using jeditorpane??....how do i do the comparison part??

    srgsoroka wrote:
    Did you check http://jtidy.sourceforge.net/.
    From site:
    "JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. Like its non-Java cousin, JTidy can be used as a tool for cleaning up malformed and faulty HTML. In addition, JTidy provides a DOM interface to the document that is being processed, which effectively makes you able to use JTidy as a DOM parser for real-world HTML."Yes, I did. But I don't need a syntax checker.The syntax is alright. I want to modify the HTML code after comparison with a txt document.As far as DOM parser is concerned, I googled the term but didn't understand much of it..:-(...If you could explain it in layman's terms........

  • Simple text edit html files will not display as web pages using Safari

    How does one get Text Edit files saved as HTML to display as a web page rather than showing the code as written?  It appears that somehow some sort of code generator is being invoked and causing this to happen.  I am not trying to do anything complex, just simple files like "Hello World".

    Hi ..
    Make sure you are following the instructions as noted here >  Creating a Basic Web Page
    You may need to turn off all Safari extensions.
    From your Safari menu bar click Safari > Preferences then select the Extensions tab.
    Switch to OFF.
    Then see if it reads as HTML or Hello World.

  • Editing html files using Contribute

    I have just purchased the tracking software ProspectFinder
    from Enecto.com that lets me see the names and details of the
    companies visiting our website.
    In order for the tracking to function, I need to paste some
    lines of html code to the respective pages of my website whose
    visitors I want to track.
    How do I do that using Contribute?

    You can use Insert-> HTML Snippet... to do the same.
    If this is disabled for your role, please administer the site
    and edit your role setting. Select Editing in the Edit ROLE setting
    dialog and check the option "Allow HTML Snippet
    Insertion...".

  • Editing HTML File

    Hi...
    I have a report in HTML format and a list of thresholds in txt format.
    Now, using java how can I:
    1. Compare the values in the report with the thresholds
    2. Edit the report such that values over the thresholds are highlighted in say, red colour.
    This is really urgent so if i could get a code snippet it would be really helpful...thanx

    Multipost!
    http://forum.java.sun.com/thread.jspa?threadID=5310539&messageID=10322424#10322424

  • IWeb won't open .html file

    Greetings,
    I recently upgraded from a G5 running Tiger to an Intel iMac with Leopard. I have several basic web pages that I used to edit using the ancient Classic app, Claris Home Page.
    Now that I can no longer run Classic apps, I thought I'd give iWeb a try. I right-clicked an html file and selected Open With. In the dialog box, iWeb was greyed out, so I switched from Recommended Applications to All Applications. Then, when I selected iWeb, the app gave an error message saying it could not open a .html file.
    Umm, isn't that the point of the app, or is this thing designed to create some sort of proprietary file format specific for use with MobileMe?
    BTW, after this, I was unable to launch iWeb directly from the Finder because it would always try to open that same file again, resulting in the same error. I had to trash the prefs files and empty the trash before I could open iWeb again and get to that opening template page.
    Help? thanks
    Dennis

    When you create a site in iWeb it saves it in its own special format in a file called 'Domain' in ~/Library/Application Support/iWeb. When you publish, to MobileMe, to a local folder, or to another server, it creates the html, css and other files on the fly and uploads them to the server. When you want to edit, you open iWeb, it reads the Domain file, and you edit as necessary and re-upload. If you want to edit the site on another computer, you have to copy the Domain file to that computer and open it in iWeb. You cannot re-import the published html files and edit them in iWeb, nor edit html files made in another application.
    To do that you could use Kompozer (free).

  • Using Muse to edit Dreamweaver files??

    I just started using Muse and must say it is awesome. However, I am wondering if I can take websites that were created with Dreamweaver and edit them with Muse?
    Thanks,

    Hello,
    It is not possible to edit html files in Muse at the moment. Muse can read only .muse files.
    Regards
    Vivek

  • How can I edit an html file in Firefox using View Source?

    I have created an html webpage and saved it to my pc. I can't edit the html file in firefox when I right click on the page and select "View Source". I can view the code but I can't edit it. I can do this in IE9.
    I thought I was able to do this before in Firefox.
    Did my settings change somewhere that I can no longer do this?
    Do I have to have something checked in the Web Developer extensions for it to work?
    I'm using Firefox 24.0
    Thank you for any help with this. :)

    The View Source window in Firefox cannot be used to change computer codes. Nor can the Web Developer tools.
    Sorry for any inconvenience.
    I suggest using Programmer's Notepad.

  • Open my html file and cannot edit it

    When I open my html file from Flash, in view design all I get is a grey box with the Flash symbol in the middle and no html tools.
    I want to link some of my buttons but if I go into view live I get html tools but I still can't access them to make links.
    How do I get my html page so that I can make my links?
    Forrest

    Your next button can still do that.  But it has to be programmed within Flash.  Flash files are not natively handled by Dreamweaver.  You have to export them in order to place them on a website within Dreamweaver.
    The only way that Dreamweaver can do this for you is if you create a button in Dreamweaver which does this action for you outside of the Flash area.  Then this button can link to another page or Flash file.  But if the button resides within the Flash file then it must be edited with Flash.

  • "texts on html file" are not updated "when edited on server"

    Hi All,
    QUESTION
    What are the solutions, for having editable text/content on .html published files, so clients can edit through their server control panel
    Scenario:
    Client wants to update the "text" by editing the .html files on a server.
    I published the website as static html so the text can be included in .html file, but edits made on server's control panel, doesnt appear in live website.
    I also noticed that the texts located in edgeActions.js are editable through server, i am not very interested to define all my text content as the dynamic
    code because then I must worry about empty .html files and SEO questions.

    Here is what I ve found in regard to my own question...
    For a Client, to be able to change the text on server (Ex: phone numbers in a contact page), they should access and modify the text in the   edge.js or sometimes edgeaction.js page. Changing the text on .html page will create no result. I assume, this is because, the .html page is exported ONCE and only at the point of Publishing a project, to satisfy the SEO needs or whatever. Think of the text on .html page as a Sticker to fool the rest of the world, changing it will not change anything on webste and. Also if you change the text in .js, the change will not be relfected on .html file.

Maybe you are looking for