Something odd is going on, because there are specific tests for this
stuff so I know it works in the code.  Without seeing all the code and
the full layout, there's no much more I can do.  If you can provide a
zipped up Maven project to demonstate the problem, I'm sure I can whip
up a fix.

On Feb 1, 2008 2:26 PM, Michael Gerzabek <[EMAIL PROTECTED]> wrote:
> Howard Lewis Ship schrieb:
> > Havning trouble following you ... what is the name, location and
> > contents of your .properties file?
> >
> > Does the expansion work or not work?
> >
> No!
>
> the layout like in maven archetype (both get packaged):
>   |
>   +- JAVA/.../pages/prm/Contact.java
>   +- RESOURCES/.../pages/prm/Contact.properties
>   :
>   /src/main/webapp/prm/Contact.tml
>
> the contents:
> -- Contact.tml --
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>     <head>
>       <meta http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1"/>
>         <title>Person</title>
>     </head>
>     <body>
>         <h1>${person.firstName} ${person.lastName}</h1>
>         <t:beaneditform id="person" object="person" model="model"
> submitLabel="Änderungen speichern"
>           reorder="title, firstName, lastName, birthDay, EMail, phone,
> fax, mobile, site"/>
>         <p><t:pagelink page="prm/people">back to people</t:pagelink></p>
>
>     </body>
> </html>
>
> -- Contact.java --
> ...
> METHOD-BREAKPOINT HERE:
>   void pageLoaded() {
>
>         _model = _beanModelSource.create( Person.class, true, _resources
> );
>         _model.remove( "id" );
>         _model.remove( "added" );
>         _model.remove( "updated" );
>         _model.remove( "dayOfBirth" );
>         _model.remove( "monthOfBirth" );
>         _model.remove( "affiliate" );
>         _model.remove( "owner" );
>     }
> ...
>
> -- Contact.properties --
> title-label=Titel/Anrede
> firstName-label=Vorname
> lastName-label=Familienname
> middleName-label=Weitere Vornamen
> eMail-label=E-Mail-Adresse
> birthDay-label=Geburtstag
> mobile-label=Mobiltelefon
> phone-label=Telefon
> fax-label=FAX
> site-label=Website
> pictureURL-label=Link zu Bild
>
> As I said, when I debug the resources get picked up. But in the page
> they are not expanded.
>
> Michael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to