Hi,
Can we pass hash value from JS (window.location.hash) to model via HTL code.
Solved! Go to Solution.
Views
Replies
Total Likes
I believe when you adapt the Model from SlingHttpServletRequest, it should be available from your request. If not, then you may retrieve it in js/jquery/any other framework/lib and then pass it to server via ajax/form post/hidden param etc. based on your use case.
Views
Replies
Total Likes
I believe when you adapt the Model from SlingHttpServletRequest, it should be available from your request. If not, then you may retrieve it in js/jquery/any other framework/lib and then pass it to server via ajax/form post/hidden param etc. based on your use case.
Views
Replies
Total Likes
As Gaurav suggests - try to pass to a Java AEM service using AJAX. TYpically values are passed to HTL Java via component dialogs. However - this value cannot be passed in this manner.
Views
Replies
Total Likes
Or a possible solution here is to build a custom sling resource type - which is based on JavaScript anyhow. THen you can get this value via the custom type and pass as part of the component dialog.
Views
Replies
Total Likes
See this article - where we use a custom color picker as an example - Adobe Experience Manager Help | Creating a custom Experience Manager 6.4 sling:resourceType for Touc...
Views
Replies
Total Likes
Views
Likes
Replies