Unzip lrurel-platform-developer-exercises-7.0.5.zip
Import snippets from com.liferay.training.platdev.snippets/snippets
folder.
https://www.dropbox.com/s/ij166zs8hor5h2g/gradebook.tar.gz?dl=0
- Do the page 40
- Page 42 has instructions how to import snippets manually
install http://central.maven.org/maven2/org/apache/felix/org.apache.felix.webconsole/4.3.4/org.apache.felix.webconsole-4.3.4.jar
After the installation remember to start it. http://localhost:8080/o/system/console and User name is admin and password is admin
https://www.dropbox.com/s/wsspavxno4gesw4/supercoolmvc.zip?dl=0
compile group: "com.liferay", name: "com.liferay.portal.configuration.metatype", version: "2.0.0"
Missing snippets https://www.dropbox.com/s/2bo8qjy2j3d6j1i/04.08-product-menu.xml?dl=0
Link: https://goo.gl/dd1h1g from page 220
dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.6.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
compileOnly group: "jstl", name: "jstl", version: "1.2"
compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0"
compile project(":modules:gradebook:gradebook-web")
}
package com.liferay.training.space.gradebook.portlet.hook;
import com.liferay.portal.kernel.portlet.bridges.mvc.MVCRenderCommand;
import com.liferay.training.space.gradebook.portlet.constants.GradebookPortletKeys;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
@Component(
immediate = true,
property = {
"javax.portlet.name=" + GradebookPortletKeys.PORTLET_NAME,
"mvc.command.name=/gradebook/submissions/view",
"service.ranking:Integer=1000"
},
service = MVCRenderCommand.class)
public class ViewSubmissionsMVCRenderCommandHook implements MVCRenderCommand {
@Override
public String render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException {
// TODO Auto-generated method stub
System.err.println("Success or not");
return mvcRenderCommand.render(renderRequest, renderResponse);
}
@Reference(target="(component.name=com.liferay.training.space.gradebook.portlet.command.ViewSubmissionsMVCRenderCommand)")
private MVCRenderCommand mvcRenderCommand;
}
How to get form field values from service wrapper. Example captcha:
System.err.println(serviceContext.getAttribute("captchaText"));
https://www.dropbox.com/s/3tj52w1ojh7vof9/messagebus-web.zip?dl=0
curl http://localhost:8080/api/jsonws/foo.assignment/get-assignments-by-group-id -u [email protected]:test -d groupId=20143
curl http://localhost:8080/api/jsonws/foo.assignment/get-assignments-count-by-group-id -u [email protected]:test -d groupId=20143
https://www.dropbox.com/s/kmcyvdyj929kebe/gradebook-sap.zip?dl=0
https://www.dropbox.com/s/136baiwycyezcpq/12.05-search-facets.xml?dl=0
https://www.dropbox.com/s/7rp5r0mmtccrjy9/app-dev-extra.pdf?dl=0