Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In JSF is it ok to bind UI components to backing bean just to render messages or we should only bind when we need to do lot more than just rendering messages?

share|improve this question
It depends on what you are binding to! Is it a DTO that represents the message or something else? – Martijn Verburg Nov 1 '12 at 12:54
In the current application, it is mainly used to bind error messages to the component, other than that there is nothing happening with the UI object. So i'm asking is it an over kill to bind each component just for that purpose? – user71561 Nov 2 '12 at 6:18
Probably yes - having it bind to one generic error message component with different contents should do the trick – Martijn Verburg Nov 2 '12 at 15:39
thanks @MartijnVerburg – user71561 Nov 5 '12 at 9:02

Backing beans are for your data, not for messages, so I would go for another aproach: Use the built-in i18n-features instead. I think that's the proper place for all your static strings, which are presented to the user. Plus your Application is ready to be translated.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.