Yes, and you are going to continue to get deprecation warnings until at least Tapestry 4.1, when the deprecated methods are removed. This is the essense of backwards compatibility. You may be new to Tapestry (I can't tell), but there are an awful lot of Tapestry 3 applications out there, dependent upon the old APIs.
On 8/14/05, Onno Scheffers <[EMAIL PROTECTED]> wrote: > I'm trying to get to grips with the Tapestry 4 way of doing things (beta > 4). I still have a couple of questions: > > - For every page that extends the BasePage I get 4 deprecation warnings: > Warning: Warning: line (14)[deprecation] > removePageRenderListener(org.apache.tapestry.event.PageRenderListener) > in org.apache.tapestry.IPage has been deprecated > Warning: Warning: line (14)[deprecation] > addPageRenderListener(org.apache.tapestry.event.PageRenderListener) in > org.apache.tapestry.IPage has been deprecated > Warning: Warning: line (14)[deprecation] getGlobal() in > org.apache.tapestry.IPage has been deprecated > Warning: Warning: line (14)[deprecation] getVisit() in > org.apache.tapestry.IPage has been deprecated > This quickly grows into a huge number of warnings. I do still need to > extend the BasePage, right? (The 'QuickStart: DirectLink' example still > does). > > > - The user guide on the website is not yet complete regarding > validation; I use the T3 way of using validFields, which gives me > runtime deprecation-warnings in my log. > What should I use instead of ValidFields? TextField, and make use of the new translator and validators parameters. Yes, its not well documented yet! > > > - When I implement my own ValidationDelegate the writeSuffix method > always gets null as a validator parameter. Is that supposed to happen? > Or does that have to do with my previous question? The writeSuffix method is getting invoked for all sorts of stuff now, not just ValidFields. For TextField, TextArea, etc., the validator parameter will be null. > Validation itself is working, so I know the validators are ok. I've > tried it with the 'validator:'-prefix, setting up <bean>s for validators > and even provided validators through my own Page class just > to be sure. But no matter what I try I end up with a null-validator in > the writeSuffix method of my custom ValidationDelegate. > > > Any helps would be appreciated. > > Regards, > > Onno > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
