views:

44

answers:

3
+1  Q: 

JSF Confirmation

Hello jsf friends,

My application looks and works great so far. My users will have a lot of crucial decisions to make, like deleting or editing entities or accepting applications which causes an email. For that reason I want to integrate a common form of confirmation. And that's why I ask you:

What's your favourite way of confirmation (infobox, confirmation page etc..) and how to implement it properly?

I am looking forward to your ideas :-)

A: 

Create a survey kind of form.
With your question and possible answers and also take comments from them ratings can be done also.

Then have preference for each user when ever user gets logged in take this in session with a very tiny info like a Short Object, and when ever the events gets done which should ask for confirmation take decision based on the session stored info.

Edit:

Oh I think i misunderstood the question:

I would suggest modal panel from RichFaces

You can also use JQuery and one more

org.life.java
sounds a little bit overkill to me, but nice idea :-)
Sven
@Sven I misunderstood your question i think.
org.life.java
+1  A: 

I will vote for a dialog:

you can user friendly PrimeFaces dialog.

Odelya
nice, there is a special one for confirmation: http://www.primefaces.org/showcase/ui/confirmDialog.jsf
Sven
+1  A: 
  • The simplest way would be to use javascript: confirm("Are you sure?")
  • A more stylable way would be to use <rich:modalPanel> with Yes/No, which in turn would submit the form. See an example
Bozho