Re: DataTable generics vs. IColumn generics

2015-03-10 Thread Sven Meier
Hi, At the current implementation they need to do cols.add(new LocationColumLocation(...)); instead of just cols.add(new LocationColum(...)); I think you mean LocationColumnPerson. nice feature of PropertyColums: Not to have a too strength coupling of what the column displays in the cell and

Re: DataTable generics vs. IColumn generics

2015-03-09 Thread Patrick Davids
Hi Sven, I did already implement it this way... and its working. But my team members asked (more the client developers point of view), why the column-class itself is not a generic of Location, like this. public class LocationColumn extends PropertyColumnLocation { ... } At the current

Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Sven Meier
Hi Patrick, you can let your column implementation be generic: public class LocationColumnT extends PropertyColumnT { public LocationColumn(String expressionToLocation){ super(Model.of(Location), expressionToLocation); } @Override public

DataTable generics vs. IColumn generics

2015-03-05 Thread Patrick Davids
Hi all, whats the meaning of generic T on DataTables vs T of IColumn and T of ICellPopulator? As I understand its the type of object shown by the table rows. Reading the javadoc of AbstractColumn it says T (if I understand correct), its the type of object shown by the cell itself. But

Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Sven Meier
Hi, generic T is identical for the DataTable, and it's IColumns: it's the type of the row models. A column is responsible to provide a cell component for a row: For DataTable only the input (e.g. Person) is interesting, the output (Location) doesn't matter. Your LocationColumn should

Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Patrick Davids
Hi Sven, thanx for feedback. Ok, how to implement the LocationColumn more reusable? I dont want to be bound to a Datatable of Persons. I'd like to have a Column which works with a Locations, independently from which model-object the expression fetches the Location. Is there any way to do

Re: Plans for further wicket classes with generics

2015-02-02 Thread Martin Grigorov
Hi, There is a discussion about this since Wicket 1.4 (the first version of Wicket built against JDK 1.5). The main stopper is that using generics makes the code even more verbose. And many people don't like this. So there are few Generic*** versions of the most used components. Martin Grigorov

Plans for further wicket classes with generics

2015-02-02 Thread Thibault Kruse
Hi, Already in Wicket there is GenericPanel, GenericWebPage, GenericFragment, IGenericComponent, and IModel of course is already generic. But there is still IBehavior without Generics and several standard components which do not implement IGenericComponent such a Label. Are there plans

Re: Plans for further wicket classes with generics

2015-02-02 Thread Thibault Kruse
I see, I guess this was summarized here: https://cwiki.apache.org/confluence/display/WICKET/generics On Mon, Feb 2, 2015 at 2:27 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, There is a discussion about this since Wicket 1.4 (the first version of Wicket built against JDK 1.5

Re: SpringBean doesn't support Generics?

2015-01-08 Thread RedCarpet
Hi, I have just created a ticket here with a quickstart to demo the problem: https://issues.apache.org/jira/browse/WICKET-5808 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringBean-doesn-t-support-Generics-tp4668928p4668937.html Sent from the Users forum mailing

Re: SpringBean doesn't support Generics?

2015-01-05 Thread Martin Grigorov
here: http://spring.io/blog/2013/12/03/spring-framework-4-0-and-java-generics . However, I'm experiencing problems when using generic beans with Wicket's SpringBean. I basically have following situation, two concrete dao's that implement a generic typed interface dao.: class Product{} class

SpringBean doesn't support Generics?

2015-01-05 Thread RedCarpet
Spring 4 is able to wire/inject generic beans, as described here: http://spring.io/blog/2013/12/03/spring-framework-4-0-and-java-generics . However, I'm experiencing problems when using generic beans with Wicket's SpringBean. I basically have following situation, two concrete dao's that implement

Re: DataTable's FilterToolbar generics broken

2014-05-02 Thread Leszek Gawron
Confused I am not :) Let me give you three examples... I. filtering with a subset of properties This is a class that worked perfectly in 1.4.19: public class CustomersDataProvider extends HibernateDataProviderCustomer implements IFilterStateLocatorCustomerFilter { @SuppressWarnings(unused)

Re: DataTable's FilterToolbar generics broken

2014-04-28 Thread Paul Bors
I think you're confused. If you want to filter a collection based on type T, then your filter your extend T. The idea here is that your model object type for the filter is the same as that retrieved by the data provider. As such you can have a POJO of the same type T on which you apply the

DataTable's FilterToolbar generics broken

2014-04-26 Thread Leszek Gawron
I started migrating my code from wicket 1.4.19 to 6. Finally ! :) I found a FilterToolbar bug: Once you were able to create DataTableUser wrapped inside of FilterFormUserFilterDto currently FilterToolbar requires you for those two types to be identical: public T, S FilterToolbar(final

Suggestion: Generics in Panel to specify type of default model?

2013-02-03 Thread Ondrej Zizka
Hi, wouldn't it be nice if Panel had type param - PanelT - which would be used for: IModelT getDefaultModel() T getDefaultModelObject() Or why is it not so? Thanks, Ondra - To unsubscribe, e-mail:

Re: Suggestion: Generics in Panel to specify type of default model?

2013-02-03 Thread Martin Grigorov
See GenericPanel and few other components which implement IGenericComponent We may make them all generic for Wicket 7 if JDK 7 is minimum and diamonds can be used. On Sun, Feb 3, 2013 at 3:28 PM, Ondrej Zizka ozi...@redhat.com wrote: Hi, wouldn't it be nice if Panel had type param - PanelT -

Re: Generics of Button#getForm

2012-05-07 Thread Martin Grigorov
the raw type Form in wicket 1.5.6. Could a committer please change the return type back to Form? so we don't have to suppress those annoying generics warnings? thanks. - To unsubscribe, e-mail: users-unsubscr

generics

2012-05-02 Thread Tom Eugelink
); / Because setRequired is actually implemented in FormComponent and returns a FormComponent. By adding the component type to the generics of FormComponent and casting the return value, this could be resolved. /public abstract class FormComponentT, C/ /{ public C setRequired(boolean required

Re: inmethod-grid generics

2011-07-03 Thread Duy Do
Attila, thank you for your information. On 7/3/11 1:37 AM, Attila Király wrote: Hi Duy, Generics were added only to the 1.5 branch of inmethod-grid. There is no plan to backport this to the 1.4 branch. Attila 2011/7/2 Duy Dodoquoc...@gmail.com Hi wicketers, I found inmethod-gric generics

inmethod-grid generics

2011-07-02 Thread Duy Do
Hi wicketers, I found inmethod-gric generics for wicket 1.5 on wicketstuff but can not find one for wicket 1.4.x. Is there any maven repo for 1.4.x? Thanks, Duy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: inmethod-grid generics

2011-07-02 Thread Attila Király
Hi Duy, Generics were added only to the 1.5 branch of inmethod-grid. There is no plan to backport this to the 1.4 branch. Attila 2011/7/2 Duy Do doquoc...@gmail.com Hi wicketers, I found inmethod-gric generics for wicket 1.5 on wicketstuff but can not find one for wicket 1.4.x

Why does wicket use Serializable contracts in generics?

2011-03-29 Thread Pointbreak
For example in Session there is the method: public final M extends Serializable M getMetaData(final MetaDataKeyM key) This makes it seriously difficult to use this methods for retrieving vales that have e.g. a MetaDataKeyCollectionString, since Collection does not extend Serializable (although

Re: Why does wicket use Serializable contracts in generics?

2011-03-29 Thread Igor Vaynberg
thats there to give developers a better hint. i am not too opposed to removing it. feel free to file an rfe. -igor On Tue, Mar 29, 2011 at 3:08 AM, Pointbreak pointbreak+wicketst...@ml1.net wrote: For example in Session there is the method: public final M extends Serializable M

DropDownChoice and generics

2010-09-02 Thread Sigmar Muuga
Hello, the generics solution for the DropdownChoice is weird in my opinion. I want to write like this: ListGender genders = getGenderList(); DropdownChoicePerson new DropDownChoicePerson(fieldId, new PropertyModelPerson(currentPerson, gender), genders); But the compilation fails because

Re: DropDownChoice and generics

2010-09-02 Thread Wilhelmsen Tor Iver
ListGender genders = getGenderList(); DropdownChoicePerson new DropDownChoicePerson(fieldId, new PropertyModelPerson(currentPerson, gender), genders); The class type parameter for the dropdown and models there should be Gender: That the model delegates to a property in a Person object should

Re: DropDownChoice and generics

2010-09-02 Thread bht
, the generics solution for the DropdownChoice is weird in my opinion. I want to write like this: ListGender genders = getGenderList(); DropdownChoicePerson new DropDownChoicePerson(fieldId, new PropertyModelPerson(currentPerson, gender), genders); But the compilation fails because of the mismatch

Question about Wicket and generics

2010-08-27 Thread Mike Dee
Coming up to speed in Wicket and see some things that I don't know how to interpret regarding generics. First, I have a form subclass that looks like this: private class MyForm extends Form Eclipse shows the following warning: Form is a raw type. References to generic type FormT

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
-Wicket-and-generics-tp2341004p2341007.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 8:37 AM, Mike Dee mdichiapp...@cardeatech.com wrote: I'd like to try and understand this.  What could T possibly be? It would be whatever your form is editing. But isn't TextField implying text (or a string).  Would TextFieldInteger make sense (haven't tried it yet)?

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 8:40 AM, Mike Dee mdichiapp...@cardeatech.com wrote: Also noticed in prior messages with similar topic that someone suggested using Void (FormVoid).  Never knew there was a Void keyword (capital V). Is this a recommended technique for  Form (ie. FormVoid)? It's

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
-Wicket-and-generics-tp2341004p2341026.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
?  For example, picture a login screen that simply capture username and password strings. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341026.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Great, didn't know there was a built in LoginForm. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341060.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 11:41 AM, Mike Dee mdichiapp...@cardeatech.com wrote: In my experience, there are lots of other situations too.  For example, we have lots of forms for doing searches.  The form gathers the search criteria.  Maybe it would make sense to have a SearchFormCriteria class,

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
i have written plenty forms and about 99% of them have FormVoid. models on the form are just not that useful, its the fields that care. -igor On Fri, Aug 27, 2010 at 5:45 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 8:40 AM, Mike Dee mdichiapp...@cardeatech.com

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
just offering the other side of the coin...i didnt say we were going to yank the generics from the Form, chill :) -igor On Fri, Aug 27, 2010 at 8:38 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 11:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i have

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
be the model? How are others doing this? Mike -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341288.html Sent from the Wicket - User mailing list archive at Nabble.com

RE: Question about Wicket and generics

2010-08-27 Thread Stefan Lindner
@wicket.apache.org Betreff: Re: Question about Wicket and generics On Fri, Aug 27, 2010 at 11:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i have written plenty forms and about 99% of them have FormVoid. models on the form are just not that useful, its the fields  that care. That doesn't mean that's

RE: Question about Wicket and generics

2010-08-27 Thread Mike Dee
this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341500.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

ListChoice - generics for model defined wrong

2010-06-29 Thread Douglas Ferguson
I was just attempt to use the ListChoice and it seems to me that the constructor signatures are wrong. The model for this should be List? extends T not ListT, otherwise you can't select more than one item (T), which is the point.. D/

Re: ListChoice - generics for model defined wrong

2010-06-29 Thread James Carman
ListChoice doesn't allow you to choose multiple. You want ListMultipleChoice. On Tue, Jun 29, 2010 at 8:29 AM, Douglas Ferguson doug...@buzzstream.com wrote: I was just attempt to use the ListChoice and it seems to me that the constructor signatures are wrong. The model for this should be

Re: Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-28 Thread Igor Vaynberg
surely know, this book is based on Wicket 1.3, that does NOT use generics, while the current version is 1.4 and DOES use them (as will do the next ones). Put aside this page: https://cwiki.apache.org/WICKET/migrating-to-wicket-14.html#MigratingtoWicket1.4-Modelchanges I was unable to find

Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Alessandro Bottoni
Hi All, I'm new to Wicket and I'm studying it using Wicket in Action. As you surely know, this book is based on Wicket 1.3, that does NOT use generics, while the current version is 1.4 and DOES use them (as will do the next ones). Put aside this page: https://cwiki.apache.org/WICKET/migrating

Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Alessandro Bottoni
Hi All, I'm new to Wicket and I'm studying it with Wicket in Action. As you surely know, this book is based on Wicket 1.3, that does NOT use generics, while the current version is 1.4 and DOES use them (as will do the next ones). Put aside this page: https://cwiki.apache.org/WICKET/migrating

Re: Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-25 Thread Thomas Kappler
On 06/25/10 09:17, Alessandro Bottoni wrote: Hi All, I'm new to Wicket and I'm studying it using Wicket in Action. As you surely know, this book is based on Wicket 1.3, that does NOT use generics, while the current version is 1.4 and DOES use them (as will do the next ones). Put aside this page

Generics for datatable columns

2010-02-13 Thread Sam Barrow
this right (just add a generics wildcard)? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Generics

2010-01-25 Thread Sam Barrow
I've noticed in some places where generics wildcards may be useful that they are not used. For example, in IColumn. If I have a Type and a SubType that extends Type, I can't use IColumnType in a DataTableSubType. Is there any reason for this or was it just not implemented? Not the most necessary

Re: Generics

2010-01-25 Thread Pedro Santos
, listPropertyFromThatBean)) On Mon, Jan 25, 2010 at 12:29 PM, Sam Barrow s...@sambarrow.com wrote: I've noticed in some places where generics wildcards may be useful that they are not used. For example, in IColumn. If I have a Type and a SubType that extends Type, I can't use IColumnType in a DataTableSubType

Re: Generics

2010-01-25 Thread sam
That's exactly what I do now (wrapped model). Just wondering if there was a technical reason behind it. Sent via BlackBerry from T-Mobile -Original Message- From: Pedro Santos pedros...@gmail.com Date: Mon, 25 Jan 2010 13:03:16 To: users@wicket.apache.org Subject: Re: Generics

Re: Generics

2010-01-25 Thread Pedro Santos
now (wrapped model). Just wondering if there was a technical reason behind it. Sent via BlackBerry from T-Mobile -Original Message- From: Pedro Santos pedros...@gmail.com Date: Mon, 25 Jan 2010 13:03:16 To: users@wicket.apache.org Subject: Re: Generics Basically the list view

generics and models that take X as model object but return Y

2009-12-30 Thread Sam Zilverberg
What's the best practice when using generics with models that take some object but return another type of object? examples: When you have a collection and need to convert it to a list for listview purposes. When you have some object and you need a wrapping model that creates some string

Re: generics and models that take X as model object but return Y

2009-12-30 Thread Igor Vaynberg
() { delegate.detach(); } } -igor On Wed, Dec 30, 2009 at 5:23 AM, Sam Zilverberg samzilverb...@gmail.com wrote: What's the best practice when using generics with models that take some object but return another type of object? examples: When you have a collection and need to convert

Request for help with generics-related compiler warnings

2009-11-07 Thread Philip Johnson
Greetings, Wicket Wizards, I am updating a sample Wicket program from 1.3.6 to 1.4.3 and running into a few generics-related issues. I am hoping you folks can quickly set me straight. My code appears to run successfully and passes its JUnit tests, despite the warnings I would like to remove

Re: Request for help with generics-related compiler warnings

2009-11-07 Thread Ernesto Reinaldo Barreiro
. */ public String getAddress() { return address; } } } at least on my IDE Best, Ernesto On Sat, Nov 7, 2009 at 9:42 AM, Philip Johnson john...@hawaii.edu wrote: Greetings, Wicket Wizards, I am updating a sample Wicket program from 1.3.6 to 1.4.3 and running into a few generics-related

Re: Request for help with generics-related compiler warnings

2009-11-07 Thread Ernesto Reinaldo Barreiro
:42 AM, Philip Johnson john...@hawaii.edu wrote: Greetings, Wicket Wizards, I am updating a sample Wicket program from 1.3.6 to 1.4.3 and running into a few generics-related issues. I am hoping you folks can quickly set me straight. My code appears to run successfully and passes its JUnit

Re: Request for help with generics-related compiler warnings

2009-11-07 Thread PhilipJohnson
Thanks so much, both of you! Anyone have any ideas about the WicketTester code? Problem 3: WicketTester and generics. I clearly don't understand how to test with WicketTester. Take a look at lines 37-39 of TestListPage: http://code.google.com/p/ics-wicket-examples/source/browse/trunk

RE: inmethod datagrid and wicket 1.4 and generics

2009-10-13 Thread Stefan Lindner
. Oktober 2009 17:26 An: users@wicket.apache.org Cc: e...@shinsetsu.nl Betreff: Re: inmethod datagrid and wicket 1.4 and generics I think there is a datagrid project in wicket stuff jira. If you do any work (against current trunk - not 1.3) patch is always welcome. You can create a jira issue

Re: inmethod datagrid and wicket 1.4 and generics

2009-10-13 Thread Matej Knopp
way. Approx half of inmehtod grid is generic now. Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:matej.kn...@gmail.com] Gesendet: Montag, 12. Oktober 2009 17:26 An: users@wicket.apache.org Cc: e...@shinsetsu.nl Betreff: Re: inmethod datagrid and wicket 1.4 and generics

RE: inmethod datagrid and wicket 1.4 and generics

2009-10-13 Thread Stefan Lindner
-Ursprüngliche Nachricht- Von: Matej Knopp [mailto:matej.kn...@gmail.com] Gesendet: Dienstag, 13. Oktober 2009 12:08 An: users@wicket.apache.org Betreff: Re: inmethod datagrid and wicket 1.4 and generics Sure. If you have commit access to wicket stuff feel free to branch the trunk. -Matej On Tue

Re: AutoCompleteTextField Generics

2009-10-13 Thread Marcelo Fukushima
nope. No problem for me. Try pasting here the problematic code On Mon, Oct 12, 2009 at 10:50 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Has anybody else had problems with AutoCompleteTextField and generics. It almost seems like I'm dealing with an eclipse bug. But basically if I

inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Stefan Lindner
? Is it still under development? Does it support generics now? Does anybody use it togehter with wicket 1.4? Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Erik Post
since the end of last year. Is it compatible with wicket 1.4? Is it still under development? Does it support generics now? Does anybody use it togehter with wicket 1.4? Stefan - To unsubscribe, e-mail: users-unsubscr

AutoCompleteTextField Generics

2009-10-12 Thread Douglas Ferguson
Has anybody else had problems with AutoCompleteTextField and generics. It almost seems like I'm dealing with an eclipse bug. But basically if I call behavior.getChoices.add(xxx) it is always highlighted in red because, I am restricted by the model use T but the list wants ? extends T. D

Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Linda van der Pal
it support generics now? Does anybody use it togehter with wicket 1.4? Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Erik Post
since the end of last year. Is it compatible with wicket 1.4? Is it still under development? Does it support generics now? Does anybody use it togehter with wicket 1.4? Stefan - To unsubscribe, e-mail: users-unsubscr

RE: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Stefan Lindner
Thenk you all for your replies! I found a hand full of mailing list entrys with hints for patches to make some classes generic. Are there any attempts to integrate them into the current trunk? I think a generic IGridColumn would be very handy. Should I start doing it? Stefan

Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Matej Knopp
I think there is a datagrid project in wicket stuff jira. If you do any work (against current trunk - not 1.3) patch is always welcome. You can create a jira issue for it and attach it there. -Matej On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote: Thenk you all for

Re: Generics and SortableDataProvider

2009-10-06 Thread Sven Meier
Hi Jonny, yes, it works exactly like you described it. Sven jwray wrote: Hi Sven, Thanks for your reply. Since I sent the original question I ended up doing what you suggested and now I'm wondering why I ever used the id projection approach. Habit I guess, formed with previous frameworks.

Generics and SortableDataProvider

2009-10-05 Thread Jonny.Wray
Hi, Working on my first application using 1.4.x and generics and have a question regarding the use of SortableDataProvider. Within my extensions of this class I quite commonly obtain the id of an object within the iterator method and then load the object via a LoadableDetchableModel within

Re: Generics and SortableDataProvider

2009-10-05 Thread Sven Meier
required objects at once. Sven jonny.w...@fiveprime.com wrote: Hi, Working on my first application using 1.4.x and generics and have a question regarding the use of SortableDataProvider. Within my extensions of this class I quite commonly obtain the id of an object within the iterator method

Re: Generics and SortableDataProvider

2009-10-05 Thread jwray
your domain objects in the first place? They will be loaded anyway to be displayed on your component. So your approach triggers 1+n selects instead of 1 select for all required objects at once. Sven -- View this message in context: http://www.nabble.com/Generics

Panel not using generics

2009-09-09 Thread Kurt Zitze
hey, why does the panel is not using generics for type safety? regards -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

Re: Panel not using generics

2009-09-09 Thread Ernesto Reinaldo Barreiro
What's the meaning you want to attach to the missing generic parameter? Best, Ernesto On Wed, Sep 9, 2009 at 12:23 PM, Kurt Zitze g...@gmx.net wrote: hey, why does the panel is not using generics for type safety? regards -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla

Re: Panel not using generics

2009-09-09 Thread garz
i want the getModelObject() (which is in fact the getDefaultModelObject()) to return the actual type that i dont need to do unchecked casts. i'm just wondering, now that everything uses generics, why does the panel do not use generics? just want to understand the reason behind this. regards garz

RE: Panel not using generics

2009-09-09 Thread Stefan Lindner
: garz [mailto:g...@gmx.net] Gesendet: Mittwoch, 9. September 2009 13:24 An: users@wicket.apache.org Betreff: Re: Panel not using generics i want the getModelObject() (which is in fact the getDefaultModelObject()) to return the actual type that i dont need to do unchecked casts. i'm just wondering

Re: Panel not using generics

2009-09-09 Thread Ernesto Reinaldo Barreiro
unchecked casts. i'm just wondering, now that everything uses generics, why does the panel do not use generics? just want to understand the reason behind this. regards garz reiern70 wrote: What's the meaning you want to attach to the missing generic parameter? Best, Ernesto On Wed, Sep

RE: Panel not using generics

2009-09-09 Thread Craig McIlwee
: Wednesday, September 09, 2009 7:58 AM To: users@wicket.apache.org Subject: Re: Panel not using generics The main point I could object is that you might have panels that are not associated to a model... and then you will still have to pass a model object type to avoid unchecked warnings... I know I

Re: Wicket generics?

2009-06-13 Thread Martin Makundi
not need to declare your variables with the wildcards. On Fri, Jun 12, 2009 at 6:31 PM, Cristi Manolecristiman...@gmail.com wrote: declaration is not the problem. from what i remember from generics (I might be wrong), you're not allowed to instantiate generically. you have to tell the compiler

Re: Wicket generics?

2009-06-13 Thread James Carman
Manolecristiman...@gmail.com wrote: declaration is not the problem. from what i remember from generics (I might be wrong), you're not allowed to instantiate generically. you have to tell the compiler exactly what type you want. at runtime it has no idea about generics. On Sat, Jun 13, 2009 at 12:41 AM

Re: Wicket generics?

2009-06-13 Thread Martin Makundi
do not need to declare your variables with the wildcards. On Fri, Jun 12, 2009 at 6:31 PM, Cristi Manolecristiman...@gmail.com wrote: declaration is not the problem. from what i remember from generics (I might be wrong), you're not allowed to instantiate generically. you have to tell

Re: Wicket generics?

2009-06-13 Thread James Carman
On Sat, Jun 13, 2009 at 8:13 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! Yes.. this is true but not ideally consistent. More consistent would be DropDownChoice? extends BaseClass dropDown = new DropDownChoice? extends BaseClass(id); You can't instantiate with a wildcard

Re: Wicket generics?

2009-06-13 Thread Martin Makundi
DropDownChoice? extends BaseClass dropDown = new DropDownChoice? extends BaseClass(id); You can't instantiate with a wildcard type.  That's not allowed by the Java language. Ah yes... I'm getting confused myself. So the real problem is that I instantiate new DropDownChoiceBaseClass(id) but

Re: Wicket generics?

2009-06-13 Thread James Carman
On Sat, Jun 13, 2009 at 9:25 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: DropDownChoice? extends BaseClass dropDown = new DropDownChoice? extends BaseClass(id); You can't instantiate with a wildcard type.  That's not allowed by the Java language. Ah yes... I'm getting

Re: Wicket generics?

2009-06-13 Thread Martin Makundi
OK, my own fault: DropDownChoice? extends BaseClass ps = new DropDownChoiceBaseClass() so the variable type spoils it. ** Martin 2009/6/13 James Carman jcar...@carmanconsulting.com: On Sat, Jun 13, 2009 at 9:25 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: DropDownChoice?

Wicket generics?

2009-06-12 Thread Martin Makundi
I have casting problem: dropDown = new DropDownChoice? extends BaseClass(, new ChoiceRendererBaseClass(...)); dropDown.getChoiceRenderer().getDisplayValue(dropDown.getModelObject()); -- DOES NOT COMPILE Is this a wicket bug or bug in me? ** Martin

Re: Wicket generics?

2009-06-12 Thread Igor Vaynberg
new DropDownChoiceBaseClass ? -igor On Fri, Jun 12, 2009 at 6:06 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: I have casting problem: dropDown = new DropDownChoice? extends BaseClass(, new ChoiceRendererBaseClass(...));

Re: Wicket generics?

2009-06-12 Thread Martin Makundi
new DropDownChoiceBaseClass ? Maybe ... ** Martin On Fri, Jun 12, 2009 at 6:06 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: I have casting problem: dropDown = new DropDownChoice? extends BaseClass(, new ChoiceRendererBaseClass(...));

Re: Wicket generics?

2009-06-12 Thread James Carman
Just because the constructor is declared that way (with the ?) doesn't mean you have to declare your variables that way. On Jun 12, 2009 4:43 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: new DropDownChoiceBaseClass ? Maybe ... ** Martin On Fri, Jun 12, 2009 at 6:06 AM,

Re: Wicket generics?

2009-06-12 Thread Cristi Manole
declaration is not the problem. from what i remember from generics (I might be wrong), you're not allowed to instantiate generically. you have to tell the compiler exactly what type you want. at runtime it has no idea about generics. On Sat, Jun 13, 2009 at 12:41 AM, James Carman ja

Re: Wicket generics?

2009-06-12 Thread James Carman
But, the compiler only knows what you're allowed to do by the type of the variable. You do not need to declare your variables with the wildcards. On Fri, Jun 12, 2009 at 6:31 PM, Cristi Manolecristiman...@gmail.com wrote: declaration is not the problem. from what i remember from generics (I

Generics in components

2009-05-25 Thread Frank Tegtmeyer
Hi, I am still very very new to Java and Wicket of course too, so excuse me if this is a dumb question. I swiched my project to Wicket 1.4-rc4 now and got all these wonderful warnings about the Raw types of the components in my sources. Are there any examples that highlight the handling of the

Re: Generics in components

2009-05-25 Thread James Carman
On Mon, May 25, 2009 at 6:54 AM, Frank Tegtmeyer frank.tegtme...@online-systemhaus.com wrote: Hi, I am still very very new to Java and Wicket of course too, so excuse me if this is a dumb question. I swiched my project to Wicket 1.4-rc4 now and got all these wonderful warnings about the Raw

inmethod grid generics patch

2009-05-08 Thread Brill Pappin
according to this post; http://tinyurl.com/qlghyf the inmethod grid it he wicketstuff modules was to get generics. I'm finding the missing generics a real pain in the behind but I also have a recent checkout of the 1.4-SNAPSHOT of wicketstuff, and it does not yet have generics. Does

Re: inmethod grid generics patch

2009-05-08 Thread Matej Knopp
was to get generics. I'm finding the missing generics a real pain in the behind but I also have a recent checkout of the 1.4-SNAPSHOT of wicketstuff, and it does not yet have generics. Does anyone know if this component has been abandoned or not? If I have to I'll go an add the generics myself

Re: inmethod grid generics patch

2009-05-08 Thread Matej Knopp
, May 8, 2009 at 11:49 PM, Brill Pappin br...@pappin.ca wrote: according to this post; http://tinyurl.com/qlghyf the inmethod grid it he wicketstuff modules was to get generics. I'm finding the missing generics a real pain in the behind but I also have a recent checkout of the 1.4-SNAPSHOT

Re: inmethod grid generics patch

2009-05-08 Thread Brill Pappin
That would be great! If you need an area to focus on, it's the generics that type things like getSelectedItems() etc. and some of the other common overrides. - Brill Pappin On 8-May-09, at 5:57 PM, Matej Knopp wrote: Found the patch, will assign it to jira issue. And possibly apply

a question regarding generics

2009-05-02 Thread Eyal Golan
http://www.nabble.com/generics-to18083910.html#a18083910 . But I bit confused. As I understand, if I have a bean that will be used in a CompoundPropertyModel, then I should put this as the T parameter, right? If I don't use a special model or a type in that model, what should I put? 'Object'? It's

Generics question

2009-03-13 Thread Linda van der Pal
This is not really Wicket related, but I don't quite know where else to ask this. The question is: why won't this compile? // I define a model IModelListSubgenre subgenreModel = new AbstractReadOnlyModelListSubgenre() { ... } // Here I try to use the model FieldSwitchPanel subgenrefield =

Re: Generics question

2009-03-13 Thread Erik van Oosten
Hi Linda, You are assuming that IModelListSubgenre is a subtype of IModelList? extends DomainObject In java this is not the case (even if Subgenre extends DomainObject). You'll need an explicit cast to make this work: IModelList? extends DomainObject castedModel = (IModelList?

  1   2   3   4   5   6   7   >