You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mark Shead <sh...@optimalinternet.com> on 2005/11/01 19:47:24 UTC

Visit Object

I have the following as my hivemodule.xml:

<?xml version="1.0"?>
<module id="net.xeric.phonebook" version="1.0.0">
	<contribution
		configuration-id="tapestry.state.ApplicationObjects">
		<state-object name="visit" scope="session">
			<create-instance
class="net.xeric.phonebook.Visit" />
		</state-object>
	</contribution>
</module>

In Home.java I have:

	@InjectState("visit")
	public abstract Visit getVisit();

I'm getting an error of:

Error at context:/WEB-INF/Home.page, line 4, column 54: Method 'public
abstract net.xeric.phonebook.Visit net.xeric.phonebook.Home.getVisit()'
(declared in class net.xeric.phonebook.Home) has no implementation in
class net.xeric.phonebook.Home (or enhanced subclass $Home_9).


It sounds like the getVisit isn't being created in the subclass of
Home.java.  I'm guessing that maybe it isn't loading my hivemodule.xml.
I've tried putting it in the root webapp directory in WEB-INF and in
WEB-INF/classes and WEB-INF/classes/META-INF.

Is there an easy way to tell if Tapestry is finding hivemodule.xml?  Is
there another place I should place the file in order to let Tapestry
find it?

--Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Visit Object

Posted by Howard Lewis Ship <hl...@gmail.com>.
http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso

See the big red warning towards the bottom of the page.

On 11/1/05, Mark Shead <sh...@optimalinternet.com> wrote:
> I have the following as my hivemodule.xml:
>
> <?xml version="1.0"?>
> <module id="net.xeric.phonebook" version="1.0.0">
>         <contribution
>                 configuration-id="tapestry.state.ApplicationObjects">
>                 <state-object name="visit" scope="session">
>                         <create-instance
> class="net.xeric.phonebook.Visit" />
>                 </state-object>
>         </contribution>
> </module>
>
> In Home.java I have:
>
>         @InjectState("visit")
>         public abstract Visit getVisit();
>
> I'm getting an error of:
>
> Error at context:/WEB-INF/Home.page, line 4, column 54: Method 'public
> abstract net.xeric.phonebook.Visit net.xeric.phonebook.Home.getVisit()'
> (declared in class net.xeric.phonebook.Home) has no implementation in
> class net.xeric.phonebook.Home (or enhanced subclass $Home_9).
>
>
> It sounds like the getVisit isn't being created in the subclass of
> Home.java.  I'm guessing that maybe it isn't loading my hivemodule.xml.
> I've tried putting it in the root webapp directory in WEB-INF and in
> WEB-INF/classes and WEB-INF/classes/META-INF.
>
> Is there an easy way to tell if Tapestry is finding hivemodule.xml?  Is
> there another place I should place the file in order to let Tapestry
> find it?
>
> --Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Visit Object

Posted by Chris Chiappone <ch...@gmail.com>.
I believe your webapp logs should contain an INFO [ApplicationServlet]
Initialized application servlet 'YourAPP': <time> millis to create
HiveMind Registry...



On 11/1/05, Mark Shead <sh...@optimalinternet.com> wrote:
> I have the following as my hivemodule.xml:
>
> <?xml version="1.0"?>
> <module id="net.xeric.phonebook" version="1.0.0">
>        <contribution
>                configuration-id="tapestry.state.ApplicationObjects">
>                <state-object name="visit" scope="session">
>                        <create-instance
> class="net.xeric.phonebook.Visit" />
>                </state-object>
>        </contribution>
> </module>
>
> In Home.java I have:
>
>        @InjectState("visit")
>        public abstract Visit getVisit();
>
> I'm getting an error of:
>
> Error at context:/WEB-INF/Home.page, line 4, column 54: Method 'public
> abstract net.xeric.phonebook.Visit net.xeric.phonebook.Home.getVisit()'
> (declared in class net.xeric.phonebook.Home) has no implementation in
> class net.xeric.phonebook.Home (or enhanced subclass $Home_9).
>
>
> It sounds like the getVisit isn't being created in the subclass of
> Home.java.  I'm guessing that maybe it isn't loading my hivemodule.xml.
> I've tried putting it in the root webapp directory in WEB-INF and in
> WEB-INF/classes and WEB-INF/classes/META-INF.
>
> Is there an easy way to tell if Tapestry is finding hivemodule.xml?  Is
> there another place I should place the file in order to let Tapestry
> find it?
>
> --Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org