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 3948264
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:21:13+00:00 2026-05-20T01:21:13+00:00

I have a seam component where I put a message using standard seam annotation:

  • 0

I have a seam component where I put a message using standard seam annotation:

@In
private StatusMessages statusMessages;

public void myMethod()
{
  statusMessages.add("Welcome, #{user.getName()}, after confirmation you will be able to log in.");
}

and than in the xthml page to show this message:

<h:messages id="mensagensHome" globalOnly="true" styleClass="message"
            errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
            rendered="#{showGlobalMessages != 'false'}" />

This is working perfectly, but I have a requirement where the name should be Bold. Than I have already tryed placing standard html tags in my message like:

 statusMessages.add("Welcome, <b> #{user.getName()} </b>, after confirmation you will be able to log in.");

But than it shows the tags on the page and does not turn the name bold.

I have also tried using unicode escape character to render the html tags, but again no success.

Is it possible to use standard html tags from code looking forward to format messages in Seam?

Tx in advance.

  • 1 1 Answer
  • 3 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-20T01:21:14+00:00Added an answer on May 20, 2026 at 1:21 am

    Actually you can’t, unlike h:outputText h:messages don’t have an escape property where you would be able to do escape=”false”.

    In the link bellow you can find a sample on how to extend h:messages, actually it’s not exactly h:messages that is extended but the end result is the same. So you can set escape=”false” in h:messages and have the browser parse html tags.

    http://balusc.blogspot.com/2010/07/using-html-in-jsf-messages.html

    Be careful if you display something that the user inserted because this is is prone to html injection.

    Note: The link is not mine, but it did work for me.

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

Sidebar

Related Questions

I have a problem when using a mdb as a seam component. In the
In my Seam application, I have a Seam component that returns a ( @Datamodel
We are using Seam 2.2.0 Java 1.6.14 Weblogic 10.3.1.0 (named 11g Doh!) I have
I'm trying to implement a custom validation annotation in Seam. We have a list
I have been mocking out some seam components using the following signature: @Name(myService) @Install(debug
I'd like to be able to make an Ajax call using JSF/Seam/RichFaces and have
I am using Jetty 7 with JBoss Seam and have 2 Java Mail Sessions
i'm using prettyfaces 3.1.0 with JSF1.2 and Seam 2.2.0. I have the following pretty-config.xml:
I have this simple class: public class LuceneUtil{ private final EntityManager entityManager; public LuceneUtil()
I am using seam with EJB3 + JSF and I would like to add

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.