BTW, the sling TLD at
http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/jsp-taglib/src/main/resources/META-INF/taglib.tld?view=markup
provides a good description of the available types, simpler than
looking at the source code.
Regards,
Alex
On Tue, Jul 15, 2008 at 9:59 AM, Bertrand Delacretaz
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Sun, Jul 13, 2008 at 9:26 PM, Bryce Ewing <[EMAIL PROTECTED]> wrote:
>> ...Have a look in the org.apache.sling.scripting.jsp.taglib bundle.
>> IncludeTagHandler is the sling:include tag class....
>
> Yes, and if you look at the source code of that class you can see
> which attributes the sling:include tag supports. For example:
>
> public void setResourceType(String rsrcType) {
> this.resourceType = rsrcType;
> }
>
> Means that <sling:include resourceType="foo"/> can be used, and
> looking at the source code you'll see that the possible attributes are
> currently:
>
> resourceType, replaceSelectors, addSelectors, replaceSuffix, flush, resource
>
> So, for SLING-475 those are the attributes that we want to test. The
> first four attributes above are used as RequestDispatcherOptions
> options, see the comments of that class for what they mean.
>
> The flush attribute is used to flush the output stream before
> executing the sling:include tag, and the resource attribute can be
> used to render a specific Resource that the jsp script would have
> obtained or created by itself.
>
> -Bertrand
>
--
Alexander Klimetschek
[EMAIL PROTECTED]