You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ChinHo Tan <s_...@hotmail.com> on 2003/07/21 22:37:26 UTC

Template Context

Hi,
I got the following exception:

org.apache.tapestry.ApplicationRuntimeException
Could not read template context:Home.html.

I have my Home.page under /web-inf and Home.html under / of the jar file.
I do NOT set context asset $template in Home.page.
Anything was wrong ?



Re: Template Context

Posted by ChinHo Tan <s_...@hotmail.com>.
I have found the problem .. thanks.

At 09:45 PM 7/21/2003 -0400, you wrote:
>I do not know much about localization. I have only Home.html, Home.page, 
>and the corresponding java file, Home.java
>Can anyone suspect any other errors ? Thank you.
>
>At 10:03 PM 7/21/2003 +0100, you wrote:
>
>>Hi,
>>
>>On Monday 21 July 2003 21:37, ChinHo Tan wrote:
>> > Hi,
>> > I got the following exception:
>> >
>> > org.apache.tapestry.ApplicationRuntimeException
>> > Could not read template context:Home.html.
>> >
>> > I have my Home.page under /web-inf and Home.html under / of the jar file.
>> > I do NOT set context asset $template in Home.page.
>> > Anything was wrong ?
>> >
>>
>>My guess is that Tapestry is looking for the "wrong" localized template.
>>Can you test you different locales to see if any of them work.
>>
>>
>>Regards,
>>Luis Neves
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>



Re: Template Context

Posted by ChinHo Tan <s_...@hotmail.com>.
I do not know much about localization. I have only Home.html, Home.page, 
and the corresponding java file, Home.java
Can anyone suspect any other errors ? Thank you.

At 10:03 PM 7/21/2003 +0100, you wrote:

>Hi,
>
>On Monday 21 July 2003 21:37, ChinHo Tan wrote:
> > Hi,
> > I got the following exception:
> >
> > org.apache.tapestry.ApplicationRuntimeException
> > Could not read template context:Home.html.
> >
> > I have my Home.page under /web-inf and Home.html under / of the jar file.
> > I do NOT set context asset $template in Home.page.
> > Anything was wrong ?
> >
>
>My guess is that Tapestry is looking for the "wrong" localized template.
>Can you test you different locales to see if any of them work.
>
>
>Regards,
>Luis Neves
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org



Re: Template Context

Posted by Luis Neves <ln...@netcabo.pt>.
Hi,

On Monday 21 July 2003 21:37, ChinHo Tan wrote:
> Hi,
> I got the following exception:
>
> org.apache.tapestry.ApplicationRuntimeException
> Could not read template context:Home.html.
>
> I have my Home.page under /web-inf and Home.html under / of the jar file.
> I do NOT set context asset $template in Home.page.
> Anything was wrong ?
>

My guess is that Tapestry is looking for the "wrong" localized template.
Can you test you different locales to see if any of them work.


Regards,
Luis Neves


RE: Template Context

Posted by ChinHo Tan <s_...@hotmail.com>.
Yes, I mean WAR file. So anything is wrong ?
Thanks.

At 05:04 PM 7/21/2003 -0400, you wrote:
>You mean WAR file, right?  i.e., you had
>
>foo.war:
>/Home.html
>/WEB-INF/Home.page
>
>
>
>--
>Howard M. Lewis Ship
>Creator, Tapestry: Java Web Components
>http://jakarta.apache.org/tapestry
>
>
>
> > -----Original Message-----
> > From: ChinHo Tan [mailto:s_chtan@hotmail.com]
> > Sent: Monday, July 21, 2003 4:37 PM
> > To: tapestry-user@jakarta.apache.org
> > Subject: Template Context
> >
> >
> > Hi,
> > I got the following exception:
> >
> > org.apache.tapestry.ApplicationRuntimeException
> > Could not read template context:Home.html.
> >
> > I have my Home.page under /web-inf and Home.html under / of
> > the jar file. I do NOT set context asset $template in
> > Home.page. Anything was wrong ?
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org



RE: Template Context

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
You mean WAR file, right?  i.e., you had 

foo.war:
/Home.html
/WEB-INF/Home.page



--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



> -----Original Message-----
> From: ChinHo Tan [mailto:s_chtan@hotmail.com] 
> Sent: Monday, July 21, 2003 4:37 PM
> To: tapestry-user@jakarta.apache.org
> Subject: Template Context
> 
> 
> Hi,
> I got the following exception:
> 
> org.apache.tapestry.ApplicationRuntimeException
> Could not read template context:Home.html.
> 
> I have my Home.page under /web-inf and Home.html under / of 
> the jar file. I do NOT set context asset $template in 
> Home.page. Anything was wrong ?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>