Steps followed-
(Referring to Special Offer module from DXA sdl docs-(http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v2/GUID-3613D1ED-4F0C-47CF-82B6-07D412AF4416))
- Created new Module (
Offers
) and followed Folder structure convention to create Schema and Component Template - Created dxa-module-offers in Java project, created view
SpecialOffer.jsp
at proper directory &SpecialOffer
Entity with Semantic properties as described (matching with xml name of Schema fields) - Initialized/Registered my View Model.
- Published the
Publish settings
system page. - Refreshed the cache in web application using
/admin/refresh
Able to get my CP rendered on a page but my JSP is just rendering with empty/null values for all fields (just the html), while debugging DXA code I see that entity is populated with all values of properties as null (in com.sdl.webapp.common.impl.mapping.createEntity
method)
Am I missing any steps here to just render simple CP using view & model from my custom module(also tried putting the view,model in Core module)? What should be used as the vocabulary for my entity? ..also little confused regarding specification of semantics
UPDATE
Schema -
Entity - (Just the part with semantic mappings etc entity contains other getter/setters as well)
UPDATE2-
is it mandatory to specify semantics/vocabulary etc in tridion using some custom page
for all new schemas added?