[opencms-dev] Regarding OpenCMS 15 TagLib Definition

Georg Westenberger g.westenberger at alkacon.com
Mon Sep 18 16:56:54 CEST 2023


Hello,

The section of the JSP spec which you quote from is about tag files (JSP 
tags defined via JSP code, in files named *.tag) and not tag handlers 
(tags defined via Java classes, like e.g. <cms:formatter> is). 
Specifically, it is about the variable directive. The point is that a 
variable declaration like this:


<%@ variable alias="result" name-from-attribute="*var*" scope="AT_END" 
declare="true" %>

requires an attribute declaration for "var" like this:

<%@ attribute name="*var*" *type="java.lang.String" required="true" 
rtexprvalue="false"* %>

So you need to look at the tag files you are writing/using, not the 
built-in <cms:...> tags.

Kind regards,
Georg
  
-- 

Georg Westenberger
Alkacon Software GmbH & Co. KG - The OpenCms Experts
https://www.alkacon.com  -http://www.opencms.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20230918/08bdc80e/attachment.htm>


More information about the opencms-dev mailing list