Vasily Lazerko added a comment to the page:
YAMF - Yet Another Model Factory
I tried to use YAMF in my JSP as c:set var=myModel value=%=resource.adaptTo('org.apache.sling.yamf.it.models.MyModel')%/ while TLD is not ready.
It worked almost fine except returning null when I addedorg.apache.sling.api.resource.Resource or any other required non-property field.
c:set var=myModel value=%=slingRequest.adaptTo('org.apache.sling.yamf.it.models.MyModel')%/injects Resource but not simple String properties.
What can you suggest? I can contribute with some coding if you gave me your solution.
View Online Like Reply To This
Stop watching space Manage Notifications
This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software