Hi Andre, Components in the contrib library are not in the same namespace as those in the framework library (ie. the default library). Framework components have the default namespace (eg. Insert) and these can be overridden by providing your own component with the same name (ie. your own Insert). But I don't think that mechanism is available for components from other libraries like contrib.
-Scott On Sat 18 March 2006 05:38, André wrote: > Hi all, > (I am not on the list, please include me in replies) > I want to do what is stated being possible in: > http://jakarta.apache.org/tapestry/UsersGuide/components.html#components.li >braries.namespace "In fact, it is possible to override both pages and > components provided by the framework." > But how? > > I want to replace my implementation of contrib:tablePages for my > application without touching anything. Wherever, from my application, > contrib:tablePages is referenced, I want my implementation to appear. > > I tried this in several variations: > <library id="contrib" > specification-path="/org/apache/tapestry/contrib/Contrib.library"/> > (original) > <library id="contrib" specification-path="/org/trails/demo/t.library"/> > (my lib) > > My library only basically contains: > <component-type type="TablePages" specification-path="TablePagesMy.jwc"/> > > Except an overriden contrib:tablePages this results in an error, "A child > namespace with id 'contrib' already exists." - How do I override > compoentns within namesapces then? > > To set things in context, this is what I want to reach: > Contrib:Table does not support AJAXed Paging. I want to exchange > DirectLinks in Contrib:TablePages while not touching anything. > It is easy to add new rows and reload a table using AJAX (see trails > example), but I am not sure how to approach this one. > > What is the best way to solve this? I also though at "extending" or > "subclassing" component specification while overriding inner components, > seems not to be possible. > > I am kind of new to tapestry, spring etc. please keep that in mind while > responding :-) > > Regards, > andré > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]