Java – JSF best practice for binding UI components to backing bean

javajsf

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?

Best Answer

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.

Related Topic