How can I check if a Resource Bundle contains a specific key in a JSF page -


I have a JSF page in which a bundle is loaded. Although I need to dynamically create a key to use the property. What I need to do is check that the property exists, so I can decide whether to render or not.

I've checked that the value is empty, but it always gives output

Thank you

You can write a custom JSTL / Facet function which can be used for two arguments - Bundles and keys, and confirms that the key is contained or not:

  value = "# {cust: containsKey (msg, key) • msg [key]: 'Default'} " 

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -