cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Setting up Selectors...
Date Wed, 06 Oct 2004 11:56:26 GMT
Niclas Hedhman wrote:
> 
> I did;
>   <role name="org.apache.cocoon.reading.imageop.ImageOperationSelector"
>         shorthand="image-operation"
>         default-class="org.apache.cocoon.components.ExtendedComponentSelector" 
>   >
>     <hint shorthand="scale" 
> class="org.apache.cocoon.reading.imageop.ScaleOperation"/>
>     <hint shorthand="convolve" 
> class="org.apache.cocoon.reading.imageop.ConvolveOperation"/>
>   </role>  
...
> But I get the message 
> "UnnamedSelector: ComponentSelector could not find the component for hint 
> [scale] (key [scale])"
> and a very 'inconclusive' stack trace.

IIRC, roles file entries are just a convinience, you can do without them 
completely; components are declared in the cocoon.xconf file:

   <image-operation>
     <scale/>
     <convolve/>
   </image-operation>

Or without roles file:

   <component role="org.apache.cocoon.reading.imageop.ImageOperationSelector"
              class="org.apache.cocoon.components.ExtendedComponentSelector"
     <component-instance name="scale"
       class="org.apache.cocoon.reading.imageop.ScaleOperation"/>
     etc
   </component>


Vadim

Mime
View raw message