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

  • Home
  • SEARCH
  • 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 5842341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:00:19+00:00 2026-05-22T12:00:19+00:00

i have a JSF/Seam Page and added a new not HTML Interface. I reused

  • 0

i have a JSF/Seam Page and added a new not HTML Interface. I reused the business logic, so StatusMessages.instance().add is used everywhere.

Is there a default way to access and handle this StatusMessages from Java or do i have to extend the base class and pass the protected messages list?

thx

Edit:

StatusMessages.instance().add(Severity.ERROR, "Please enter a username.");

The FacesMessages is not returning his own messages List (where i saw the entry in the debugger) (FacesMessages.instance() is the same object as StatusMessages.instance() )

FacesMessages.instance().getCurrentMessages();

It is calling this

FacesContext.getCurrentInstance().getMessages();

and this is returning an empty iterator.

  • 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-22T12:00:20+00:00Added an answer on May 22, 2026 at 12:00 pm

    StatusMessages is abstraction for handing messages in a way that is not dependent on the view technology you are using.

    Default implementation of this abstraction is org.jboss.seam.faces.FacesMessages. This is included in Seam for use with JSF.

    If are reusing you business logic with another view technology you could provide your specific StatusMessages implementation. Actually, that’s why this is an abstraction.

    @Scope(ScopeType.CONVERSATION)
    @Name(StatusMessages.COMPONENT_NAME)
    @Install(precedence=APPLICATION)
    @BypassInterceptors
    public class NonHtmlMessages extends StatusMessages
    {
      /// implement here you message handling
    

    Because of @Install precedence this will automatically be used in all StatusMessages.instance().

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

Sidebar

Related Questions

Is there any documentation about introducing jBoss seam to an old Hibernate/JSF project? Have
I'd like to be able to make an Ajax call using JSF/Seam/RichFaces and have
If you have a JSF <h:commandLink> (which uses the onclick event of an <a>
In JSF is it possible to have a datatable displays records as follows? [Name
All the tutorials I have seen seem to use *.jsf , *.faces , or
I am running a Seam web application with Richfaces for the JSF implementation. I
Is there such a thing as JspC in the Seam/JSF/Facelets world? I used the
We have a system built on seam/richfaces. There's this webpage where the tables are
I have a new web app that is packaged as a WAR as part
I have found this example on StackOverflow: var people = new List<Person> { new

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.