<?xml version="1.0"?>
<module version="1.0.0" id="website" package="com.elidoran">
<contribution configuration-id="tapestry.url.ServiceEncoders">
<page-service-encoder id="page" service="page" extension="page"/>
<page-service-encoder id="external" service="external"
extension="epage"/>
<direct-service-encoder id="direct" stateless-extension="do"
stateful-extension="so"/>
<asset-encoder id="asset" path="/assets/"/>
<extension-encoder id="ext" extension="svc" after="*"/>
</contribution>
</module>
This is how you use the standard friendly URL stuff. You can do even
more by writing custom encoders and contributing them. Encoders also
have a before and after value so you can affect their ordering. To
override an encoder with a custom version use the <encoder> element and
assign it the same 'id', like id="page", and it will use your encoder.
All you need to know about this is in "tapestry.url.xml".
NOTE: When trying to figure out what to do with your hivemodule.xml file
look at Tapestry's module descriptors in its source at
"framework\src\descriptor\META-INF". There are many files there to look
at with lots of good info.
~eli
Alan Chandler wrote:
I am trying to start my first tapestry project with tapestry4. One of the
reasons for doing this is rather than simply using 3.0.3 (and the spindle
plugin under eclipse) is that I want friendly urls. (this is also the obvious
benefits that 4 brings of more being done by the framework, and therefore
less having to be done by me - but that wasn't my prime driver)
The problem I have is finding out exactly what I need to put into
hivemodule.xml
The tapestry tutorials do not mention this at all, and the userguide
explanation for friendly urls gives snippets of stuff to go into this file.
I have downloaded the hivemind docs, and the tutorial there shows an example
where the hivemodule.xml file refers out to classes in the tutorial. This is
wiring the components together. By comparison therefore I think I have to
add some references to somthing in the tapestry framework in this file to
link my friendly url stuff to services, but I can't find anywhere in any
documentation that tells me exactly what.
Can someone please post an example ENTIRE hivemodule.xml file which shows how
to include the friendly url support.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]