Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For those interested in looking at code, I <a href="http://code.google.com/p/perfbench/" rel="noreferrer">re-implemented</a> the Seam "Hotel Booking" demo in Scala + Wicket here: <a href="http://code.google.com/p/perfbench/source/browse/trunk/perfbench/swicket-jpa/" rel="noreferrer">Browse</a> | <a href="http://perfbench.googlecode.com/svn/trunk/perfbench/swicket-jpa/" rel="noreferrer">SVN</a> - the Java + Wicket version is here: <a href="http://code.google.com/p/perfbench/source/browse/trunk/perfbench/wicket-jpa/" rel="noreferrer">Browse</a> | <a href="http://perfbench.googlecode.com/svn/trunk/perfbench/wicket-jpa/" rel="noreferrer">SVN</a></p> <p>I used the (not yet final) Scala 2.8 and the NetBeans plugin. Was meaning to blog in detail about it (there's even a Groovy + Wicket implementation in place) but a few high-level impressions below; as an example, here's the same UI code in <a href="http://code.google.com/p/perfbench/source/browse/trunk/perfbench/wicket-jpa/src/main/java/wicketjpa/wicket/BookPage.java" rel="noreferrer">Java</a> | <a href="http://code.google.com/p/perfbench/source/browse/trunk/perfbench/swicket-jpa/src/main/scala/swicketjpa/wicket/BookPage.scala" rel="noreferrer">Scala</a>. Observations:</p> <ul> <li>certainly a lot less boilerplate and less 'noise'</li> <li>Scala feels like a very good fit for Wicket when it comes to nesting components</li> <li>for e.g. less work / lines of code to define inner classes / constructors, so can do it mostly in-line and keep nesting without much clutter</li> <li>and at the same time override framework methods as one-liners. nice !</li> <li>Scala seemed to work well with Wicket Generics, compiler seemed to be a lot more stricter at times, maybe this is a good thing. NetBeans plugin helps, but still buggy and slow at times.</li> <li>Not a very complex app, so did not get a chance to apply closures and FP much</li> <li>There are some gotchas you need to be aware of like this: <a href="http://stubbisms.wordpress.com/2009/02/18/fighting-scala-scala-to-java-list-conversion/" rel="noreferrer">Fighting Scala – Scala to Java List Conversion</a> - for the time being I managed using Java collections for domain object properties.</li> </ul> <p>Haven't run a performance test / comparison yet. Stay tuned :) Do let me know if there's anything you want to know when I get around to posting a detailed blog entry on this. Oh and if you get a chance to look through the code and let me know what can be improved, that would be great !</p> <p>I haven't looked at Lift yet but here's a blog post that may help the OP: <a href="http://www.dzone.com/links/lift_from_a_wicket_developers_perspective.html" rel="noreferrer">Lift from a Wicket Developer's Perspective</a></p> <p>Have to say that I would choose Scala over Groovy by a mile if mixing with Wicket. The "organize imports" IDE feature itself settles the question. The new Groovy inner class support has some gotchas that seriously get in the way when using Wicket. Also experienced some problems like groovy.lang.Reference not Serializable etc.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload