Sunday 15 September 2013

properties - JSF call message bundle : EL in EL -


I am working in JSF2 and I have displayed a resource bundle to display messages from property files.

The configuration looks great (if I display # {msg.risk} "toto")

messages.properties

 . .. COMPANYGROWTH = E249 RISK = TOTO   

I would like to talk like this:

See

  & lt; F: LoadBandal Basename = "Troy" var = "msg" /> ... & lt; P: column & gt; & Lt; H: outputtext value = "# {msg. # {key}}" /> & Lt; / P: column & gt;   

In EL # {msg} # Is putting EL as {{Key}}, where key will be a declared line value, is there a way to do this figure?

Thanks

For this you must be using the brace notation # {Bean [Property]} .

Like this:

     

Note that nesting EL expressions are always invalid syntax. You should see # {...} as a large evaluation location where the variables interact with each other. You should not see # {...} as a code.

Also see:


No comments:

Post a Comment