This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
When the application starts and the index page is initially loaded, dialog is not shown correctly (panel is not shown) and shows that selected==null. But in debugger prepareSelect seems working correctly and selected is initialised (not null). When I reload page, dialog is shown correctly.
Below are facelets for the page composition and backing bean code.
If NetBeans is automatically naming backing beans "XxxxController", I have issues with them. A Controller's sole task is to update the View from the Model and the Model from the View. That function is handled in JSF by the FacesServlet and the various control tags. Action methods are not Controller methods - they're business logic (not part of MVC), and backing bean properties are quite obviously Model attributes.
I looked again and found your opening form tag. What I think you may need to do is relocate it so that the form encloses the dialog instead of having the dialog enclose the form. But I recommend checking the documentation just to be sure.
Joined: Apr 23, 2014
There is a mistake in line 16 of the index.xhtml - there should be :AppUserRegisterForm.
Tim, thank you very much for your comments and assistance.