Re: Newbie help with For and TextField components

2007-01-11 Thread Jim Downing
Hi Daniel, thanks very much for this, it makes things much clearer (best explanation of it I've seen by a long chalk!). I'll take your advice and create a holder object for my string that uses a UUID to identify the strings. Thanks! jim Daniel Tabuenca wrote: Eventually I'm going to be s

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
Eventually I'm going to be saving the values in RDF - the values won't have a persistent key, they're just literal values. I'm also keen to avoid using any session persistence but will do if it's necessary. Can tapestry deal with simple values that don't have identity in this way? To understand

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
Well it's because you are using strings directly. Here's what the equivalent of what is going on in JAVA: List names = NAMES; for( String name : names ){ name = " NEW VALUE FROM INPUT FIELD"; // but strings are immutable so name has a new string reference and does not modify // the one that is

Re: Newbie help with For and TextField components

2007-01-10 Thread Jim Downing
Hi Firas, Firas Adiler wrote: I'm a bit puzzled myself, but how did you manage to run the app without providing setters for 'idx' and 'name' fields: public abstract void setIdx(int idx) public abstract void setName(String name)? Seems to work fine just defining the getter in other situation

Re: Newbie help with For and TextField components

2007-01-10 Thread Jim Downing
Hi Daniel, thanks for the help! Daniel Tabuenca wrote: The Chart example the plotValues property is persisted: class="org.apache.tapestry.workbench.chart.ChartPage"> ... I am assuming you are not persisting since from your logs: 9627410 [btpool0-3] INFO com.example.pages.Home -

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
The Chart example the plotValues property is persisted: ... I am assuming you are not persisting since from your logs: 9627410 [btpool0-3] INFO com.example.pages.Home - Begin render. Rewind? true 9627411 [btpool0-3] INFO com.example.pages.Home - Initializing names list The list g

RE: Newbie help with For and TextField components

2007-01-10 Thread Firas Adiler
o:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 3:47 PM To: users@tapestry.apache.org Subject: Newbie help with For and TextField components Hi, I'm trying to get some simple list editing working using For and TextField but not having much luck. Home.html: - http://www.w3.org/1999/

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
I don't get it. What are you trying to do? You aren't persisting your list anywhere so at each render or rewind your lists starts off null. so by the time it gets to the @For loop the @For loop has nothing to iterate over. Am I missing something? On 1/9/07, Jim Downing <[EMAIL PROTECTE

Re: Newbie help with For and TextField components

2007-01-10 Thread Jim Downing
Hi Jesse, Jesse Kuhnert wrote: I think the problem with this approach is that the For component has no way of uniquely identifying your list values. I would try using the keyExpression or converter parameters of the For component to do this instead. http://tapestry.apache.org/tapestry4.1/compon

Re: Newbie help with For and TextField components

2007-01-10 Thread Jesse Kuhnert
I think the problem with this approach is that the For component has no way of uniquely identifying your list values. I would try using the keyExpression or converter parameters of the For component to do this instead. http://tapestry.apache.org/tapestry4.1/components/general/for.html On 1/9/0

Newbie help with For and TextField components

2007-01-09 Thread Jim Downing
Hi, I'm trying to get some simple list editing working using For and TextField but not having much luck. Home.html: - http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Example app Hello world! List of names: 1 Home.java public abstract class Home extends BasePage implements