Skip to Content
0
Former Member
Feb 10, 2012 at 03:50 PM

JspParseException when using WPC layout with wrappingMethod-attributes

35 Views

Dear All,

I am creating a custom WPC layout according to the example given in the How-to Guide "[How To... Create Custom Layouts|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/804bedee-377e-2e10-0f83-d5b33c743dbc?QuickLink=index&overridelayout=true]" on page 5.

I figured that the example does not work since the attribute "wrappingMethod" in the <lyt:container> tag seems not to be valid! If I deploy the example given in the How-To, the following exception is thrown on runtime:

Parser [PRT] - JspParseException is thrown while parsing JSP file <C:/usr/sap/EP1/J00/j2ee/cluster/apps/sap.com/OIZLayout/servlet_jsp/OIZLayout/root/WEB-INF/jsp/oizLayout.jsp> : 
com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: *Attribute [wrappingMethod] for tag [container] not found in tag library [Layout]*. 
Error in file [C:/usr/sap/EP1/J00/j2ee/cluster/apps/sap.com/OIZLayout/servlet_jsp/Layout/root/WEB-INF/jsp/layout.jsp]; line: [138]; position: [8]
... etc ...

Only if I leave the <lyt:container> tag without the attribute wrappingMethod, the rendering works fine. However, all containers will now be wrapped with a table structure. The following example from the rendered page makes that a little clearer, hopefully:

<table style="width: 100%" cellSpacing="0" cellPadding="0"><tr><td>
<div id="navMainDept">
  <dl>
    <dt>
      <a href="http://www.google.com">
        <span>Google</span>
      </a>
    </dt>
  </dl>
</div>
</td></tr></table>

I would rather like to have it without any <table><tr><td>-wrapping at all. I think this exactly what wrappingMethod="none" is supposed to do. But as I mentioned earlier, using that leads to a JspParseException.

Is there any other way to prevent Netweaver from rendering the wrapping?

Thanks in advance

Walter