Html tags in .properties files.

Hi all,
I want a small clarification regarding the .properties file in JSF.
I want to execute html tags in the properties file. my resource file is...
code = Section Code
I want to make the Section Code as bold. If i give like this
code = < b > Section Code < /b >
all the html tags are displayed as it is on UI. In struts this works fine. means "Section Code" is displayed in Bold.
In JSF, is there any way to do this?
Thanks.

Use escape attribute of outputText tag.
<h:outputText value="#{employee.dataText}" escape="false"/>

Similar Messages

  • HTML tag input type="file"

    hello!
    i used the html tag <input type="file" name="fp"> to have a browse File in my html Page and succesfully gets the file,path and directory when i used fp.value on my windows but when i Load the Html file in Linux
    i only get the filename (excluding the Path)
    can someone tell how to get through this any solution ?
    nid yur help badly!
    Gud day!
    p.s. i used a javascript to get the pf.value.

    Here is a solution:
    Post your question on a relevant forum. These forums are for Java. Java is not Javascript. Javascript is not Java.

  • Contructing HTML tags in JSP files

    Hi,
    I am new oracle portal development and using version 10.1.4. version for my development. Our requirement is develop a portlet using JSR compliance API so we could deploy our portal applications across all vendors like IBM,ORacle,Vignette,weblogic,etc...
    As of now have written a portlet application where all html tags are constructed in Portlet Action class not in JSP file.
    Please help me to develop JSP file to put html contents and examples.
    Note: it should be JSR 168 compliance.
    thanks in advance
    thanks
    Suren

    That was an attempt to just change the outputText tag, not my actual CSS.
    Below is my "source" which i don't find particularly helpful, since its JSP/JSF doesn't it just use scripting to load new pages onto the original address?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <link rel="stylesheet" href="../../theme/Master.css" type="text/css">
    <title>Product Catalog</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="GENERATOR" content="Rational Application Developer">
    </head>
    <SCRIPT type="text/javascript">
    window.onbeforeunload = function(){
         window.location.href = "/forms/faces/jsp/searchforms/Logout.jsp";
         unloadPage();
    function unloadPage()
         var now = new Date();
         var exitTime = now.getTime() + 500;
         while (true) {
              now = new Date();
              if (now.getTime() > exitTime)
              break;
    </SCRIPT>
    <FRAMESET cols="100%">
    <FRAME name="main" src="faces/jsp/searchforms/SearchForms.jsp">
    <NOFRAMES>Your browser doesn´t support frames!</NOFRAMES>
    </FRAMESET>
    </html>

  • Does Firefox work with all html tags/CSS properties?

    I am considering Firefox because MSIE has been and is becoming more annoying.
    I want a browser that simply implements all html tags and CSS properties.
    I want Firefox to install without screwing with any other application on my computer.
    Possible?

    Sure no problems to install Firefox alongside other browsers.<br />
    You only need to decide which browser to set as the default browser that is used when you click a link in other programs.
    *http://developer.mozilla.org/en/Mozilla_CSS_support_chart
    *https://developer.mozilla.org/en/HTML

  • How to render HTML tags in FDF file?

    We're creating PDF files using FDF format. Unfortunately, when it comes to displaying characters like © (&copy;),  ® (&reg;); and ™ (&trade;) they are simply rendering as &copy; rather than the proper symbol they represent.
    Is there a way to tell the FDF to render this properly?
    Dave

    HTML centric jargon, the &[something], is the problem. Each character of a "&[something] has a defined value that maps to Unicode. That is what PDF works with (Ref. ISO 32000-1).
    Try using the actual ANSI number for the characters. Again, PDF is not HTML.
    ANSI 0169 for ©
    ANSI 0174 for ®
    ANSI 0153 for ™
    Be well...

  • Html tag to upload more than one file at a time

    hai sir this is surendra i need html tag to upload more than one file at a time .I am using
    <input type="file" name="">
    tag to upload single file at a time i need tag to upload more than one file at a time .
    Waiting for your result

    You can add more than one input element of type file.
    <input type="file" name="name1">
    <input type="file" name="name2">

  • How to remove html tags from the pdf file ?

    Hello,
    Using BI publisher we are generating a pdf file. In the table, we have data which contains html tags. for example " test1<br> 2.test2<br> 3.test3<br> ".
    In the pdf file we need to get the output like this
    test1
    test2
    test3
    But the output is as follows :"test1<br> 2.test<br> 3.test3<br> "
    Any idea, how these html tags can be removed from the pdf file and obtain the required result?
    Thanks in advance!!
    Archana

    Archana,
    Can you wrap your code in <code> tags (use square brackets rather than angled ones), as the forum software is interpretting the HTML tags, in other words we can't see what you mean ;)
    In any case, there are a few different options (guessing at what your problem is, without seeing the actual data), you could use htf.escape_sc or replace, regexp_replace etc to substitute the values before you output them to your PDF.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Invalid HTML tag - Is this true? Child .chm files cannot have underscores in name?

    I’ve been having the following problem:
    file mk:@MSITStore:  … xxx.chm::/xxx.hhc contains an invalid HTML tag
    In more detail what happens:
    You click on the .chm file to open it and you get a dialog with an error message:
    The file mk:@MSITStore:E:\p4_work\1663\isentris\isentris\end-user\trunk\src\Symyx_Isentris\!SSL!\M icrosoft_HTML_Help\Symyx_Isentris.chm::/Symyx_Isentris.hhc contains an invalid HTML tag
    There is an OK button and when you click that, then the .chm file opens just fine.
    All child .chms open fine when I click on them.
    This merged help project worked fine until I upgraded from RH X5 to RH7. I hadn’t changed anything. Then I started reading the forum (RoboHelp HTML Help).
    What I’ve done so far:·         Upgraded all help projects from RH X5 to HR7.
    ·         Regenerated all .chm files, added them again to parent help project’s TOC.  Child .chm files open fine.
    ·         Regenerated a new parent .chm.
    So, I see that one of Colum's answers in another thread was to make sure that none of the child .chms had underscores in the title.
    >>>>>>>>>> !!!!!!!!   you mean that RoboHelp now does not accept underscores in .chm titles? Please don’t let it be so.
    Also, several people said that they solved the problem like this:
    ·         “You will get this message if your merged CHMs are not in a book in your merged TOC. Check that. “  You mean I have to associate a book icon with each child .chm in the parent’s TOC?
    ·         My guess is that the merged project should be placed inside a book in the main project's TOC. You'll just have to rearrange the subprojects TOCs so you don't have books inside books.
    What does “in a book” mean? See my attached jpegs. The child project’s TOC is in book form  … within the child project. However, in the parent project’s TOC, the child projects are shown with that merged symbol … kinda looks like a very angular G. Should I create books that link to destinations? Is that what I should do in the parent project’s TOC? Somehow that doesn’t look like it’s going to work – I looked at both dialogs – link and no link – neither one looked like it would work.
    Thanks so much for your help!!

    When you have a directory path in the TOC, that means that the directory structure should match. So for example:
    TOC (in parent.chm)
      !SSL!\Microsoft_HTML_Help\symyx_client.chm
      symyx_for_excel.chm
    End folder structure: (+ for folder, - for file)
    + Help
       - parent.chm
       - symyx_for_excel.chm
         + !SSL!
            + Microsoft_HTML_Help
               - symyx_client.chm
    Now if the symyx_client file shows up okay after the error message, possibly the parent chm file is smart enough to correct for the directory structure not being there, but a file with the correct name existing in the same directory as the parent.
    We've always tried to ensure out merge references don't have a path - RH has the annoying habit of requiring the chm file to be copied into the root, but we just delete it after the first build, as it shouldn't need to be there for the actual compile process. In fact, we've had problems with the chm being physically built into our parent chm, drastically increasing the file size and resulting in duplicate and outdated topics in search. We leave the file there for the first build as sometimes the merge doesn't work first go without it; I think it has to do with how it gets added to the hhp file.
    To test that our merge works, we just copy a couple of the files into the same folder  (e.g. c:\temp\test) to double-check. We need this process as our clients get different combinations of the total chm files built into our parent.
    Something else I've just thought of is maybe there is something strange happening in the actual hhc file. Do you have any topics in that TOC with characters other than a-z, 0-9 and underscore in the filename (in the topic title should be okay, but maybe some particularly odd ones might cause an issue)?
    Amber

  • I am not getting required output after importing xml file having HTML tags, MathML and Latex code

    I created well formatted xml having html tags, MathML code and Latex code inside
    XML with sample latex
    <question>
        <p> 8. In this problem, <Image  style="vertical-align: -9pt" title="5a\frac{7b}{3}" alt="5a\frac{7b}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%5Cfrac%7B7b%7D%7B3%7D%0A"></Image> and <Image href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%207b%5Cfrac%7B5a%7D%7B3%7D" style="vertical-align: -9pt" title="7b\frac{5a}{3}" alt="7b\frac{5a}{3}"> </Image>are both mixed numbers, like <Image src="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%203%20%5Cfrac%7B1%7D%7B2%7D%20=%203.5" style="vertical-align: -9pt" title="3 \frac{1}{2} = 3.5" alt="3 \frac{1}{2} = 3.5"></Image>. The expression <Image style="vertical-align: -9pt" title="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" alt="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%20%5Cfrac%7B7b%7D%7B3%7D%20%5C%20%5Ctimes %207b%20%5Cfrac%7B5a%7D%7B3%7D"> </Image>is equal to which of the following choices? </p>
    </question>
    XML with sample html tags
    <p>4. Examine the expression 3<i>k</i><sup>2</sup> + 6<i>k</i> - 5 + 6<i>k</i><sup>2</sup> + 2.</p><p>When it is simplified, which of the following is the equivalent expression?</p>
    XML with sample MathML tags
    <p>5. Find the vertex of the parabola associated with the quadratic function <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo> </mo><mo>=</mo><mo> </mo><mo>-</mo><msup><mi>x</mi><mn>2</mn></msup><mo> </mo><mo>+</mo><mo> </mo><mn>10</mn><mi>x</mi><mo> </mo><mo>+</mo><mo> </mo><mn>4</mn></math></p>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math>
    None of the above works fine after importing xml to Indesign document/templete, it is not renderting equivalent out instead it is showing the same text inside tags in the Indesign document.
    I have lot of content in our database, I will export to XML, import to Indesign, Indesign should render required output like what we see in the browser and export the output to printed format.
    Import formated XML to indesign --> Export to Quality Print Format
    Can any one guide me and let me know whether it is posible to do with Indesign, if so let me know in case if I am missing anything in importing xml and get required output.
    Thanks in advance. Waiting for reply ASAP.

    Possibly your expectations are too high. ... Scratch that "possibly".
    XML, in general, cannot be "rendered". It's just an abstract data format. Compare it to common markup such as *asterisks* to indicate emphasized words -- e-mail clients will show this text in bold, but InDesign, and the vast majority of other software, does not.
    To "render" XML, HTML, MathML, or LaTeX -- you seem to freely mix these *very* different markup formats, unaware of the fact that they are vastly different from each other! -- in the format you "expect", you need to apply the appropriate software to each of  the original data files. None of these markup languages are supported natively by InDesign.

  • Extract text file with HTML tags from JTextPane

    hello world
    I have a big problem !
    I am creating an applet with a JTextPane ...
    so I can write text, (bold, italic etc), i can insert images.
    Now i want to create a text file with all the HTML tags
    corresponding to what I wrote in my JTextPane.
    I want to have and save the HTML file corresponding to what i wrote ...
    Is it possible ? Help me please ....
    Jeremie

    writing to a file from an applet is going to take a fair amount of work on your part.
    in order to write to a file from your applet, you have to use servlets or jsp to write to a file on your server. if you wish to write locally, look into signing your applet or policy settings of your browser.
    for writing to a file to the server, i suggest you look into servlets and tomcat to run the servlets.
    i just finished a project that used servlets and they take some time to figure out, but its definitely worth your time.
    here are some websites...
    http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html
    http://jakarta.apache.org
    other websites have tutorials that you can look at too
    Andy

  • Japanese unicdoe properties file

    I have a japanese resource bundle file in SJIS encoding (*.properties)
    I used native2ascii from JDK and convert SJIS to unicode.
    Then read japanese ( in unicode properties file ) from servlet and send to IE browser.
    but IE will display all "?" s
    On the other hand it display correctly if I use SJIS encoded properties file. ( which has a problem -- all SJIS character with "/" character will need to manully escaped "//" )
    I wonder why unicode properties file doesn't work?? I thought we should always convert properties file to unicode to avoid the escape problem of "/" character.
    thanks

    Regardless of charset, all HTML files should begin with an appropriate charset meta tag.
    The JSP for this:
    <%@ page contentType="text/html;charset=UTF-8" %>
    The HTML for this:
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
    What charset encoding are sending to the IE browser? Is it UTF-8? UTF-16? something else?
    Regards,
    John O'Conner

  • Writing HTML tags in Abstract Portal Component?

    Hi,
    I am trying to write some HTML tags in an Abstract Portal Component and I am facing problem to write  "/"
    Pls. let me know if there is any escape character or any other way of printing a "/" in a tag like as follows....
    response.write("</td>")
    <b>New Addition:</b>
      SORRY ... WE CAN Write </td> without any problem ..
      Due to some error on the top of the program this is wrongly shown...
    Thanks 
    Mrutyunjay
    Thanks & Regards
    Mrutyunjay

    Hi Nari,
    Follow the below steps:
    1. Store your properties files (test.properties, test_en.properties, test_xx.properties where xx is the locale ) in the folder PORTAL-INF ->Private ->classes
    2. In portalapp.xml for component-config, add this
    <property name="ResourceBundleName" value="test"/>
    3. In your abstract portal component you can use the below code to fetch the value for the key "SERVER_NAME".
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
             ResourceBundle resourceBundle = request.getResourceBundle();
             if(resourceBundle!=null)
                  response.write(resourceBundle.getString("SERVER_NAME"));
             else
                  response.write("Error");
    Let me know if you still face any issue.
    Thanks
    Prashant

  • Creating menu from properties file

    hi,
    I want to create a menu dynamically using a properties file.
    All the nodes of the menu are inside the properties file.
    I have a main page, inside the main page i have include this menu.jsp file, this file must read the properties file and and consruct the menu. can any one suggest me a better way to do this.
    iam trying to do with a bean file. is there any better way please suggest.
    thanks
    vin

    I would split it into two parts. Use a JavaBean to load the menu structure from the proprties file (perhaps makes a TreeMap or similar structure of value/link pairs) then use a custom tag to generate the on-screen menu from the tree generated by the JavaBean (you pass the bean to the tag, it traverses the menu structure and outputs the HTML/CSS/javascript needed to make the display).
    Search the net. A similar library may already be available. If not, then you can search JavaScript libraries to get an idea on how to do the menu display part.

  • How do I set BI Publisher to read html tags from the database?

    How do I set BI Publisher (Release 10.1.3.4) to read html tags from the database? For example if the text is quoted with a bold tag I want my output to display the text in bold. Is there a setting or something I can set?

    I took a look at Tim Dexter's blog as suggested and the sample worked, but for the elements in the xml file not for the value coming from the database, however this is good to know as well!
    I have data in the data base column which looks like this:
    'MS Applied <B(bold tag)> Mathematics</B(bold tag)>University of Southern California'
    I want the data to be rendered like this:
    'MS Applied <B>Mathematics</B> University of Southern California'.
    In Report Builder on the property sheet I would set Contains HTML Tags property to Yes and the report would render correctly.
    In BI Publisher 10.1.3.4 I can not seem set it to read this I have change the configure properties of the report to Character set to HTML and Make HTML output accessible to True. I just can't figure out what I'm missing.
    Thank you for any assistance you can offer.

  • MK@MSITStore  contains an invalid HTML tag

    When I compile my master help project which contains many
    merged projects I get the following message after compiling:
    The file mk:@MSITStore:C:\[path of
    project]\master.chm::/master.hhc contains an invalid HTML tag.
    I have looked at the .hhc file and it looks fine. I do not
    get this message when compiling and running any of the
    sub-projects. Any ideas?
    I am running Windows Vista and RoboHelp 7

    Hi,
    I have tried to recompile everything and readd it. I have
    tried adding the sub-projects at different levels within the book
    (as seen in a post back in September). I have tried deleting the
    .cpd and .hhc files and recreating them. Nothing works.
    I am not sure if this is a clue, but when opening the
    compiled project, I get the error message and then the main topic
    displays. The TOC entries do not work, and when right-cicking on
    the main topc in the right pane and selecting properties the
    address displays as:
    mk:@MSITStore:C:\HTML%20Help\WW1\Compiled\Master.chm::/Help_Intro.htm
    Thanks in advance for any insight!

Maybe you are looking for

  • Problems with Windows and Random Crashes

    For the past two days I have been having tons of problems, since I finally got around to running the security update (2006-008). I've been having loads of random crashes, most commonly from Safari, Finder and iTunes. Safari crashes usually when I clo

  • NAS nfs (WD Netcenter) permissions and speed problems

    I have a 320GB WD Netcenter - used to use it on an older mac and now on my new one. Permissions seemed to be blocked on one of the other user accounts on this new MBP. When I do "get info" the owenship boxes are greyed out and I cannot change anythin

  • Download or view PDFs?

    I have uploaded numerous PDFs to my site, using the hyperlink-to-file option in the inspector. On the published site (published to MobileMe), some of the PDFs download when their links are clicked, and others simply open in the browser. Is there a wa

  • Can't open .wmv file type

    HELP! I can't seem to open email attachments from friends when they're a .wmv. I've tried the drag into an open Safari window - no worky. I've downloaded the free version of FLIP4MAC - no worky. Have not downloaded Windows Media Player 9 for Mac yet

  • Universes based on BW: multilingual universes?

    Hi, we are using BO with SAP BW and have several universes for use with WebI and Xcelsius. It's necessary that the characteristics and key figures are avilable in different languages. I know the "Translation Manager", that comes with BOE a little bit