If you want to register your service as something Tapestry will recognize
take a look at this file for an example of how Tapestry does it.

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/descriptor/META-INF/tapestry.services.xml?view=markup

The registration part is done in the block starting with

<contribution configuration-id="FactoryServices" >

For examples on how to write one of these services I reccomend taking a look
at this directory:

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/engine/

The PageService service is pretty damn simple, there may be some other
services that are more simple but I've found that this one is a good
reference.

On 8/4/06, Scott Venter <[EMAIL PROTECTED]> wrote:


Hey Jesse,

Sorry for the vague post.

I have Howards book (Tapestry in action) but am using Tapestry 4. The book
refers to writing custom engine services when creating new kinds of
interaction between client browser and the server (Chapter 8 advanced
techniques).

Listing 8.3 refers the BannerService.java and extends AbstractService
which has now been replaced by EngineService in Tapestry 4.

I was hoping there were some guidelines as to how to create a new
EngineService for Tapestry 4, but cant find anything in the forums or
tapestry docs.

I have been reading the javadoc and looking at these classes for examples

org.apache.tapestry.engine.DirectService.java
org.apache.tapestry.engine.DirectServiceParameter.java

but there are some properties that I am uncertain as to where they are
being initialised. It does seem that the functionality of getLink and
service are largely the same.

I am also unsure where to register my custom ServiceParameter class for
the new Engine Service.

Many thanks
Scott.

-----Original Message-----
From:   Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent:   Fri 8/4/2006 2:30 PM
To:     Tapestry users
Cc:
Subject:        Re: [New Service]
http://jakarta.apache.org/hivemind/ ? :)

On 8/4/06, Scott Venter <[EMAIL PROTECTED]> wrote:
>
>
> Anyone have a link to tutorials/examples on creating new services in
> Tapestry 4.0?
> This email and any files transmitted with it are confidential and
intended
> solely for the use of the individual or entity to whom they are
addressed.
> If you have received this email in error please notify the system
manager.
> This message contains confidential information and is intended only for
the
> individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.



This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Reply via email to