struts-community-plugins / struts2-jquery

Struts2 jQuery Plugin
Apache License 2.0
83 stars 49 forks source link

Disables Auto-Escape for the Dialog #284

Closed guidomon closed 2 years ago

guidomon commented 2 years ago

Since Commit c25b158 the buttons-Options are Auto-Escaped, so the ' turns to "'". This Commit disables the Auto-Escape (see https://freemarker.apache.org/docs/dgui_misc_autoescaping.html#dgui_misc_autoescaping_disableautoesc) for the Dialog. You can see the Effect in the Dialog-Part in the Showcase.

sdutry commented 2 years ago

@guidomon can you add a comment that provides a sample that shows the problem please.

guidomon commented 2 years ago

If you build the Showcase and go to "Widgets -> Dialog -> Dialog with Buttons" the Buttons won't work. That's because the ' in the Code for the "buttons" Property (see the Example-Code in the aforementioned Showcase-Example) gets escaped. Changing the "?string" to "?no_esc" stops this Behaviour. This would have to be applied to all other Points where such Code is assigned.