You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Onno Scheffers <on...@AtomicDigitalStudios.com> on 2005/08/14 20:45:44 UTC

Some more T4 questions/problems

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?


- 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?
  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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Some more T4 questions/problems

Posted by Howard Lewis Ship <hl...@gmail.com>.
And thats one of many valid arguments for why a framework that
requires you to extend a base class is flawed.  Anyone got a time
machine?

On 8/15/05, Onno Scheffers <on...@atomicdigitalstudios.com> wrote:
> Howard Lewis Ship wrote:
> 
> >This is the essense of backwards compatibility.
> >
> >
> Thanks for the answers Howard.
> The reason I asked if I still need to extend the BasePage was because I
> figured you may have implemented an alternative to the BasePage without
> those warnings. IMO a framework should only give deprecation-warnings
> during compile if the framework-user does something in a deprecated way.
> It's just weird to get compiler-warnings if you do things the proper
> way. It causes confusion.
> 
> regards,
> 
> Onno
> 
> >On 8/14/05, Onno Scheffers <on...@atomicdigitalstudios.com> 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: tapestry-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Some more T4 questions/problems

Posted by Onno Scheffers <on...@AtomicDigitalStudios.com>.
Howard Lewis Ship wrote:

>This is the essense of backwards compatibility.
>  
>
Thanks for the answers Howard.
The reason I asked if I still need to extend the BasePage was because I 
figured you may have implemented an alternative to the BasePage without 
those warnings. IMO a framework should only give deprecation-warnings 
during compile if the framework-user does something in a deprecated way. 
It's just weird to get compiler-warnings if you do things the proper 
way. It causes confusion.

regards,

Onno

>On 8/14/05, Onno Scheffers <on...@atomicdigitalstudios.com> 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: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Some more T4 questions/problems

Posted by Howard Lewis Ship <hl...@gmail.com>.
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 <on...@atomicdigitalstudios.com> 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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org