I'm trying to localize some messages I get in the searchCriteria object (like in the booking example), which is a flow variable.
I've tried several ways, none successful so far:
1. inject a resourceBundle into the variable. No success because the resourceBundle can't be serialized
2. provide the key from the backing bean, and have the resourceBundle in the view show the translation. I'm getting an EL expression error on this one.
I'm trying to do the second option in the following way:
but EL can't parse it.
Is there an expression that can pull the trick this way? Or any other suggestions to get localization working?