fields icon indicating copy to clipboard operation
fields copied to clipboard

bean and property atrributes should be optional if value is provided

Open ghost opened this issue 11 years ago • 1 comments

On a few occasions I've wanted to use f:display to render a value which is not a bean property. Here's a contrived example

<f:with bean="cb">
    <f:display value="${cb.calc()}" id="calc"/>
</f:with>

But the invocation of f:display without a property attribute causes an exception. I don't see why I should need to provide either a property or bean attribute when I'm specifying the field value like this?

ghost avatar Aug 09 '14 13:08 ghost

@domurtag @sbglasius ,

For this enhancement, How the display templates will be picked up, as property is not specified ? -- based on the type of value ? (obviously based on template resolution order)

snimavat avatar Apr 24 '17 15:04 snimavat