How to put full HTML in an outputFormatted or something else?

So i have a field that contains some html for example
<p><strong>This is important</strong> so please read it<br/>And a second line</p>When i put this is in an outputFormatted:
<af:outputFormatted value="#{myBean.value}" id="ot1"/>The text is shown on the page but when i look at the source, this is what i get:
<p>This is important so please read it</p>As you can see, the strong tag has been removed and the second line is also gone...
How can i achieve it so that everything is parsed exactly as i pass it? Or do i need another component instead of the outputFormatted?
Edited by: Yannick Ongena on Sep 18, 2011 1:39 PM
Edited by: Yannick Ongena on Sep 18, 2011 1:40 PM

Yannick,
af:outputFormatted is designed to only support certain HTML tags, and cleans up the rest (see [url http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_outputFormatted.html]the docs)
You can use af:outputText with escape=false, just be sure to read [url http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_outputText.html]the docs and make sure you don't open yourself up to cross-site scripting attacks
John

Similar Messages

  • I want to switch my user id with my rescue email address, how can i change my rescue email address to something else to free that up?

    i want to switch my user id with my rescue email address, how can i change my rescue email address to something else to free that up?

    Hi EllaBella0902,
    Welcome to the Support Communities!
    The information below may be able to answer your questions about how to change your rescue email address:
    Manage your Apple ID primary, rescue, alternate, and notification email addresses
    http://support.apple.com/kb/HT5620?viewlocale=en_US
    Before you make any changes, you may want to review the information in the Frequently Asked Questions section of this article:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    This article explains how to update the information in the various services that use the Apple ID if you change it:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796?viewlocale=en_US&locale=en_US
    Cheers,
    - Judy

  • HT201376 I've erased and formatted the hard drive accordingly in order to reinstall OS X. everything went fine until about half way through the install. it just seems to stop. how long should this take? should i do something else to speed it up?

    I've erased and formatted the hard drive accordingly in order to reinstall OS X. everything went fine until about half way through the install. it just seems to stop. how long should this take? should i do something else to speed it up?

    About all you can do is wait until it finishes or you get an error message.

  • How to put an HTML file into JEditorPane

    Hi
    I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this source code to Jeditor pane.
    Thanks
    Srikant

    hi srikkant,
    ur html code is inside the source code..? are you working on applets..? if ur html file can be read as a file and the file stream can converted to a string and put into a Jeditor pane using the setText() method. for editing HTML text a editor called javax.swing.text.html.HTMLEditorKit can be used.
    Refer to JAVA API for further clarifiactions and examples.

  • How to render animation to a MP4 format or something else?

    Hello. I usually render my animation to uncompressed AVI because after it I have to render it again with different software for video motage. So there wasn't any problem. But today I have to render my animation directly from After Effects. So I can't render it to uncompressed AVI anymore. I try render to MP4 format but that doesn't exsist. Even after wathich that tutorial below, I don't have that option what we can see in this video:
    So I try to do something else. And I found different format as QUICKTIME with H.264. But after render, I can't see my animation (I can see only voice, there is no video). What is strange because movies from Adobe Premiere rendered to H.264 codec work perectly! The same codec but if I render videos from After Effects I can't see it in Windows. But from Adobe Premeire I can. Strange!
    So I render my animation to QUICKTIME -> Motion-A format. And it works, I can see a whole rendered video now. But... 5 sec is over 150MB! And this is way to heavy.
    Please, tell me what I have to do to render my animation in a good preset.

    MP4 is the best format for what you describe.
    After Effects never did a good job of rendering to that format.
    Instead of wasting development time trying to make AE better at it, the After Effects team chose to let the Adobe Media Encoder team work on encoding things and they would work on making After Effects perform better and have better features.
    So, either render an intermediate file from AE and use that in the Adobe Media Encoder or send your AE comp directly to AME. Either way, you will use the Adobe Media Encoder to make an MP4. That's how I did it even when AE could make MP4's because AE wasn't good at making them. You can get better quality at smaller file sizes with AME. Go with it.
    Here's the Adobe team's official word on it: using Adobe Media Encoder to create H.264, MPEG-2, and WMV videos from After Effects
    They explain the proper workflow and they explain why they removed H.264 and WMV encoding from AE.

  • How do I Convert PDF file in browser to something else?

    Hi All
      How can I convert a PDF file coming up in browser to something else so I can print it on my epson printer. I looked in other forums and found something I tried, where you downloaded a converter, and I converted in to Jpeg among some other options it had, and printer would still not work, printer works on regular websites or on my notepad etc. but won't do the PDF file or would not print once I converted it to other things, can anyone help me. Thank you

    I don't understand why you cannot print that PDF document.
    What happens when you click on the Print icon on the upper-left side of the Adobe Reader browser plugin

  • How to put back html tags

    Hi, I have a program that reads an html file, parses the html tags, now I execute code, and then would like to append the original file with my results...
    How would I put back in the html code that I parsed out? Or would I have to go through it & search for where the information ends, like right before the </body> tag, and then write in html code there...
    What do u think?

    yes, what I did, was read in each line, parse and put into a new StringBuffer... and finally save this into an ArrayList to manipulate it in the program...
    What I'm doing now, is trying to rewrite the html file, by
    PrintWriter cout = new PrintWriter (new
                                  FileWriter ("scores.html"));
    and then
    cout.print("<html>");
    etc, etc...
    and fill in the scores as
    cout.print(<li>);
    cout.print(ArrayList.get(i)); //the saved score
    etc.
    Right now, this isn't writing to the html file, so I wonder if PrintWriter is the right thing to use...
    Thanx for ur help!

  • How do i link to an iframe, _self, or something else?

    I have a vetical menu and I want to set my links for each item to open in an iframe on the same page. Other than using html object, is there a way to set target information for hyperlinks. There doesn't appear any way to set the target as something other than what comes with Muse (other page, anchor) like '_self', '_top', etc.

    Hello,
    The only option you have in Muse is to open the page in either same tab or a new tab/Window.
    For this you need to Click on hyperlink at the top and check the box as shown in the image below :
    In case you are looking for any other option like _self or _top, I would suggest you to post this as a feature request on our "Ideas for features in Adobe Muse" section of the forums : http://forums.adobe.com/community/muse/ideas
    Regards,
    Sachin

  • How to re encode UTF-16 to russian or something else

    Hi,
    My problem is following!
    I have a UTF-16 bytes (from HTTP splitted with byte[] bytessplitted = abvaluea.getBytes( "UTF-16" );).
    I am sure that it is UTF-16 because the given length from a example "string" is 14.
    So when i want to display this now in a jsp i tried following:
    <%= "UTF16 to German:"+new String(bytessplitted , "ISO8859_1")+"<br>"%>
    result is:
    ��string
    why is this!
    Then i tried russian:
    I entered: &#1103;&#1095;&#1089;&#1084;
    Convert to bytes: from HTTP (UTF-16) splitted with byte[] bytessplitted = abvaluea.getBytes( "UTF-16" );
    ReEncode: <%= "UTF16 to Russian:"+new String(bytess, "Cp1251")+"<br>"%>
    result on the new jsp:
    &#1102;&#1103;&#1057;&#1039;&#1057;�&#1057;&#1027;&#1056;&#1112;
    Is my try false?
    Please help me!
    Gernot

    new String(bytessplitted , "ISO8859_1")This bit of code says "Assume that bytessplitted was encoded using ISO*8859_1, and convert it to a String." Of course bytessplitted wasn't encoded that way, so it produces garbage. Likewise for your other conversion.
    What JSP does with a string, when you output it via <%= %>, is to convert it to bytes using the encoding defined for the page it is producing. This means that all of that mucking about with Strings and byte arrays, besides being wrong and harmful to your data, is also pointless. All you need to do is make sure your page is encoded in UTF-8, then write your String data to the response object.

  • SharePoint Calc Column - How to Find and Replace ANY & ALL Values with Something Else

    Haven't found a solution on this even though it seems like it should be cut and dry.
    I have a column containing characters "-" (e.g., XXX123-123-fjhrh-sdafsdfsd). I want to find every "-" and replace it with "@". Seems easy but so far haven't found a solution. My calc column always seems to stop at the first
    occurence of "-" and only replace that one. Seems every forumula wants you to tell SharePoint where to start (position). You can't simply tell SharePoint, Find this "-" ALL OCCURENCES and replace with this "@" ALL OCCURENCES.
    I don't have the option of saying start at this position because my data is not the same in every cell/field (e.g., number of characters).
    Closest I've gotten is this:
    =REPLACE([IN THIS COLUMN],FIND("-",[IN THIS COLUMN]),LEN("-","@")
    RESULTS:
    XXX@123-XXX-123

    Hi JJSHAREP,
    The formula only works when there are only three "-" in the column value, and the formula will fail if there are more than or less than three "-" in the column value.
    I recommend to use Jquery code to replace the characters in the column called IN THIS COLUMN in the UI:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    var Index=0;
    $(".ms-listviewtable tr th").each(function(i){
    if($(this).find("div").attr("name")=="IN_x0020_THIS_x0020_COLUMN"){
    Index=i;
    $(".ms-listviewtable tr").each(function(i){
    if(i>0){
    var value=$(this).find("td").eq(Index).text();
    var value1=value.replace(/\-/g, '@');
    $(this).find("td").eq(titleIndex).text(value1);
    </script>
    Best regards.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to put flash as a table or cell background or put HTML elements on top of flash file?

    Hi Guys,
    Could anyone please suggest me that how to put flash file as a table or cell background. I want to design a website and want to put HTML elements like table, images, text on top of flash file. so its look like animation in background. please visit following websites for an example: http://www.gagudju-dreaming.com/ and http://disneyworld.disney.go.com/
    Please guide me ASAP, thanks a lot in advance.
    Nitz.

    Hi Nitz
    The first thing you must do is convert your layout from table based to css based, (tables are o/k for tabular data, but not layout) but if you have never used css for layout it may be a steep learning curve.
    My recommendation is to start with the following tutorial on converting a table based comp to a css layout -
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    More info on using css is available here - http://www.adobe.com/devnet/dreamweaver/css.html.
    Once you have converted your site the 'procedure' for using swf's as a background, (does not work well with flv's, but can be done using html5 video without a skin, to a limited extent) is the same as having a background-image resize automatically to the full browser view-port. The best way to learn how to do this is to view the code on a page using the background-image technique, view the code on this page - http://www.pziecina.com/indexold.php.
    However, instead of having a fluid layout I would recommend using a fixed layout size to start with, as this overcomes many problems. I have uploaded a basic test page to illustrate the idea to - http://www.pziecina.com/test_ideas/swfbg_test.html. As I said the page must be resized in this example in order to see the effect, (so do not forget to resize the browser, even if it is only by 1px), but if you use a fixed size layout and your swf's size fits the desired area correctly the resize should not be required.
    PZ
    www.pziecina.com

  • How to put html file into a canevas?

    How to put html file into a canevas?

    Hi,
    would require you to write a JavaBean that interprets the HTML (there are commercial versions of this available)
    Frank

  • How to put a long HTML body in a blank page?

    Hi group,
    I have done a home page in Word :), after that, I want to put the HTML header and body code in the blank page (APEX blank page).
    HTML header is accepted without any problem, but when I try to paste the "html body" which was created very long APEX is not allowing me.
    The next error is displayed:
    ORA-20505: Error in DML: p_rowid=89, p_alt_rowid=ID, p_rowid2=116, p_alt_rowid2=FLOW_ID. ORA-01461: can bind a LONG value only for insert into a LONG column
    Is there any way to put my code in a blank page inside of APEX, or how can I put it like my home page?
    Any advice or help will be really appreciated.
    Thanks in advance.
    Kind regards,
    Francisco

    Francisco Martínez Oviedo wrote:
    Hi group,
    I have done a home page in Word :)That's not :), it's very :(
    Word-generated HTML and CSS is non-standard, bloated and incomprehensible.
    Learn some basic HTML and CSS so you can author the content properly.
    after that, I want to put the HTML header and body code in the blank page (APEX blank page).
    HTML header is accepted without any problem, but when I try to paste the "html body" which was created very long APEX is not allowing me.Where are you putting this?
    The next error is displayed:
    ORA-20505: Error in DML: p_rowid=89, p_alt_rowid=ID, p_rowid2=116, p_alt_rowid2=FLOW_ID. ORA-01461: can bind a LONG value only for insert into a LONG columnThe code is too big for whatever APEX container you are trying to use. Did I say that HTML from Word is bloated junk? This will be 3 times bigger than it needs to be.
    Is there any way to put my code in a blank page inside of APEX, or how can I put it like my home page?If you must persist with these crimes against mark-up, split the body code across several HTML regions on the page.

  • How to put "Issue Tracking" Demo HTML DB application in my development site

    I have set up Oracle 10g DB and HTML DB 1.5 on my Windows/XP machine.
    I also downloaded issue_tracker-3rd demo to my machine.
    I am new to HTML DB.
    Can someone tell me how to put issue_tracker into my HTML DB environment and test running it?
    Many Thanks....

    cckung,
    If you unzip the issue tracker zip file you will find it has a readme.txt file in it.
    You should just follow the directions in this file and you'll have the demo working in no time.
    Greg

  • How to put safari full screen without click/drag the sides and without going in to fullscreen mode??

    How to put safari full screen without clicking and dragging the sides and without going in to fullscreen mode?
    Thanks
    EG

    Hi, e8god.  
    Thank you for visiting Apple Support Communities.  
    The option to take apps full screen is still available.  Here are the steps on this feature in Yosemite.  
    Take apps full screen
    In many apps, you can expand the window to fill your entire screen. While in full-screen view, swipe to see another app’s full-screen window, to see your desktop, or to see a space you created.
    Expand to full-screen view: Click the green full-screen button in the top-left corner of an app window, or press Control-Command (⌘)-F.
    Move between windows in full-screen view: Swipe left or right on a trackpad or Magic Mouse. For more information, see Learn trackpad and mouse gestures.
    Return to standard view: Move the pointer to the top-left corner of the screen, then click the green full-screen button again, or press Control-Command (⌘)-F.
    Take apps full screen
    Cheers, 
    Jason H.  

Maybe you are looking for