Update Version 3.3.1 - New PrimeOne

Forum rules
Please note that response time for technical support is within 3-5 business days.
User avatar
ajotta
Posts: 71
Joined: 16 Feb 2016, 13:41
Location: Brasil
Contact:

14 Oct 2020, 03:23

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?
--
Jarciano Silva
CEO - Chief Executive Officer
ajotta | https://ajotta.com

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

14 Oct 2020, 08:09

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,

christophs78
Posts: 85
Joined: 01 Mar 2018, 12:29

14 Oct 2020, 12:08

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?

Post Reply

Return to “Babylon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests