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]