Re: Anyway to fix this generic warning?

2008-04-24 Thread ArthIT

Hi,

in Eclipse go to Window - Preferences
Type Generic in the search box. Now you should see the
Java-compiler-Errors/Warnings Node. 
Open it, and change settings under Generic types to whatever you want
(Ignore f.e.)

Cheerz


MYoung wrote:
 
 (Other than using @SupressWarnings)
 
AjaxFallbackButtonPage1 submitButton = new
 AjaxFallbackButtonPage1(submitButton, form) {
 
 @Override protected void onSubmit(AjaxRequestTarget target,
 Form
 f) {  Warning here
 .
 
 Form is a raw type. References to generic type FormT should be
 parameterized.
 
 

-- 
View this message in context: 
http://www.nabble.com/Anyway-to-fix-this-generic-warning--tp16848154p16849776.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Anyway to fix this generic warning?

2008-04-24 Thread Matthew Young
ArthIT: How to suppress the warning is not why I asked the question.  I want
to be sure generify Wicket is correct so user code can be clean and warning
free.

in Eclipse go to Window - Preferences
Type Generic in the search box. Now you should see the
Java-compiler-Errors/Warnings Node.
Open it, and change settings under Generic types to whatever you want
(Ignore f.e.)

I don't do this because that covers up all the warnings of that kind. I
prefer to see the warnings and deal with them.  If the warning cannot be
fixed, I use @SupressWarning on the spot.

On Thu, Apr 24, 2008 at 3:53 AM, ArthIT [EMAIL PROTECTED] wrote:


 Hi,

 in Eclipse go to Window - Preferences
 Type Generic in the search box. Now you should see the
 Java-compiler-Errors/Warnings Node.
 Open it, and change settings under Generic types to whatever you want
 (Ignore f.e.)

 Cheerz


 MYoung wrote:
 
  (Other than using @SupressWarnings)
 
 AjaxFallbackButtonPage1 submitButton = new
  AjaxFallbackButtonPage1(submitButton, form) {
 
  @Override protected void onSubmit(AjaxRequestTarget target,
  Form
  f) {  Warning here
  .
 
  Form is a raw type. References to generic type FormT should be
  parameterized.
 
 

 --
 View this message in context:
 http://www.nabble.com/Anyway-to-fix-this-generic-warning--tp16848154p16849776.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Anyway to fix this generic warning?

2008-04-23 Thread Johan Compagner
Form?

On Wed, Apr 23, 2008 at 6:52 AM, Matthew Young [EMAIL PROTECTED] wrote:

 (Other than using @SupressWarnings)

   AjaxFallbackButtonPage1 submitButton = new
 AjaxFallbackButtonPage1(submitButton, form) {

@Override protected void onSubmit(AjaxRequestTarget target,
 Form
 f) {  Warning here
 .

  Form is a raw type. References to generic type FormT should be
 parameterized.



Re: Anyway to fix this generic warning?

2008-04-23 Thread Matthew Young
Form?

I tried that already and it's no good.

Compile Error: Name clash: The method onSubmit(AjaxRequetTarget, Form?) of
type new AjaxFallbackButtonPage1(){} has the same erasure as
onSubmit(AjaxRequestTarget, Form) of type AjaxFallbackButtonT but does not
override it.

On Wed, Apr 23, 2008 at 2:54 AM, Johan Compagner [EMAIL PROTECTED]
wrote:

 Form?

 On Wed, Apr 23, 2008 at 6:52 AM, Matthew Young [EMAIL PROTECTED] wrote:

  (Other than using @SupressWarnings)
 
AjaxFallbackButtonPage1 submitButton = new
  AjaxFallbackButtonPage1(submitButton, form) {
 
 @Override protected void onSubmit(AjaxRequestTarget target,
  Form
  f) {  Warning here
  .
 
   Form is a raw type. References to generic type FormT should be
  parameterized.
 



Re: Anyway to fix this generic warning?

2008-04-23 Thread Johan Compagner
ahh then we have to first also do that..



On Wed, Apr 23, 2008 at 8:51 PM, Matthew Young [EMAIL PROTECTED] wrote:

 Form?

 I tried that already and it's no good.

 Compile Error: Name clash: The method onSubmit(AjaxRequetTarget, Form?)
 of
 type new AjaxFallbackButtonPage1(){} has the same erasure as
 onSubmit(AjaxRequestTarget, Form) of type AjaxFallbackButtonT but does
 not
 override it.

 On Wed, Apr 23, 2008 at 2:54 AM, Johan Compagner [EMAIL PROTECTED]
 wrote:

  Form?
 
  On Wed, Apr 23, 2008 at 6:52 AM, Matthew Young [EMAIL PROTECTED]
 wrote:
 
   (Other than using @SupressWarnings)
  
 AjaxFallbackButtonPage1 submitButton = new
   AjaxFallbackButtonPage1(submitButton, form) {
  
  @Override protected void onSubmit(AjaxRequestTarget target,
   Form
   f) {  Warning here
   .
  
Form is a raw type. References to generic type FormT should
 be
   parameterized.