Jesse,

Does it work using annotations?


-----Original Message-----
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 11, 2006 2:19 PM
To: Tapestry users
Subject: Re: Hivemind problem with tapestry 4

How lucky for you! I'm running into the same exact problem now. When I find
a solution I'll let people know.

On 4/11/06, Rodnei Couto <[EMAIL PROTECTED]> wrote:
>
> Hi list,
>
> I'm migrating my aplication from tapestry 3 to tapestry 4. I made this
> hivemind helloWorld example with tapestry to learn, but this didn't
> work.
>
> The version of hivemind is 1.1.1.
>
> Somebody can help me?
>
> The exception is:
>
> org.apache.hivemind.ApplicationRuntimeException
> Error at context:/WEB-INF/Home.page, line 9, column 68: Error adding
> property valor to class tapestryTest.Pagina: The value obtained using
> locator 'service:examples.HelloWorld' (<SingletonProxy for
> examples.HelloWorld(com.helloworld.exampple.HelloWorld)>) is not
> compatible with the existing property (of type
> com.helloworld.exampple.HelloWorld).
>
>
> HelloWorld Interface:
>
> package com.helloworld.exampple;
> public interface HelloWorld {
>     public String getHelloWorld();
> }
>
> HelloWorldImp Class:
>
> package com.helloworld.exampple;
> public class HelloWorldImp implements HelloWorld {
>     public String getHelloWorld() {
>        return "Hello World";
>     }
> }
>
> hivemind.xml
>
> <?xml version="1.0"?>
> <module id="examples" version="1.0.0" package="com.helloworld.exampple">
>     <service-point id="HelloWorld">
>         <invoke-factory>
>             <construct class="HelloWorldImp"/>
>         </invoke-factory>
>     </service-point>
> </module>
>
> Home.page
>
> <page-specification class="tapestryTest.Pagina">
>     <inject property="valor" object="service:examples.HelloWorld"/>
> </page-specification>
>
> Home.java
>
> public abstract class Pagina extends BasePage {
>    public abstract HelloWorld getValor();
>    public String getString(){
>         Object valor = getValor();
>         return getValor().getHelloWorld();
>     }
> }
>
> ---------------------------------------------------------------------
> 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]
>
>


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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.  http://opennotion.com



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

Reply via email to