Wicket and the Generics Battle (and a bit more)

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Wicket and the Generics Battle (and a bit more) - Presentation Transcript

    1. Wicket 1.4(generics)/1.5 Johan Compagner
    2. Wicket and Generics Last year on stage the first big cut of generics was committed
    3. Wicket and Generics What did happen?
    4. Wicket and Generics Hell broke loooose...
    5. 1.4 Generics Who uses 1.4 already? Who does like generics in wicket? Any suggestions for improvements?
    6. My suggestions (to Sun) The class definition public class TextField <T> extends AbstractTextComponent<T> The constructor public TextField( final String id, IModel<T> model, Class<T> type)
    7. My suggestions (to Sun) TextField<Integer> tf = new TextField<Integer> ( &quot;id&quot; , new Model<Integer>(), Integer. class ); Integer value = tf.getModelObject();
    8. My suggestions (to Sun) TextField tf = new TextField( &quot;id&quot; , new Model<Integer>()) ; Integer value = tf.getModelObject() ; 1> Only declare it on one side 2> Better type inference based on what it gets (so from the Model) 3> No erasure, so be able to get the type from the instance.
    9. My suggestions (to Sun) The Link class Some use it with an object others dont Link lnk = new Link(); Better type inference : No IModel default to void Or public abstract class Link<T default Void> extends AbstractLink
    10. One tip for 1.4 Use Page.getPageReference() And PageReferene.getPage()
    11. 1.5 We will not break the world (Matej told me that I had to say that) But loads of internals will be rewritten.
    12. 1.5 Remove getDefaultModel() (introduced by generics 1.4) Auto detach of models that are held by any field.(maybe 1.4) Improved Markup Inheritance “ UrlBuilder”
    13. 1.5... Any key things that should be done?

    + jcompagnerjcompagner, 10 months ago

    custom

    540 views, 0 favs, 0 embeds more stats

    What happened when generics was applied to Wicket.. more

    More info about this presentation

    © All Rights Reserved

    • Total Views 540
      • 540 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 11
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories