I’m using EL 2.2 with Eclipse in xhtml pages.
How can I tell Eclipse to resolve keys with .concat(), like:
<h:outputText value="#{'message.xx.'.concat(cc.attrs.type)]}" />
Obvious the key does not exist in resrouce bundle in that way, bc it is dynamically build by the concat.
So Eclipse constantly claims of an invalid expression, further the xhtml pages are marked that they contain an error. Although it works in the webapp without a problem!
This is really annoying, how could I fix this?
not quite sure how you defined your bundle name , but lets call it
bundleNameso use
<ui:paramto build your desired key , no.concatusage neededincase you can access the
cc.attrs.typeby#{cc.attrs.type}