How can I render the contents of an attribute dynamically?
Something like:
style="#{not empty book.image ? 'background-image: url('+ book.image +'); border: 1px; ' : ''}
I don't know how to reference book.image inside the attribute.
I can't place a ui:fragment inside the element either to say whether to render or not style. I don't think it is an efficient idea to duplicate the whole element, which already has some other attributes, inside two different ui:fragments (one with empty rendered and the other one with not empty rendered). I don't think it is a good idea to place my presentation in the Named bean like this: style="#{bookNamedBean.TheStyle}", as it will mix layers.
