"And you are done. Can't be simpler ;) "
Not sure I agree with that! Thank you very much for showing how its
done. Is there discussion on the website about the method
"contributeComponentClassResolver", for the service that it seems to
imply (ComponentClassResolver)?
thanks again
Ognen Ivanovski wrote:
On 2007-08-08, at 17:09, Chris Lewis wrote:
Don't get me wrong I much prefer convention over configuration, but
is it still possible to declare/include 3rd party component
libraries? If so, how?
Step 1: Declare the module builder class in the MANIFEST.MF if your
component library jar. It should look like:
Tapestry-Module-Classes: org.example.mylib.LibModule
(how to do that:
http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html)
Step 2: have the packages
org.example.mylib.components
org.example.mylib.base (optional)
org.example.mylib.pages (optional)
ready.
Step 3: In org.example.mylib.LibModule have the following method:
public void
contributeComponentClassResolver(Configuration<LibraryMapping> config) {
config.add(new LibraryMapping("mylib", "org.example.mylib"));
}
And you are done. Can't be simpler ;)
--
Ognen Ivanovski | [EMAIL PROTECTED]
phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495
Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk
---------------------------------------------------------------------
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]