我正在尝试设置B2B打孔附加组件,试图添加自定义组件并设置网站。
已观察到问题:在浏览器中点击站点URL导致服务器错误,在控制台日志上看不到任何错误(实际上控制台上的日志没有移动)
已执行以下步骤,
如下为我的组件创建了必要的符号,
INSERT_UPDATE ContentSlotForPage;$contentCV[unique=true];uid[unique=true];position[unique=true];page(uid,$contentCV)[unique=true][default='homepage'];contentSlot(uid,$contentCV)[unique=true]
;;Section2A-Homepage;Section2A;;Section2ASlot-Homepage
INSERT_UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];name;active;cmsComponents(&componentRef)
;;Section2ASlot-Homepage;Section2A Slot for Homepage;true;trainingCustomComponent
INSERT_UPDATE CustomComponent;$contentCV[unique=true];uid[unique=true];name;number;date;deliveryDate;total;&componentRef
;;trainingCustomComponent;training Homepage Custom Component;;;;;;trainingCustomComponent
控制器类,如下所示,
@Controller("CustomComponentController")
@RequestMapping(value = ControllerConstants.Actions.Cms.CustomComponent)
public class CustomComponentController extends AbstractCMSAddOnComponentController<CustomComponentModel>
在* -items.xml中添加了itemtype以创建模型,
<typegroup name="Components">
<itemtype code="CustomComponent" autocreate="true"
generate="true" extends="SimpleCMSComponent"
jaloclass="org.training.core.jalo.CustomComponent">
<description>Custom Component</description>
<deployment table="CustomComponent"
typecode="11001" />
<attributes>
......
</attributes>
</itemtype>
</typegroup>
还创建了一个JSP并放置在路径中, trainingstorefront \ web \ webroot \ WEB-INF \ views \ response \ cms \ customcomponent.jsp
如果您发现上述所有类/ xml /文件是错误的,请提供确切的扩展名/路径来帮助我,