I changed everything back to ListDataModel and I get the following error. My datatable setup is included below. Some guidance would be appreciated.
Nov 18, 2015 3:23:01 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/rem40/projectListEdit.xhtml]
java.lang.ClassCastException: javax.faces.model.ListDataModel cannot be cast to java.util.List
I have a datatable which has multiply command buttons in a single column for each row and I need to determine which button was clicked? Both buttons need to select the selectedProject so the target is the same for each button. How do you determine which button was clicked in order to select the project and then perform either an "Edit" or "Drill Down"?
Tim, I'm not sure I am understanding exactly what you are saying, this is the last thing I tried and it did not work. Even my js code is not creating a chart anymore. I use the OnShow to call the code to create a chart where ever "mycube" is.
Thanks Tim, yes I remember struts doing the same. I just wanted to make sure I was not missing anything. I am supporting both types of logins now. It just takes a change in properties file to use glassfish login. I also have to support Tomcat which does not have a nice user maintenance option. I'll take any thoughts on this if you have a better idea for tomcat. I also have to support a CAC card login, hence the properties file to control login ability. My login table also has all my user settings like theme, authorization to different screens and projects numbers, so I have to have a user login table anyway.
I'm developing a JSF web app with primefaces. I have noticed that if I have an error in any single xhtml page within my web app that my login xhtml does not work anymore. Once I fix the error my login page starts working.
for example: I am working on cubeConfigEdit.xhtml and it currently is not finished. My login.xhtml does not work until cubeConfigEdit.xhtml is finished and error free. This happens regardless of which page I am working on. Once the page is error free the login page starts working again. The error I see in the login.xhtml page via the browser is
Thanks Tim, I agree with all that you have said. I try to keep display and screen handling with detached entities and just merge them at the DAO to avoid DB and Entity locks. The extra layer avoids many problems in a multi user webapp.
I will look into the Spring Repository features you have described. I have never used Spring so this will give me the opportunity to try it out.
As for the Primefaces problem with orderlist, I have not been successful in making it work so I am switching to a dataTable since I can display additional info per row and allow sorting by columns. I thought orderlist would have been neat way for the user to order my list but no joy.
Tim, I am getting no list of data just the surrounding box plus the controls for the orderlist. typesvaluesController.configValuesEntities does have 7 entries but does not display them. As for the other comments you are right I am not using EJB's. I am using JPA with Hibernate but I have never tried Spring. Do you know of any good examples of Spring JPA ORM and injecting them in a JSF backing bean?
I use a POJO maker and then add my annotations for JPA. I prefer annotations over xml configuration as it means less possible mistakes on my part.
Yes, I now know they are Models as you have pointed out before, unfortunately I cannot change Netbeans. I guess I could rename them, but I have a ebook called Primefaces Beginners Guide and they even call the JSF backing beans controllers, go figure.