Hello Community - Since my previous request was marked as resolved so I am opening this to get an assistance here. Please note that I am using JSP based component not HTL. This is a very simple component which takes the taglib from the dialog and inject the respective tags for the provided taglib. If I simply hardcoded the taglib directly in the component it works fine and I could see the expected results but it doesn't work when I provide the taglib via dialog. Not sure what is causing the issue. Any help on this is highly appreciated.
component.jsp:
<%@include file="/libs/foundation/global.jsp" %>
<%@page import="com.day.cq.wcm.api.WCMMode"%>
<%@ taglib uri="http://company.com/clientLib-taglib" prefix="evaltag" %>
<% if((WCMMode.fromRequest(request) != WCMMode.DISABLED)) { %>
Taglib Component
<%} %>
${properties.openhtml}
This is what I author from the dialog:
<evaltag:includeClientLibs async="true" defer="false" js="clientlib" verName="${projectVersion}" />
@BrianKasingli @Vijayalakshmi_S
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @aemninja,
Can you try like the below. If it is not working, share your complete JSP if possible. Also share the node structure of how this particular field is saved (property value from respective node)
<%
String openHtml = properties.get("openhtml", ""); // provided openhtml dialog field/content authored is saved as String
%>
<%= openHtml %>
Hi @aemninja,
Can you try like the below. If it is not working, share your complete JSP if possible. Also share the node structure of how this particular field is saved (property value from respective node)
<%
String openHtml = properties.get("openhtml", ""); // provided openhtml dialog field/content authored is saved as String
%>
<%= openHtml %>
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @aemninja,
Sorry, I missed this thread.
I tried and looks like we can't input JSTL tags via dialog field. In your case, it has dynamic variable too as part of the tag - verName (Even if we don't have one, it wont work)
Should be related to the way the JSTL tags are processed as the component is executed.
The snippet I shared will work for normal HTML tags (You can give a try by adding some html tag like h2 and see it working)
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies