You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/07/01 19:00:00 UTC

[jira] Commented: (TAPESTRY-365) Can't access Page Message Catalog without have a page specification file

    [ http://issues.apache.org/jira/browse/TAPESTRY-365?page=comments#action_12314900 ] 

Howard M. Lewis Ship commented on TAPESTRY-365:
-----------------------------------------------

I believe what's happening is that the "virtual location" for the specification (used to locate the message catalog) is not in WEB-INF, but is the HTML template.

Tapestry has done this before, in 3.0; I guess the new behavior (making the specification optional) is highlighting this issue.

I *think* the correct "virtual location" is under WEB-INF.  So if you have /foo/Bar.html, you can create /WEB-INF/foo/Bar.properties.

> Can't access Page Message Catalog without have a page specification file
> ------------------------------------------------------------------------
>
>          Key: TAPESTRY-365
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-365
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Scott Walter

>
> I have created a page ChangedLocale.html without using a page specification fiile (I am using annotations).  When I try to get a message from the Page Message Catalog file "ChangedLocale.properties" which I put in WEB-INF, the message is never found.  On the page I used this to attempt to get the message:
> <span jwcid="@Insert" value="message:changedlocal"/>
> However if I create a simple page specification file like the one below, it works:
> <page-specification class="com.scottwalter.sandbox.tapestry4.pages.ChangedLocale">
> </page-specification>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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