what is the difference benefits between using sling model (@Model) and Model creating using WCMUSE (WCMUsePojo)? | Community
Skip to main content
Level 2
March 7, 2017
Solved

what is the difference benefits between using sling model (@Model) and Model creating using WCMUSE (WCMUsePojo)?

  • March 7, 2017
  • 1 reply
  • 824 views

what is the difference benefits  between using sling model (@Model) and Model creating using WCMUSE (WCMUsePojo)?

I am not getting clean idea about When should i use @Model and WCMUsePojo?,      can i mix both ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

You can mix both if you want.

With model-classes you can make them more reusable, and less code to get services etc.

WcmUsePojo makes it easy to start with coding, but it is bound to the UI

1 reply

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
March 7, 2017

You can mix both if you want.

With model-classes you can make them more reusable, and less code to get services etc.

WcmUsePojo makes it easy to start with coding, but it is bound to the UI