Russell Bohl 4 Years Ago As usual, great post, Dave. Posting to reference the docs on these topics: https://portal.liferay.dev/docs/7-2/appdev/-/knowledge_base/a/service-builder https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/dependency-injection Please sign in to reply. Reply as... Cancel
Kevin Neibarger 2 Years Ago Yeah, this doesn't actually work for me. I'm currently using Liferay 7.3 GA6 and when I do something like the following in my xXXPortlet.java and deploy it, the portlet disappears from the page and I can't find it to re-add from the liferay Edit/Fragments and Widgets section. It just disappears. So, I can't even use this portlet. Why would it not appear?? public xXXLocalService getMyLocalService() { return _myLocalService; } @Override public void render(RenderRequest request, RenderResponse response) throws IOException, PortletException { request.setAttribute("myLocalService", getMyLocalService()); super.render(request, response); } @Reference private xXXLocalService _myLocalService; Please sign in to reply. Reply as... Cancel