SlingHttpServletRequest adapto custom sling model
Hi There ,
I'm using a custom sling model which i have annotated to be adapto from resource and singHttpServletRequest .
I have designed my model with the fields same as in my form ,
Example : My form has fields "Name", "Age," "Address"
my model also has these 3 fields all injected using "
@Inject @Named (field name from form)"
I was assuming doing this would automatically map my request parameters to sling model if i perform request.adapto(customodel.class) .However this doesn't seem to work .
Is my understanding right in doing this ? Did i miss anything here ?
regards