I use mixed Java/Scala code for pages, components and services without any
issues.
To pass collections you need to either convert them to Java collections
(calling .asJava), or contribute to type coercer:

def createTapestryCoercions(configuration:
org.apache.tapestry5.ioc.Configuration[org.apache.tapestry5.ioc.services.CoercionTuple[_,
java.lang.Iterable[_]]]) = {
  val coercion = new Coercion[Iterable[AnyRef], java.lang.Iterable[_]] () {
    def coerce(arg: Iterable[AnyRef]) = arg.asJava
  }

  configuration.add(new CoercionTuple(classOf[Iterable[AnyRef]],
classOf[java.lang.Iterable[_]], coercion))
}



On Fri, Dec 16, 2016 at 4:53 PM, Qbyte Consulting <qbyteconsult...@gmail.com
> wrote:

> Hi,
>
> Has anyone implemented a T5.4 site with Scala, or are there any kickstart
> type Scala projects out there for T5.4 please? I'd like to see how it's
> done.
>
> John
>



-- 
Ilya Obshadko

Reply via email to