This is very odd; it certainly is not something inside Tapestry.  I
would look into what's going on with Maven and Jetty.

Maven may be trying to "filter" the .tml file before Jetty deploys it;
if possible, switch to an exploded WAR format and see exactly what
file is in the exploded WAR ... it may not be what's in your
workspace.

On Wed, Aug 20, 2008 at 6:28 AM, Arve Klev <[EMAIL PROTECTED]> wrote:
> hi all,
>
> I'm presenting data from my domain-model in a grid, and run into some odd
> behavior in this circumstances:
>
> From the domain-model - Person.java:
> ------------------------------------
> public class Person implements Serializable, Comparable<Person>
> {
> ...
>
>  private String id;
>
>  public String getId() { return id; }
>
> ...
> }
>
> From Tapestry5 - tml-file:
> --------------------------
> <table t:type="grid" source="personer" row="aktuellPerson">
>  <t:parameter name="idCell">
>    <a t:type="pagelink" page="DetaljPerson"
> context="aktuellPerson.id">${aktuellPerson.id}</a>
>  </t:parameter>
> </table>
>
> When I "mvn jetty:run" from the command-line, and open the application in a
> browser,
> the values for the different id'd is presented like:
>  "no.mil.dsf:myapp:war:1.0-SNAPSHOT"
> but the link is correct: "
> http://localhost:9090/myapp/detaljperson/03119876900";
>
> Then I make a change in the tml-file (add a space or something), refresh the
> page, and the id-values displays correct:
>  "03119876900"
> and the link remains correct.
>
> If I "mvn jetty:run" again, the id-values displays again as
> "no.mil.dsf:myapp:war:1.0-SNAPSHOT".
> (same behavior in another domain-object where the id is a Long)
>
> Is it right that I can't use "id" (getId) as a domain attribute in Tapestry5
> together with t:grid and t:parameter?
>
>
> thanks,
> Arve
>



-- 
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