Hi guys,

Is it possible to have a confirm popup (for example use javascript confirm)
on a button created with a JSF impementation, e.g. MyFaces, Tomahawk. The
functionality I am looking for is that the user can click a button to close
the browser window, but he must confirm it by click OK on the popup or
Cancel if he does not want to close the window.

What about create a <x:confirmAction for="anId" /> that would use a
dojo modal Dialog widget [1] to remplace this ugly alert() or
confirm() window. It would look more pro and "Ajax-Dojo-enabled"(or
whatever the buzz word is), would looks the same in all the browsers
and fills all the requirements.

[1] http://archive.dojotoolkit.org/nightly/tests/widget/test_Dialog.html

my $ .02
Gilles



2006/5/10, Pich <[EMAIL PROTECTED]>:

Thanks a lot, it works nice for the commandButton. However, I would like to
have the same behaviour on a commandLink, but I can't get that to work. Is
it possible to do that with a link (instead of a button)?
--
View this message in context: 
http://www.nabble.com/Confirm-JSF-button-click-t1586986.html#a4314800
Sent from the My Faces - Dev forum at Nabble.com.


Reply via email to