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

T4.1.1 Client-side validation problems

2007-01-10 Thread Jim Downing
Can anyone help me to get client-side validation working? I've enabled client side validation on my form component, and used a ScriptIncludes component to load the dojo components, but now whenever I submit the form (whether or not there are any invalid inputs) the following message is appende

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

[Filtered!] Re: T4.1.1 Client-side validation problems

2007-01-12 Thread Jim Downing
Warning: This message has had one or more attachments removed Warning: (verify.js). Warning: Please read the "FilterNotice.txt" attachment(s) for more information. Stefan Esterer wrote: Can you post your script, page and html file so we can study it? At the moment I'm just trying to use the

Re: [Filtered!] Re: T4.1.1 Client-side validation problems

2007-01-18 Thread Jim Downing
Hi Brian, thanks for the advice - I'll see what happens when I turn off the input disabling. cheers, jim Brian Duchek wrote: Back in Tap3, if you disabled form fields on the client it would totally screw up server side validation (and some client validation schemes). It was a technique fr