Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6958177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:06:22+00:00 2026-05-27T15:06:22+00:00

I make heavy use properties from bundles in my application as I strive to

  • 0

I make heavy use properties from bundles in my application as I strive to keep code maintainable in future. Because of this all HTML text is fetched from a key/value properties file eg. ‘index_en.properties’

This has become problematic where I need the browser to render bold text and I don’t find any topics online that address this problem.

Best solution I can then up would be to break every fetched value down with use of the

<h:outputText> tags that are child elements of the `<b>` tags. 

What I need here is a methodology/tips/solution from someone who uses property files often.

I tried using html escape codes directly in the properties file, but this does not work.

Any tips?

Thank you,
Yucca

PS I doubt CSS will help me here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:06:23+00:00Added an answer on May 27, 2026 at 3:06 pm

    Put HTML <b> in bundle and use escape="false" on <h:outputText> to disable standard HTML escaping by the component:

    <h:outputText value="#{msg.text}" escape="false" />
    

    Be sure that you never do this on user-controlled input as it would put XSS attack holes open. Also be sure that you don’t go overboard with putting HTML in bundles. For basic text formatting with <b>, <u>, <i>, <s> and so on it’s okay, but not for semantic markup like <p>, <div>, <h1>, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I make heavy use of the ViewBag in my MVC application, is this considered
Coming from the MS SQL world, I tend to make heavy use of stored
I am writing a distributed Java application that will make heavy use of networking,
I'm writing a python application that will make heavy use of a graph data
I am creating an application that will make heavy use of Ajax and performance
We make heavy use of multicasting messaging across many Linux servers on a LAN.
I am new to SVN and make heavy use of the externals property. I
I often hear complaints that programming languages that make heavy use of symbols for
In my java program I make heavy use of Suns implmentation of the Rhino
We have a couple of very very slow JUnit tests that make heavy use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.