You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by fa...@linagora.com on 2009/01/07 23:17:13 UTC

Tapestry 5 + Scala : an hello world example

Hello,

I'm building a toy application to see how Scala and Tapestry 5 get
together. The first step was to translate the quickstart application into
Scala (that was a little first step ;).

Scala is a functional/object oriented language that runs on the JVM, and
which I appreciate a lot more than Java (more expressive, and statically
typed, and yes it was obvious that I don't spend my spare time on things
that I dislike :). Info about the language may be found here:
http://scala-lang.org

I will try to extend the application in the next weeks, and see if I
encounter major problems or if everything goes for the best.

The source code is available on github: http://github.com/fanf/scala-t5-blog/
You will find more information about how to get the code on my blog:
http://fanf42.blogspot.com/ and more precisely:
http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html

Enjoy !

Francois Armand


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5 + Scala : an hello world example

Posted by Andreas Andreou <an...@di.uoa.gr>.
    <dependencies>
        <dependency>
            <groupId>org.codehaus.groovy.maven.runtime</groupId>
            <artifactId>gmaven-runtime-default</artifactId>
            <version>1.0-rc-3</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.groovy.maven</groupId>
                <artifactId>gmaven-plugin</artifactId>
                <version>1.0-rc-3</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generateStubs</goal>
                            <goal>compile</goal>
                            <goal>generateTestStubs</goal>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

On Thu, Jan 8, 2009 at 8:21 AM, Angelo Chen <an...@yahoo.com.hk> wrote:
>
> Hi,
>
> As I understand Scala needs only this dependency:
>
>  <dependency>
>      <groupId>org.scala-lang</groupId>
>      <artifactId>scala-library</artifactId>
>      <version>2.7.3.RC1</version>
>    </dependency>
>
> how about Groovy?
>
>
> Howard Lewis Ship wrote:
>>
>> Pretty much the same story for Groovy.  There are still some issues
>> related to access to private instance variables and introduced base
>> classes.
>>
>>
>> On Wed, Jan 7, 2009 at 2:43 PM, Chris Lewis <ch...@bellsouth.net>
>> wrote:
>>> wow.
>>>
>>> Let me get this straight - to get scala to work with T5, all you did was
>>> use scala source files and the scala maven plugin??? That's it!?!
>>>
>>> If that's all it takes I guess the reason is that scala files compile
>>> directly to normal java classes, and that's all done by maven. Man
>>> that's awesome!
>>>
>>> farmand@linagora.com wrote:
>>>> Hello,
>>>>
>>>> I'm building a toy application to see how Scala and Tapestry 5 get
>>>> together. The first step was to translate the quickstart application
>>>> into
>>>> Scala (that was a little first step ;).
>>>>
>>>> Scala is a functional/object oriented language that runs on the JVM, and
>>>> which I appreciate a lot more than Java (more expressive, and statically
>>>> typed, and yes it was obvious that I don't spend my spare time on things
>>>> that I dislike :). Info about the language may be found here:
>>>> http://scala-lang.org
>>>>
>>>> I will try to extend the application in the next weeks, and see if I
>>>> encounter major problems or if everything goes for the best.
>>>>
>>>> The source code is available on github:
>>>> http://github.com/fanf/scala-t5-blog/
>>>> You will find more information about how to get the code on my blog:
>>>> http://fanf42.blogspot.com/ and more precisely:
>>>> http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html
>>>>
>>>> Enjoy !
>>>>
>>>> Francois Armand
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>>
>>> --
>>> http://thegodcode.net
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Tapestry-5-%2B-Scala-%3A-an-hello-world-example-tp21341625p21346502.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5 + Scala : an hello world example

Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi,

As I understand Scala needs only this dependency:

 <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-library</artifactId>
      <version>2.7.3.RC1</version>
    </dependency>
 
how about Groovy?


Howard Lewis Ship wrote:
> 
> Pretty much the same story for Groovy.  There are still some issues
> related to access to private instance variables and introduced base
> classes.
> 
> 
> On Wed, Jan 7, 2009 at 2:43 PM, Chris Lewis <ch...@bellsouth.net>
> wrote:
>> wow.
>>
>> Let me get this straight - to get scala to work with T5, all you did was
>> use scala source files and the scala maven plugin??? That's it!?!
>>
>> If that's all it takes I guess the reason is that scala files compile
>> directly to normal java classes, and that's all done by maven. Man
>> that's awesome!
>>
>> farmand@linagora.com wrote:
>>> Hello,
>>>
>>> I'm building a toy application to see how Scala and Tapestry 5 get
>>> together. The first step was to translate the quickstart application
>>> into
>>> Scala (that was a little first step ;).
>>>
>>> Scala is a functional/object oriented language that runs on the JVM, and
>>> which I appreciate a lot more than Java (more expressive, and statically
>>> typed, and yes it was obvious that I don't spend my spare time on things
>>> that I dislike :). Info about the language may be found here:
>>> http://scala-lang.org
>>>
>>> I will try to extend the application in the next weeks, and see if I
>>> encounter major problems or if everything goes for the best.
>>>
>>> The source code is available on github:
>>> http://github.com/fanf/scala-t5-blog/
>>> You will find more information about how to get the code on my blog:
>>> http://fanf42.blogspot.com/ and more precisely:
>>> http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html
>>>
>>> Enjoy !
>>>
>>> Francois Armand
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
>> --
>> http://thegodcode.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tapestry-5-%2B-Scala-%3A-an-hello-world-example-tp21341625p21346502.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5 + Scala : an hello world example

Posted by Howard Lewis Ship <hl...@gmail.com>.
Pretty much the same story for Groovy.  There are still some issues
related to access to private instance variables and introduced base
classes.


On Wed, Jan 7, 2009 at 2:43 PM, Chris Lewis <ch...@bellsouth.net> wrote:
> wow.
>
> Let me get this straight - to get scala to work with T5, all you did was
> use scala source files and the scala maven plugin??? That's it!?!
>
> If that's all it takes I guess the reason is that scala files compile
> directly to normal java classes, and that's all done by maven. Man
> that's awesome!
>
> farmand@linagora.com wrote:
>> Hello,
>>
>> I'm building a toy application to see how Scala and Tapestry 5 get
>> together. The first step was to translate the quickstart application into
>> Scala (that was a little first step ;).
>>
>> Scala is a functional/object oriented language that runs on the JVM, and
>> which I appreciate a lot more than Java (more expressive, and statically
>> typed, and yes it was obvious that I don't spend my spare time on things
>> that I dislike :). Info about the language may be found here:
>> http://scala-lang.org
>>
>> I will try to extend the application in the next weeks, and see if I
>> encounter major problems or if everything goes for the best.
>>
>> The source code is available on github: http://github.com/fanf/scala-t5-blog/
>> You will find more information about how to get the code on my blog:
>> http://fanf42.blogspot.com/ and more precisely:
>> http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html
>>
>> Enjoy !
>>
>> Francois Armand
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> --
> http://thegodcode.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5 + Scala : an hello world example

Posted by Chris Lewis <ch...@bellsouth.net>.
wow.

Let me get this straight - to get scala to work with T5, all you did was
use scala source files and the scala maven plugin??? That's it!?!

If that's all it takes I guess the reason is that scala files compile
directly to normal java classes, and that's all done by maven. Man
that's awesome!

farmand@linagora.com wrote:
> Hello,
>
> I'm building a toy application to see how Scala and Tapestry 5 get
> together. The first step was to translate the quickstart application into
> Scala (that was a little first step ;).
>
> Scala is a functional/object oriented language that runs on the JVM, and
> which I appreciate a lot more than Java (more expressive, and statically
> typed, and yes it was obvious that I don't spend my spare time on things
> that I dislike :). Info about the language may be found here:
> http://scala-lang.org
>
> I will try to extend the application in the next weeks, and see if I
> encounter major problems or if everything goes for the best.
>
> The source code is available on github: http://github.com/fanf/scala-t5-blog/
> You will find more information about how to get the code on my blog:
> http://fanf42.blogspot.com/ and more precisely:
> http://fanf42.blogspot.com/2009/01/tapestry-5-with-scala-get-code.html
>
> Enjoy !
>
> Francois Armand
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>   

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org