Hi,

I couldn't find information on how to access properties of render
variables.

I have the following test case:

Suppose we have two classes:

class App {  private String name; /* + getters/setters */ }
class Node {  private List<App> apps; private String name; /* +
getters/setters */ }

in my page I have a
@Property private List<Node> nodes;

I try to do the following:

<t:loop source="nodes" value="var:node">
 Server: ${var:node.name} :
<ul>
<t:loop source="var:node.apps" value="var:app">
  <li>${var:app.name}</li>
</t:loop>
</ul>
</t:loop>

but somehow this does not work... If I create explizit iteration variables
for
node and app in my page-class, it works as expected.

Tapestry complains that it can't find the variable ${var:node.name} but
only ${var:node}, the same goes for ${var:app.name} / ${var:app} .. how can
I access a child property of a render variable?

Shouldn't this be working?

We're running Tapestry 5.3.7

Thanks,
Dominik

-- 
Dominik Dorn
http://dominikdorn.com | http://twitter.com/domdorn
XING: https://www.xing.com/profile/Dominik_Dorn
LINKEDIN: http://at.linkedin.com/pub/dominik-dorn/66/b42/bb1/

Reply via email to