24.09.2001 17:23:24, "Remy Maucherat" <[EMAIL PROTECTED]> wrote:

>> 24.09.2001 10:15:35, [EMAIL PROTECTED] wrote:
>>
>> >remm        01/09/24 01:15:35
>> >
>> >  Modified:    src/taglib/common/org/apache/slide/taglib/tag
>> >                        DomainTagSupport.java
>> NamespaceTagSupport.java
>> >               
src/taglib/struts/org/apache/slide/taglib/tag/struts
>> >                        StrutsTagUtils.java
>> >  Log:
>> >  - Also lookup the namespace name in the servlet context.
>> >  - Expose the enumerateNames property in the domain tag.
>>
>> Why that (the latter) ?
>>
>> The namespaces & namespace-names are already exposed by the
>> DomainBean, and I don't think the tag class should duplicate that
>> functionality. I also can't find where you'd be making use of the
>> added method anywhere.
>
>I wanted to have a list of the namespces on the front page, like 
this:
>
>            <slide:domain id="domain">
>
>               <logic:iterate id="name" name="domain"
>property="namespaceNames">
>....
>
>Can I do it without modifying the domain tag ?
>
>Remy

Definitely. The line <slide:domain id="domain"> means you'll be 
exposing a page-context scoped DomainBean named 'domain', that you can 
refer to inside the body of that tag. So you're not putting the tag 
itself in the page-context attributes, but the associated bean.

The above should have worked out of the box, actually. And the change 
shouldn't have made it work if it didn't work before, I think ;o)

-chris
________________________________________________________________
cmlenz at gmx.de


Reply via email to