Page 3 of 3

Re: Update Version 3.3.1 - New PrimeOne

Posted: 14 Oct 2020, 03:23
by ajotta
Hi,

Thanks to everyone who gave us attention, we managed to make it work after thousands of frustrating attempts. :lol:

Original file:

Code: Select all

@Named
@SessionScoped
public class GuestPreferences implements Serializable {

     private String menuMode = "layout-static";
Solution:

Code: Select all

@ManagedBean
@SessionScoped
public class GuestPreferences implements Serializable {

     private String menuMode = "layout-static";

See what it was necessary to just replace @Named with @ManagedBean this in our project.

PS. I would like to understand why this change in the Primefaces team, and something better?

Re: Update Version 3.3.1 - New PrimeOne

Posted: 14 Oct 2020, 08:09
by mert.sincan
Glad to hear, thanks a lot for the update!

Please see these links;
https://javaserverfaces.github.io/docs/ ... -list.html
backing beans vs CDI beans
https://stackoverflow.com/questions/434 ... eans-named

Best Regards,

Re: Update Version 3.3.1 - New PrimeOne

Posted: 14 Oct 2020, 12:08
by christophs78
Which Container do you use? CDI or Spring or none?
You switched back to the deprecated JSF-annotations und use JSF as kind of container.
Which annotations from which packages do you use for your own beans?