since ‎06-09-2015
‎08-10-2020
jaib75117127
Level 1
Re: Pass an object as a parameter to sling model/wcmusepo...
Avatar

jaib75117127

jaib75117127
- Adobe Experience Manager
Thanks but the problem is not getting the request object but passing an object as an argument to sling model/wcmusepojo

Views

302

Likes

0

Replies

0
Re: Pass an object as a parameter to sling model/wcmusepo...
Avatar

jaib75117127

jaib75117127
- Adobe Experience Manager
Thanks but can I pass a java object as well instead of string and do this -> get("propertyOne", JavaClassName.class); to get the object?

Views

319

Likes

0

Replies

0
Pass an object as a parameter to sling model/wcmusepojo from sightly(HTL)
Avatar

jaib75117127

jaib75117127
- Adobe Experience Manager
Hi,I'm converting a JSP into sightly for a component. In that component they are setting an object as a request attribute to be used in another component. We cannot set request attributes in sightly right? So I'm trying to send this object as a parameter to a sling model/wcmusepojo to set the request attribute there but I think we can only pass string values as arguments to slingmodels/wcmusepojo right? Is there any example of passing an object as a parameter to slingmodel/wcmusepojo? Thanks!

Views

488

Likes

0

Replies

7