You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ondrej Florian (JIRA)" <ji...@apache.org> on 2013/05/09 15:07:17 UTC

[jira] [Updated] (SLING-2864) taglib 1.3 function's signature is invalid

     [ https://issues.apache.org/jira/browse/SLING-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondrej Florian updated SLING-2864:
----------------------------------

    Attachment: taglib13.tld.patch

This patch contains all necessary changes to the taglib13.tld file , including fixed header from SLING-2863
                
> 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
>         Attachments: taglib13.tld.patch
>
>
> 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