Ahhh...exactly what I was looking for!  Works perfectly.

This kind of hook is just one of the many reasons that Tapestry 4.0 is so cool. 
 

Thanks,
jeff

-----Original Message-----
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 10, 2005 10:27 AM
To: Tapestry users
Subject: Re: Providing my own PageSource implementation in Tapestry 4.0

On 8/10/05, Raphaƫl Jean <[EMAIL PROTECTED]> wrote:
> > Error at
> > jar:file:/C:/Documents%20and%20Settings/jefflub/.m2/repository/tapestry/
> > tapestry/4.0-beta-3/tapestry-4.0-beta-3.jar!/META-INF/tapestry.page.xml,
> > line 226, column 62: Infrastructure contribution for property
> > 'pageSource' (mode 'null') conflicts with a prior contribution (at
> > context:/WEB-INF/hivemodule.xml, line 95, column 71) and has been
> > ignored.
> >

The properties of the Infrastructure service are built from *TWO*
configurations.

The contribution you are making conflicts with the default *FACTORY*
contributions to tapestry.Infrastructure.

In your case, you want to contribute to the
tapestry.InfrastructureOverrides configuration point.  As its name
implies, these contributions take precendence over the
tapestry.Infrastructure contributions.  This configuration point
exists for your exact use case: to be able to easily override just
about *anything* in Tapestry.

Further, you can refer to the default implementation as
service:tapestry.page.PageSource ... you may even inject this into
your own implementation!  This may allow you to easily decorate the
default implementation.



-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
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]

Reply via email to