Re: Using generics with some non-generic classes in Wicket

2008-05-15 Thread Sebastiaan van Erk
Igor Vaynberg wrote: well, apparently johan ran into a situation where component? is too restrictive... As I understand it, Johan ran into a situation where Component? causes *warnings* for users who use raw types. Which I've been arguing all along that they SHOULD get: they should use

Re: Using generics with some non-generic classes in Wicket

2008-05-15 Thread Peter Ertl
this one will do: public X extends Component? void foo(ClassX clazz); however, the subtle differences between this and igors version are really hard to get. Am 15.05.2008 um 16:31 schrieb Igor Vaynberg: this is the usecase we are talking about. i get a compile error, which sucks.

Re: Using generics with some non-generic classes in Wicket

2008-05-15 Thread Igor Vaynberg
this is the usecase we are talking about. i get a compile error, which sucks. public class Test { public static void main(String[] args) { Foo foo = new FooImpl(); foo.foo(IntegerComponent.class); // ok foo.foo(Component.class); // compile error } public

Re: Using generics with some non-generic classes in Wicket

2008-05-15 Thread Johan Compagner
yes and those i already came across some in wicket i changed to ? and suddenly in extentions and/or examples compile errors all over the place... then i quickly turn it off again... (for now) johan On Thu, May 15, 2008 at 4:31 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: this is the usecase we

Re: Using generics with some non-generic classes in Wicket

2008-05-15 Thread Peter Ertl
taken from SUN's generic tutorial: http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf end of page 8 snip ::: interface CollectionE { public boolean containsAll(Collection? c); public boolean addAll(Collection? extends E c); } We could have used generic methods here instead: interface

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
to generic type MarkupContainerT should be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
. References to generic type MarkupContainerT should be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Doug Donohoe
-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Hoover, William
://www.nabble.com/Using-generics-with-some-non-generic-classes-in -Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Martijn Dashorst
in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com

RE: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Doug Donohoe
things about Wicket is that it keeps the bloat to a minimum. -Original Message- From: Doug Donohoe [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 8:21 AM To: users@wicket.apache.org Subject: Re: Using generics with some non-generic classes in Wicket Somewhat related

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Peter Ertl
. -Original Message- From: Doug Donohoe [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 8:21 AM To: users@wicket.apache.org Subject: Re: Using generics with some non-generic classes in Wicket Somewhat related to this thread, when I moved to generics win Wicket 1.4, I created some utility

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Doug Donohoe
@wicket.apache.org Subject: Re: Using generics with some non-generic classes in Wicket Somewhat related to this thread, when I moved to generics win Wicket 1.4, I created some utility classes such as: public class VoidContainer extends WebMarkupContainerlt;Void public class VoidPanel extends

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Stefan Simik
PROTECTED] -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-1.4M1-tp17208928p17216869.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
@wicket.apache.org Subject: Re: Using generics with some non-generic classes in Wicket Somewhat related to this thread, when I moved to generics win Wicket 1.4, I created some utility classes such as: public class VoidContainer extends WebMarkupContainerlt;Void public class VoidPanel extends

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
] -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-1.4M1-tp17208928p17216869.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
to generic type MarkupContainerT should be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
. References to generic type MarkupContainerT should be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
type MarkupContainerT should be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Peter Ertl
is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
should be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Peter Ertl
be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
Igor Vaynberg wrote: i do like generics. did i ever say otherwise? the problem here is that if we scope something as Class? extends Component then even though you ARE using generics in your code you will still get a warning because we did not scope the class as Class? extends Component?. on

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Eelco Hillenius
the whole generics thing turned out to be quiet a lot crappier then i thought it would. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
since then the thread has evolved into whether or not we should use ? extends Component or ? extends Component? -igor On Wed, May 14, 2008 at 1:54 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: i do like generics. did i ever say otherwise? the problem here is that if

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Eelco Hillenius
On Wed, May 14, 2008 at 2:25 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: the whole generics thing turned out to be quiet a lot crappier then i thought it would. :-) Generics for models: great. Generics for components: awful. Too bad that stuff is contagious. Eelco

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Peter Ertl
wicket 1.6 = scala-based ? *lol* Am 14.05.2008 um 23:28 schrieb Eelco Hillenius: On Wed, May 14, 2008 at 2:25 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: the whole generics thing turned out to be quiet a lot crappier then i thought it would. :-) Generics for models: great. Generics for

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
Igor Vaynberg wrote: since then the thread has evolved into whether or not we should use ? extends Component or ? extends Component? -igor I don't understand how that changes any of my points. The first is incorrect (from a generics point of view) since you're referencing an unparameterized

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
yeah, generics are pretty damn viral -igor On Wed, May 14, 2008 at 2:28 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Wed, May 14, 2008 at 2:25 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: the whole generics thing turned out to be quiet a lot crappier then i thought it would. :-)

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Igor Vaynberg
well, apparently johan ran into a situation where component? is too restrictive... -igor On Wed, May 14, 2008 at 2:37 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: since then the thread has evolved into whether or not we should use ? extends Component or ? extends

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Gerolf Seitz
i think something similar happend to me with Model.valueOf(Map), so i had to change it back to return Model instead of Model? Gerolf On Wed, May 14, 2008 at 11:41 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: well, apparently johan ran into a situation where component? is too restrictive...

Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
with generifying of these classes ? Thx, Stefan Simik -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17208928.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
) is undefined. I can't find out, what I am doing wrong. Thx Stefan Simik -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
(String id, T string) { super(id, new ModelT(string)); } -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17211220.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
get an error: The constructor Model(String) is undefined. I can't find out, what I am doing wrong. Thx Stefan Simik -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html Sent from the Wicket - User

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17211948.html Sent from the Wicket - User mailing list archive

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
to generic type MarkupContainerT should be parameterized I cannot find out, what's the warning reason, because ListView self is parameterized. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Jonathan Locke
I am doing wrong. Thx Stefan Simik -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html Sent from the Wicket - User mailing list archive at Nabble.com. -- View this message in context: http

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html Sent from the Wicket - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Jonathan Locke
generify. If I write new Model(text), I get an error: The constructor Model(String) is undefined. I can't find out, what I am doing wrong. Thx Stefan Simik -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html Sent from the Wicket - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-1.4M1-tp17208928p17212325.html

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Sebastiaan van Erk
-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.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