You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@adobe: Has there been any discussion about the potential to add support for this? (or has anything been added since May 2020 that can provide an equivalent to this?)
@mkovacek , @rob-heaney-itg , not being able to call methods with parameters is actually intended, not something that was overlooked. The reason behind being that the spec designers wanted to ensure business logic is decoupled from the presentation layer.
Would be nice if there is possible to call Sling model method which takes parameters.
Example:
Sling model:
public String getMethod(String param1, String param2){ return param1 + param2; }
Htl:
${model.method(value1, value2)} or ${model.method @ value1, value2 } or ${model.method @ param1=value1, param2=value2 }
The text was updated successfully, but these errors were encountered: