I am very new to AEM and trying to do the following in AEM 6.2:
1. Created a Template named as "sightlyTemplate" with slign:resourceType as /apps/handson2/components/page/sightlyComponent 2. Created a page Component named as "sightlyComponent" 3. Created a Content component named as "sightlyLoginComponent" - Which servers as a very basic login form 4. Created a page using the above said template and added the created content component to it.
My Query is: This form post is working only when I include cq.jquery to my component or template (which is present at the second line of my component code). Else it throws 403 forbidden Cannot serve request to /bin/sightlyLogin in /libs/sling/servlet/errorhandler/default.jsp. Attached the error snap with stack trace.
Is it mandatory to include cq.jquery even if I don't used any ajax calls for the form post? Or am I missing something while creating the template or component ?
PS: I am facing this issue only when I am creating a sightly based components (.html). Not with JSP based components.