3 Replies Latest reply on Jan 24, 2014 12:21 AM by anishantony

    How to add portlet into a page programatically

    anishantony

      Hi all

       

      I created a page programatically using following code.

       

                Portal portal = PortalRequest.getInstance().getPortal();

              Page newpage = portal.createPage(new PageId("classic", "mypage"));

              newpage.setAccessPermission(Permission.everyone());

              newpage.setDisplayName("My New Page");

              portal.savePage(newpage);

       

      But this is a blank page. How to add portlet into this page programatically? I am using GateIn3.6