[jboss-user] [JBoss Seam] - EL embedded in message bundles broken in 1.1?

rdewell do-not-reply at jboss.com
Thu Oct 26 15:51:48 EDT 2006


Pretty smooth upgrade to 1.1 overall.  Still on 4.0.4 + myfaces 1.1.4.

Running into a problem with EL embedded in messages.  This worked fine in 1.0.1:

Messages in the bundle are:


  | C.Icon.Yellow.BGBottom=239,223,56
  | C.TransactionLifecycle.Completion.Icon.BGBottom=#{messages['C.Icon.Yellow.BGBottom']}
  | 

This was working on same jboss + my faces in 1.0.1, but is broken in 1.1.  Not sure if this is a usage problem on my part that is now broken, or something with seam.  Anyway, here's the trace when this is evaluated:

Ideas on what changed?


  | 12:27:20,775 WARN  [Interpolator] exception interpolating string: #{messages['C.Icon.Yellow.BGBottom']}
  | javax.faces.el.ReferenceSyntaxException: Invalid expression: '${messages.'C.Icon.Yellow.BGBottom'}'
  |         at org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.java:97)
  |         at org.apache.myfaces.el.ValueBindingImpl$2.newInstance(ValueBindingImpl.java:82)
  |         at org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
  |         at org.apache.myfaces.el.ValueBindingImpl.<init>(ValueBindingImpl.java:115)
  |         at org.apache.myfaces.application.ApplicationImpl$1.newInstance(ApplicationImpl.java:64)
  |         at org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
  |         at org.apache.myfaces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:617)
  |         at org.jboss.seam.actionparam.ActionParamValueBinding.setBinding(ActionParamValueBinding.java:68)
  |         at org.jboss.seam.actionparam.ActionParamValueBinding.<init>(ActionParamValueBinding.java:62)
  |         at org.jboss.seam.jsf.SeamApplication11.createValueBinding(SeamApplication11.java:109)
  |         at org.jboss.seam.core.Expressions$1.getFacesValueBinding(Expressions.java:66)
  |         at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:49)
  |         at org.jboss.seam.core.Interpolator.interpolateExpressions(Interpolator.java:83)
  |         at org.jboss.seam.core.Interpolator.interpolate(Interpolator.java:58)
  |         at org.jboss.seam.core.Messages$1.get(Messages.java:67)
  |         at org.jboss.seam.core.Messages$1.get(Messages.java:82)
  | 
  | .....
  | 
  | Caused by: org.apache.commons.el.parser.ParseException: Encountered "\'C.Icon.Yellow.BGBottom\'" at line 1, column 12.
  | Was expecting:
  |     <IDENTIFIER> ...
  | 





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981117#3981117

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981117



More information about the jboss-user mailing list