Ondrej Florian created SLING-2864:
-------------------------------------

             Summary: taglib 1.3 function's signature is invalid
                 Key: SLING-2864
                 URL: https://issues.apache.org/jira/browse/SLING-2864
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: Ondrej Florian
            Priority: Minor


when using taglib 1.3 function e.g.

<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.3"; %>
<c:set var="currentResource" value="${sling:getResource(resourceResolver,'/')}" 
/>

I am getting exception:
Invalid syntax for function signature in TLD. Tag Library: sling, Function: 
getResource (500)

====
this is cased by invalid signature declarations in the tld file.
for example:
                <function-signature>org.apache.sling.api.resource.Resource
                        
getResource(org.apache.sling.api.resource.ResourceResolver,
                        java.lang.String)
                </function-signature>

should be defined without any white space characters

<function-signature>org.apache.sling.api.resource.Resource 
getResource(org.apache.sling.api.resource.ResourceResolver,java.lang.String)</function-signature>

NOTE: the JIRA appears to wrap the line anyways, basically the signature should 
be on one line, no nice printing

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to