Review request for RT-19228

Greg Brown greg.x.brown at
Fri Mar 30 13:26:43 PDT 2012

> I'm not overly fussed on this but just an observation: this is basically an 'expression' and there has been some talk of supporting EL style expressions in the future. 
> With that in mind have you considered:
> <TableView columnResizePolicy="${TableView.CONSTRAINED_RESIZE_POLICY}" />

I don't think EL supports constant references - I believe it only supports instance properties. So, as written, I don't think this would work.

EL does support functions, so something like this could work:

<TableView columnResizePolicy="#{getResizePolicy('CONSTRAINED_RESIZE_POLICY')}"/>

but, to me, that's doesn't seem quite as readable as simply using fx:constant (or even the builder-based shortcut syntax).

Interesting idea though. Definitely something to think about for the future.


More information about the openjfx-dev mailing list