Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Updated Play framework documentation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rktoomey  
View profile  
 More options Apr 16 2012, 10:40 am
From: rktoomey <rktoo...@gmail.com>
Date: Mon, 16 Apr 2012 07:40:23 -0700 (PDT)
Local: Mon, Apr 16 2012 10:40 am
Subject: Updated Play framework documentation
I just wanted to thank everyone who has been posting about Play 2.0
framework support for Salat.  Your help is invaluable!

I've updated the documentation on the wiki from 1.2 to 2.0:
https://github.com/novus/salat/wiki/SalatWithPlay

In addition, last night I created a trait for your model companion
object so that you have easy access to all the DAO methods.  Since I
don't know what's idiomatic to Play and what's not, I need some help
testing and adapting this trait.  In addition, I am hoping it can fix
some stubborn class cast exceptions people are getting when Play
reloads the view.

If you're interested in helping out, please review the section on
ModelCompanion on the updated wiki link, and look over the code and
the spec:
https://github.com/novus/salat/blob/master/salat-core/src/main/scala/...
https://github.com/novus/salat/blob/master/salat-core/src/test/scala/...

Then update to the latest 0.0.8-SNAPSHOT and give it a try.

Please let me know how I can improve ModelCompanion to make more
useful tools for people using Play 2.0.

Thanks,
Rose


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leon Radley  
View profile  
 More options Apr 16 2012, 10:50 am
From: Leon Radley <l...@radley.se>
Date: Mon, 16 Apr 2012 07:50:46 -0700 (PDT)
Local: Mon, Apr 16 2012 10:50 am
Subject: Re: Updated Play framework documentation

Great work!

I'll have a try converting the salat plugin to use the new traits instead
and see if i still get the problems with the class loader.

Should i use a custom context, that's the big question...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wes Freeman  
View profile  
 More options Apr 16 2012, 11:10 am
From: Wes Freeman <freeman....@gmail.com>
Date: Mon, 16 Apr 2012 11:10:19 -0400
Local: Mon, Apr 16 2012 11:10 am
Subject: Re: [salat] Re: Updated Play framework documentation

Thanks for working on this, Rose and Leon. It would be great to have a
fix/workaround on the Salat side, because I have a feeling Play will be a
bit slower moving. I'd like to help out, too, but since I'm using the
plugin it might be somewhat difficult to switch to using straight
Salat--can you comment on that Leon? What would I do to use the latest
snapshot?

I have a feeling Salat will experience a nice adoption rate because of Play
2.0, if it's a solid choice compared to Morphia/others.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leon Radley  
View profile  
 More options Apr 16 2012, 1:45 pm
From: Leon Radley <l...@radley.se>
Date: Mon, 16 Apr 2012 10:45:38 -0700 (PDT)
Local: Mon, Apr 16 2012 1:45 pm
Subject: Re: [salat] Re: Updated Play framework documentation

I'm going to do some tests and see if I get the class loader errors. and if
not, I'll probably update to wiki / plugin to use this new way of working,
since it's more in tune with how the anorm plugin looks.

I'll post back here as soon as I've got some new info.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rose katherine toomey  
View profile  
 More options Apr 16 2012, 1:46 pm
From: rose katherine toomey <rktoo...@gmail.com>
Date: Mon, 16 Apr 2012 13:46:47 -0400
Local: Mon, Apr 16 2012 1:46 pm
Subject: Re: [salat] Re: Updated Play framework documentation
Thanks, Leon!  I'm happy to make any changes or add any methods to the
companion object trait to bring it more into line with idiomatic Play
usage.

On 16 April 2012 13:45, Leon Radley <l...@radley.se> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leon Radley  
View profile  
 More options Apr 16 2012, 2:34 pm
From: Leon Radley <l...@radley.se>
Date: Mon, 16 Apr 2012 11:34:42 -0700 (PDT)
Local: Mon, Apr 16 2012 2:34 pm
Subject: Re: Updated Play framework documentation

the new code doesn't seem to be in the maven repo.
Have you published the code?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rose katherine toomey  
View profile  
 More options Apr 16 2012, 2:49 pm
From: rose katherine toomey <rktoo...@gmail.com>
Date: Mon, 16 Apr 2012 14:49:18 -0400
Local: Mon, Apr 16 2012 2:49 pm
Subject: Re: [salat] Re: Updated Play framework documentation
It's in repo.novus.com -
http://repo.novus.com/snapshots/com/novus/salat-core_2.9.1/0.0.8-SNAP...

On 16 April 2012 14:34, Leon Radley <l...@radley.se> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karim Heraud  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 4:47 am
From: Karim Heraud <kher...@gmail.com>
Date: Wed, 27 Jun 2012 01:47:41 -0700 (PDT)
Local: Wed, Jun 27 2012 4:47 am
Subject: Re: [salat] Re: Updated Play framework documentation

Hi all !

Thanks to Leon's work the ClassCastException issue can now be solved.

The explanation:

Every hot recompilation leads to classloader replacement (only in Play2 dev
mode). The problem is that, after that, the context is linked to the wrong
classloader... which leads to this ClassCastException on your models.
To solve this problem, you need to force the context to be rebuilt with the
model classes. To do so you have to define a custom context IN YOUR app.
The default context provided with salat imports won't be recompiled in
play2 dev mode. In addition, in leon's plugin former releases (before
1.0.6) the context included in the plugin wasn't recompiled.

Defining your custom context in you app permits to have hot rebuild without
the ClassCastException issue. This solution works with Play2 with or
without leon's plugin.

I don't know why but with salat versions < 0.0.8 this solution wasn't
working. I had some problems with 0.0.8-SNAPSHOT also...

https://github.com/leon/play-salat/issues/13

Thanks again for your work !

Kheraud

Le lundi 16 avril 2012 20:49:18 UTC+2, rktoomey a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »