-
Type:
Technical Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Labels:
-
Branch Version/s:7.1.x
-
Backported to Branch:Committed
-
Git Pull Request:
This task involves developing a CDI producer that provides the ability to do the following in a bean portlet:
TestPortlet.java
public class TestPortlet { @Inject ServletContext _servletContext; @RenderMethod(portletNames = { "portlet1" }) public String doRender() { return "<hr/><p>servletContext=" + _servletContext + "</p>"; } }
Steps to Verify:
- Deploy the attached portlet WAR to $LIFERAY_HOME/deploy and add the portlet named "
LPS-91247" to the portal page.
Expected Results
The portlet will render something similar to the following:
LPS-91247 Test PASSED: servletContext=org.apache.catalina.core.ApplicationContextFacade@46f85464