Thanks Stephan, I got it working now. I wonder if built-in support for this has been requested as an enhancement?
Benny On Fri, Feb 4, 2011 at 12:59 PM, Stephan Windmüller < stephan.windmuel...@tu-dortmund.de> wrote: > On 04.02.2011 17:44, Benny Law wrote: > > > Thanks for providing this solution. I tried to implement this, but got > stuck > > on the last step. Could you tell me how you "set the saved controlName to > > the component"? I couldn't find a public setter for this property. I > > searched the whole class hierarchy for TextField and couldn't find > anything. > > Do I need to create a wrapper for it? Thanks. > > Sorry, I forgot. You need to implement a simple field (implementing > Field) which passes the methods > > public void setControlName(String controlName); > public String getControlName(); > > to the public. Insert it in your tml and inject it in your java class, > acting as a dummy for the validation. > > HTH > Stephan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >