Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 2

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 ?

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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