Hello, I have a problem closing a JSF HTML Dialog.

A start process is launching a JSF HTML Dialog (consultation List Demande) with a list of demands (some data). In this list of demand each demand can be displayed by cliking on a button. This button launches another JSF HTML Dialog (open selected demand) which displays the details of this demand.

When finished, the user click on the exit button. A ExitEnd is used to get back to the first HTML Dialog. I want to display the list of demands again so i close the "selectDemande" to get back to the Start Process and if a boolean is false i restart the first HTML dialog (with the list).

alt textalt textalt text

The problem is that when i try to finish the first HTML dialog (the one with the list) it starts a loop as shown here : alt text

It's like the ExitEnd closes the second HTML Dialog (the one with the detail) again and not the one with the list.

There is obviously something I do wrong but I can't see what.

asked 09.02.2015 at 17:36

dbalasse's gravatar image

accept rate: 25%

edited 09.02.2015 at 18:17

Instead of opening another User Dialog to display the selected demand you could work around the problem by using a primefaces modal dialog (p:dialog) which is not rendred by default.

If the users selects a "demand" you could update the "rendered" flag of the p:dialog from false to true. And it's concrete content.


answered 10.02.2015 at 13:41

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
accept rate: 70%

Thank you for the answer. I've solved my problem by calling the second dialog in the start process. That seems to work.

alt text

I still don't understand what was the problem calling a dialog in the logic of another dialog. If it doesn't work why is it possible to do it (the icon is in the palette) ? Thanks again for your answer.

(10.02.2015 at 15:55) dbalasse dbalasse's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 09.02.2015 at 17:36

Seen: 6,854 times

Last updated: 10.02.2015 at 15:55