How do we use the request to share attributes between portlets deployed as individual WARs?
Overview: All portlets (both in the Liferay EAR and deployed as individual WARs) are able to share attributes using the default HttpServletRequest object using 2 different methods Method 1 – Sharing attributes without namespacing ‘ NOTE:” This method can possibly result in a ClassCastException (especially for multiple portlets in multiple WARs) and is therefore not recommended. This method involves giving all portlets access to the same request. Namespacing is not used in this method. Because all the portlets are sharing the same request, it is possible for them to overwrite each others’ attributes (as described with session above). Due to this fact, it is recommended to use Method 2 below.
Related Questions
- How long do I need to work on my new work assignments before the Appointing Authority can submit an individual audit request of my position?
- How do we use the request to share attributes between portlets deployed as individual WARs?
- How do we use the session to share attributes between portlets deployed as individual WARs?