I'm using JSF2 (Primefaces 2.x, and GlassFish 3.1.x).
I have a 'delete' button with a javascript confirmation.
<p:commandButton ajax="false" value="#{msg.common_delete}"
action="#{profileHandler.doDelete}"
onclick="return confirm('#{msg.profile_confirmDeleteMessage}')"
immediate="true"
/>
The problem is the message in the resource bundle has an apostrophe. Like "Are you sure you want to delete the user's profile?"
The apostrophe is breaking the javascript so the confirmation message never appears, the button just does the delete.
I tried changing the text in the message bundle to ' and ' but neither worked; I just see the "'" in the message.
Any help is greatly appreciated!
Rob