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

    How to add portlet into a page programatically

    Anish Antony Newbie

      Hi all


      I created a page programatically using following code.


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

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


              newpage.setDisplayName("My New Page");



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