Am trying to setup B2B punchout add-on, trying to add the custom component and set up the website.
Issue observed: Hitting the Site URL in the browser resulting in the server error, could not see any errors on the console logs (actually no movement of the logs on the console)
Have followed the following steps,
- Installed B2C recipe.
- Followed by B2B add-on installation.
- Followed by B2B punchout add-on installation.
- Have removed unnecessary extensions like electronics, apparel, powertools from the localextensions.xml and added the entries of my website in local.properties Am trying to create a custom Component for a B2B punchout.
Have created the necessary impexes for my component in as follows,
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 class which looks as follows,
@Controller("CustomComponentController")
@RequestMapping(value = ControllerConstants.Actions.Cms.CustomComponent)
public class CustomComponentController extends AbstractCMSAddOnComponentController<CustomComponentModel>
In the *-items.xml added the itemtype to create the model,
<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>
Also created a JSP and placed in the path , trainingstorefront\web\webroot\WEB-INF\views\responsive\cms\customcomponent.jsp
Kindly help me by providing the exact extension/path where I need to place all the classes/xml’s/files if you find above ones are wrong