Updated Play framework documentation

112 views
Skip to first unread message

rktoomey

unread,
Apr 16, 2012, 10:40:23 AM4/16/12
to scala-salat
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/com/novus/salat/dao/ModelCompanion.scala
https://github.com/novus/salat/blob/master/salat-core/src/test/scala/com/novus/salat/test/dao/ModelCompanionSpec.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

Leon Radley

unread,
Apr 16, 2012, 10:50:46 AM4/16/12
to scala...@googlegroups.com
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...

Wes Freeman

unread,
Apr 16, 2012, 11:10:19 AM4/16/12
to scala...@googlegroups.com
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.

Leon Radley

unread,
Apr 16, 2012, 1:45:38 PM4/16/12
to scala...@googlegroups.com
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.

rose katherine toomey

unread,
Apr 16, 2012, 1:46:47 PM4/16/12
to scala...@googlegroups.com
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.

Leon Radley

unread,
Apr 16, 2012, 2:34:42 PM4/16/12
to scala...@googlegroups.com
the new code doesn't seem to be in the maven repo.
Have you published the code?


On Monday, April 16, 2012 4:40:23 PM UTC+2, rktoomey wrote:
On Monday, April 16, 2012 4:40:23 PM UTC+2, rktoomey wrote:
On Monday, April 16, 2012 4:40:23 PM UTC+2, rktoomey wrote:

rose katherine toomey

unread,
Apr 16, 2012, 2:49:18 PM4/16/12
to scala...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages