[REVIEW] Support leading backslash as escape character in FXML

Tom Schindl tom.schindl at bestsolution.at
Fri Dec 23 01:25:51 PST 2011


Am 22.12.11 19:42, schrieb Greg Brown:
> This change would add support for a leading backslash as an escape character in FXML:
> 
> http://javafx-jira.kenai.com/browse/RT-18680
> 
> UEL uses a leading backslash as an escape character for expression values. For consistency, FXML should probably also support this convention. For backwards compatibility, we would also preserve the existing convention of doubling up the resolution operator as an escape sequence. So, for example, both of the following would be supported and would produce a Label instance with text "$foo":
> 
> <Label text="$${foo}"/>
> <Label text="\${foo}"/>
> 
> Comments/questions welcome.
> 
> Thanks,
> Greg
> 

Is it really necessary to support the old format? The more extra cases
you make the harder you make it for tooling vendors because they have to
support 2 formats.

I would vote to only support the new version and documenting in a
migration guide that $$ is not supported any more but that's just me.

Tom

-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                 geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
http://www.BestSolution.at                      phone    ++43 512 935834


More information about the openjfx-dev mailing list