Concatenating strings within EL expression defined in an attribute of a facelets tag
问题 I need to write an EL expression for an attribute which goes something like this: #{cc.attrs.appreciatedByCurrentUser ? (cc.attrs.count +'<br/>'+ (cc.attrs.count-1)) : ((cc.attrs.count+1) +'<br/>'+ cc.attrs.count)} Now the problem is that this gives an error as strings cannot be concatenated, the way I am doing it. So how can I rectify this? I'm using JSF 2.0 with facelets. EDIT : I'm resolving the issue using the following inline javascript <script type="text/javascript"> var count=#{cc