0 Replies Latest reply: Jul 25, 2013 5:04 AM by Veena_07 RSS

    Mobile Page content not displaying

    Veena_07 Community Member

      Hi

       

         I am newly trying my hands-on on Mobile sites using AEM5.6. I tried to create a new mobile site. So as a first step i created a page and a template to run it. In page components body.jsp i simply printed "mobile test".

       

         When i ran the page without setting device groupd i got my page with "mobile test" in it. Then i set device group in the root page properties. But then when i ran my page I am getting mobile page but , the content is missing. I tried giving parsys, that also was not displaying. So i just doubt if something is erroring.

       

          For trial and error, i copied the same geometrixx structure to my local project. My local project differed from geometrix in only the following.

       

      my local proj body.jsp

       

      <%@include file="/libs/foundation/global.jsp"%><%

      %>

       

       

      Mobile test page

       

       

      Geometrixx body.jsp

       

      <%@include file="/libs/foundation/global.jsp" %><%

      %><%

          final StringBuffer cls = new StringBuffer();

          for (String c : componentContext.getCssClassNames()) {

              cls.append(c).append(" ");

          }

      %>

      <body>

          <cq:include path="contextcloud" resourceType="cq/personalization/components/contextcloud"/>

      <div id="wrapper" class="<%= cls %>">

          <cq:include path="logo" resourceType="foundation/components/mobilelogo"/>

          <cq:include path="par" resourceType="foundation/components/parsys"/>

          <cq:include path="footer" resourceType="foundation/components/mobilefooter"/>

      </div>

          <cq:include path="timing" resourceType="foundation/components/timing"/>

          <cq:include path="cloudservices" resourceType="cq/cloudserviceconfigs/components/servicecomponents"/>

      </body>

       

       

       

      If i put the same in my local it is working fine. But if i remove the <div id="wrapper" class="<%= cls %>"> and </div> it is not displaying anything. Only a white screen is visible.

       

       

      So my question is

       

      • I could analyse that the <div id="wrapper" class="<%= cls %>"> is needed for all mobile site pages... Is my assumption right???

       

       

      Thanks

       

      Veena