활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi guys!
I have a component whose rendering comes from a JSP script. In Sightly I show the component placeholder with this code:
<sly data-sly-test="${wcmmode.edit}">
<div data-emptytext="Click here to edit this component" class="cq-placeholder"></div>
</sly>
How do I get the same for JSP?
Thanks advance for the help me
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
I have solved it. For anyone who comes across the same problem, this is the solution:
<cq:text escapeXml="true" placeholder="<%= Placeholder.getDefaultPlaceholder(slingRequest, "Click here to edit component", null)%>"/>
조회 수
답글
좋아요 수
If you are using HTL - you should keep using it as that is best practice - JSP is no longer considered best practice for AEM development
조회 수
답글
좋아요 수
Ok, but I'm using JSP for this component, not HTL. Is there a way to do it in JSP?
Thanks for reply
조회 수
답글
좋아요 수
I have solved it. For anyone who comes across the same problem, this is the solution:
<cq:text escapeXml="true" placeholder="<%= Placeholder.getDefaultPlaceholder(slingRequest, "Click here to edit component", null)%>"/>
조회 수
답글
좋아요 수
That is great - however the use of JSP is NOT best practice. So ppl following this pattern are following a bad practice. Adobe strongly recommends HTL over JSP!
조회 수
답글
좋아요 수
I'm learning to use AEM. I wanted to understand how it works. What I'm doing isn't a true webpage.
조회 수
답글
좋아요 수
조회 수
Likes
답글