Thanks. Regards
Felix

Am Mittwoch, den 16.01.2008, 09:46 +0100 schrieb Tobias Bocanegra:
> ok:
> 
> SLING-162 NPE in DefaultHtmlRenderer if resource type not found via include
> SLING-163 Absolute resource types do no resolve
> 
> On 1/16/08, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> > Hi Toby,
> >
> > This is actually two problems, probably: (1) absolute resource types are
> > not currently supported correctly and (2) the DefaultHtmlRender.render
> > should certainly not NPE.
> >
> > Could you please create JIRA's to not forget about it. Thanks.
> >
> > Regards
> > Felix
> >
> > Am Dienstag, den 15.01.2008, 22:45 +0100 schrieb Tobias Bocanegra:
> > > i want to include a script using a specific resource type, eg:
> > >
> > > <sling:include path="<%= child.getPath %>"
> > > resourceType="/apps/myapp/test/nav" />
> > >
> > > if the resource exists, the include tag handler does not create a
> > > syntetic one and it uses the resource type of the resource.
> > > if i create a syntic resource myself:
> > >
> > > <% SyntheticResource res = new SyntheticResource(child.getPath(),
> > > "/apps/myapp/test/nav"); %>
> > > <sling:include resource="<%= res %>"/>
> > >
> > > this results in a NPE:
> > >
> > > Caused by: java.lang.NullPointerException
> > >       at 
> > > org.apache.sling.usling.renderers.DefaultHtmlRenderer.render(DefaultHtmlRenderer.java:53)
> > >       at 
> > > org.apache.sling.usling.renderers.DefaultHtmlRendererServlet.doGet(DefaultHtmlRendererServlet.java:72)
> > >       at 
> > > org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:261)
> > >
> > > so my question is: how can i include a resource using a specific resource 
> > > type?
> > >
> > > regards, toby
> >
> >
> 
> 

Reply via email to