Re: Regarding OpenCMS 15 TagLib Definition

Georg Westenberger via opencms-dev <[email protected]> Mon, 18 Sep 2023 16:56:54 +0200
Newsgroups gmane.comp.cms.opencms.devel
Message-ID <[email protected]>
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

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
https://lists.opencms.org/mailman/listinfo/opencms-dev