Comments on: Generate 'Delete with Confirmation' in JHeadstart applications https://technology.amis.nl/2006/11/10/generate-delete-with-confirmation-in-jheadstart-applications/ Friends of Oracle and Java Tue, 03 Mar 2015 09:19:43 +0000 hourly 1 http://wordpress.org/?v=4.1.1 By: Sandra Muller https://technology.amis.nl/2006/11/10/generate-delete-with-confirmation-in-jheadstart-applications/#comment-3998 Thu, 30 Nov 2006 13:05:52 +0000 http://technology.amis.nl/blog/?p=1400#comment-3998 I wrote an explanation of generating custom resource bundle entries using JHeadstart in http://blogs.oracle.com/jheadstart/2006/11/30#a108, where I refer to this example.

]]>
By: Aino Andriessen https://technology.amis.nl/2006/11/10/generate-delete-with-confirmation-in-jheadstart-applications/#comment-3997 Fri, 10 Nov 2006 21:13:20 +0000 http://technology.amis.nl/blog/?p=1400#comment-3997 A small addition : using ${JHS.current.group.displayTitleSingular} instead of the word Employee makes it a generic button.

]]>
By: Aino Andriessen https://technology.amis.nl/2006/11/10/generate-delete-with-confirmation-in-jheadstart-applications/#comment-3996 Fri, 10 Nov 2006 14:49:34 +0000 http://technology.amis.nl/blog/?p=1400#comment-3996 You don’t need a new javascript function, but you can use the existing js confirm method. You can even nls-enable the message by using built-in JHeadstart nls generator functionality. All you do is to create a button specific template that is based on the standard JHeadstart deleteButton template and replace the onclick property, e.g. :

onclick=”return confirm (‘${JHS.nls(“Delete Confirm”, “LABEL_CONFIRM_DELETE”, “Are you sure you want to delete the current Employee? Are you sure?” )}’);”

]]>