It looks like you're creating a custom component called Person. Is that what you want to do? Or is Person one of your domain classes with first name, last name, etc. I also don't understand doing instanceof. You should make absolutely sure that your page's property called "Persons" always contains a Collection of instances of type Person.
If you rename your Persons property to people, which is more in line with Tapestry convention and avoids confusion with what I assume is a domain class Person, how about this code: <span jwcid="@Foreach" source="ognl:people" value="ognl:current"> <span jwcid="@Insert" value="ognl:current.name" /> <ul> <li jwcid="@Foreach" source="ognl:current.addressList" value="ognl:currAddr" element="li"> <span jwcid="@Insert" value="ognl:currAddr.address"></span> </li> </ul> </span> Bill On 10/7/06, Skorpien126 <[EMAIL PROTECTED]> wrote:
Hi @ All.... I?ve try to build a page but i?m not right in understanding how tapestry works.... OK: I Have a Page Class "Context" (extending BasePage implementing PageBeginRenderListener)which consists some propertys of Type "Persons" which extends from BaseComponent and which ist not abstract. This Class builds an arraylist of "Person" extending BaseComponent. Now I want to initialiaze the Propertys in the Context Class at the begin of pageBeginRender is called. There i create a new Instance of Persons. then i call persons.setPersonList(ArrayList Person) so that all value are initialized. In the Context.html i try to visualize the Context builded when pageBeginRender is called. <span jwcid="@Foreach" source="ognl:Persons" value="ognl:ListItem"> <span jwcid="@If" condition="ognl:ListItem instanceof Persons"> <span jwcid="@Person" AdresslList="ognl:ListItem.getAdressList()" Name="ognl:ListItem.getName()"/> </span> </span> The Class person has the propertys: String name and ArrayList AdressList. So the Problem is that the parameter are not referenced. the component parameters are always null... or in detail they have the values defined in the standart constructor. Can anyone help me... ?!???!?!?!? -- View this message in context: http://www.nabble.com/Problem-Understanding-Tapestry..-tf2400174.html#a6692697 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Budgets are moral documents." -- Ann Richards --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]