Andrei Chiritescu <andrei.chiritescu <at> gmail.com> writes:
>
> Hi Ed,
>
> Do you have you compiled classes in the "\WEB-INF\classes" ? I seem to
> remember that this location was necessary.
> If so have you tried to specify the class attribute to the
> <page-specification> ?
>
> Regards,
> Andrei Chiritescu
>
Thanks Andrei. I am making some progress. I did some cutting and pasting
from other examples. I defined a DLTest.page file in the web context root as
follows:
{begin file DLTest.page}
<?xml version="1.0"?>
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
<page-specification class="tutorial.forms.pages.DLTest">
<component id="counter" type="Insert">
<binding name="value" value="ognl:counter"/>
</component>
</page-specification>
{end file DLTest.page}
I also defined a hivemodule.xml file in \WEB-INF\ as follows:
{begin file hivemodule.xml}
<?xml version="1.0"?>
<module id="taplet" version="4.0.0" package="tutorial.forms.pages">
Application module for the Test Tapestry Portal Application.
<implementation service-id="tapestry.portlet.resolver.PortletPageResolver">
<interceptor service-id="hivemind.LoggingInterceptor"/>
</implementation>
<service-point id="ClickCounter">
<invoke-factory>
<construct class="DLTest">
<set-object property="doClick" value="service:DLTest"/>
</construct>
</invoke-factory>
</service-point>
</module>
{end file hivemodule.xml}
The addition of these files has eliminated the runtime exceptions. I'm not
sure whether or not both files are necessary, or if I'm mixing and matching,
and could have accomplished the same using one or the other type of file.
Only one thing is left to have this test run as intended. I have confirmed
that the doClick method is being invoked, but the displayed counter value does
not change from 0. I need to determine the equivalent 1.4 construct for the
@persist annotation.
Regards,
Ed
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]