Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1501

Fix LiferayFacesContext initialization in demo portlets

Details

    Description

      Several of the Liferay Faces demo portlets have a pattern at the top of classes that looks like this:

      // Self-Injections
      private LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      

      This will work OK except for classes that implement java.io.Serializable (i.e. @ViewScoped managed-beans) because the value of liferayFacesContext might not be restored properly after deserialization.

      So the purpose of this task is to move this code down into the methods so that it is evaluated at runtime when methods are called.

      Attachments

        Activity

          People

            kyle.stiemann Kyle Stiemann (Inactive)
            neil.griffin Neil Griffin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                liferay-faces-3.0.2-legacy-ga3
                liferay-faces-3.0.2-ga3
                liferay-faces-3.1.2-ga3