- Application "MyApp" with two pages - main.jspx and popup.jspx (You can download sample app)
- popup.jspx belongs to bounded task-flow
- main.jspx belongs to unbounded task-flow
- Action "open" is defined in unbouded task-flow (see picture below)
- CommandButton which executes action "open" is placed in main.jspx - it should open popup.jspx as inline dialog
- In web.xml as main.jspx is configured to be welcome file (see picture below)
- Open application URL=http://localhost:7101/MyApp. Application is automatically redirected to URL:
Pay attention to red-colored file name.
- Press button "open popup". After first press nothing happen except browser URL changes to:
- Press button "open popup" once again. Now popup is shown and browser URL changes to:
To fix this (make button working right after the first click) available two solutions:
- Rename view name in unbouded task flow "main" -> "main.jspx"
- Change welcome file in web.xml "/faces/main/main.jspx" -> "/faces/main" (this case is implemented in my sample application available for download)