1 5 package org.exoplatform.portlets.exomvc.jsp; 6 7 import java.util.List ; 8 import javax.portlet.ActionRequest; 9 import javax.portlet.ActionResponse; 10 import javax.portlet.RenderRequest; 11 import javax.portlet.RenderResponse; 12 import org.exoplatform.commons.utils.PageList; 13 import org.exoplatform.container.PortalContainer; 14 import org.exoplatform.portlet.exomvc.JSPPage; 15 import org.exoplatform.services.organization.OrganizationService; 16 17 public class ListUserPage extends JSPPage { 18 19 public void processAction(ActionRequest req, ActionResponse res) { 20 21 } 22 23 public void render(RenderRequest req, RenderResponse res) throws Exception { 24 PortalContainer container = PortalContainer.getInstance() ; 25 OrganizationService orgService = 26 (OrganizationService)container.getComponentInstanceOfType(OrganizationService.class) ; 27 PageList pageList = orgService.getUserPageList(15) ; List all = pageList.getAll() ; req.setAttribute("jsp.list.user.page.users" , all) ; 31 super.render(req, res) ; 32 } 33 } | Popular Tags |