Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 13. How Do I...? > How do I use Groovy with JSF?

How do I use Groovy with JSF?

Groovy (http://groovy.codehaus.org), inspired by Ruby, Smalltalk, and Python, is a another popular programming language for the Java Virtual Machine. Groovy is dynamically typed, and Groovy code can be more concise than the equivalent Java code because you can omit types of variables and parameters.

Almost any Java code is legal Groovy. That makes it simple to get started with Groovy in your JSF applications: Change the suffix of your code from .java to .groovy, and use the Groovy compiler to compile your Groovy code to a .class file. JSF deals in .class files, so it doesn’t know, or care, that you are using Groovy to generate them.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial