I am trying to move from java to scala . I am basically a web developer where i use zkoss, vaadin as my framework. Do scala has widget based framework.Fully ajax based? I haven't tried lift and play need some advice is that fully ajax based?
The Vaadin framework can be used with Scala. There is even a project called Scaladin to help you with that. Since you already know it, I suggest you try learning scala with that framework. After you have a good understand of scala you should have a better base for what framework to choose in case you want to leave Vaadin.
Here are some resources:
Scala and Vaadin HOWTO
Scaladin wiki
Develop Vaadin apps with Scala
Try Scala+GWT with one of web frameworks (Lift, Play and etc.)
Related
I am coming from the Java EE world. New to scala and Play. Looking at some sample applications. I see scala code in html files. I am able to understand the framework but I could not get scala.html files. Do I need to learn scala to use Play framework. Any work around.
You can use Java version of Play! without any scala skills. If you don't want to use scala.html templates you can get some module providing Java templates for Play20. Modules list can be found here.
Some examples with samples:
Groovy Template Engine for Play Framework 2.0
A full feaured Java-based template engine for Play2
I found an old question "How to use the Play framework to develop a web service"
I'm trying to use Play 2.0 and Scala to do the same. Will everything still be the same on Play 2.0 with the exception of moving from Groovy templates to Scala templates?
A new example will be greatly appreciated.
There are lots and lots of changes in Play 2.0. The internal core API is in Scala, with the Java code being a wrapper.
There are three examples in the Play Framework code:
https://github.com/playframework/Play20/tree/master/samples
This may help you see what has changed between versions.
I have been reading Groovy, and I'm half way down. I started to love groovy a lot, and apply it to solve some simple real world problem; As I love building web applications, i would go for reading Grails webframework as I know Groovy.
But If I want to build desktop-applications, which framework will be the good choice? I wanted to create a simple IDE for Groovy language(or say for any language), that can do syntax highlighting and other kind of stuffs.As mentioned earlier, I love Groovy a lot when compared to Java; And Griffon is a framework that is built on Groovy, mainly for creating Desktop-appplications. But I didn't find enough resources for Griffon!
Is Griffon is the good framework for those people who know and love Groovy(as I do)? Can I choose it for building a simple IDE as mentioned above? Or there are any other framework that is built on Groovy, which is good when compare to Griffon?
The problem I have found with Griffon is that a number of the plugins are a bit out of date in that they aren't using the latest UI libraries (e.g. Flamingo, Substance, and SwingXBuilder, altho I think this has just been upgraded to use SwingX 1.6).
I am using SwingBuilder directly, with a few extensions I have added via my own builder implementation:
http://code.google.com/p/ousia
If you want to build an IDE I can recommend the RSyntaxTextArea component, as it has great support for many programming languages and is pretty simple to use:
http://fifesoft.com/rsyntaxtextarea/
Griffon is a fairly good MVC based framework, and is built on top of Java Swing. So it can do anything that Swing can do.
To be honest I found Griffon a little too much for relatively simple UIs, so I usually write my apps in Groovy using SwingBuilder directly.
If you really want to get into Griffon I recommend getting the Book
Griffon in Action It seems to be the only place where everything is documented, although the web page is coming along and improving all the time.
There are definitely various resources out there that will let you learn more about Griffon, for example the Griffon Guide -> http://dist.codehaus.org/griffon/guide/index.html
"Griffon in Action" is another popular resource which you can buy in electronic form today; being the author of both makes me a little biased ;-)
You can keep up to date on Griffon news by following the mailing lists and #theaviary on Twitter
I am a newbie to AspectJ and to learn it I am trying to search for some open-source simple applications that use AspectJ for the web but I am unable to retrieve any. I am trying to build a filter through this technology but I am not able to find any working examples that are suited in particular to Eclipse/Tomcat.
You can get (many variations) of a simple e-commerce application built using Spring+AspectJ from http://manning.com/laddad2 (click on "Source Code" link).
Not sure they're specifically targeted at Tomcat, but the examples at
Eclipse AspectJ Sample code ought to give you a start.
Is it possible to develop an application in groovy using GWT components?
Luis
If you want to use Groovy on the server-side and GWT for the UI, that is certainly possible. You can use Grails (a Groovy web framework on the server), and the Grails GWT plugin to help you integrate GWT with this framework.
I don't think so, because the GWT compiler is basically a Java to JavaScript source compiler (it would be possible if the GWT compiler needed Java bytecode). You can use Groovy on the server side though.
Right now you cant use Groovy on the client side. One big reason is that Groovy relies a lot on introspection, and this is not available on GWT.
I have also wondered this, as it would be very nice. Vaadin essentially does this and you can use their plugin: http://grails.org/plugin/vaadin
Doing it this model, though, it is compiling components into Javascript and delivering from the server. But unlike GWT components, these are calling back to the server every time you touch the API (though of course with Vaadin you can use GWT components as well).