This page is no longer maintained — Please continue to the home page at

Fwd: Re: Using Scala Managed Bean with JSF

No replies
Cay Horstmann
Joined: 2009-09-04,
User offline. Last seen 42 years 45 weeks ago.

On Tue, Sep 13, 2011 at 3:11 AM, Lars Hupel <hupel [at] in [dot] tum [dot] de> wrote:
>       <managed-bean>
>               <managed-bean-name>jcoe.bookapp.bookController</managed-bean-name>
>               <managed-bean-class>BookController</managed-bean-class>
>               <managed-bean-scope>session</managed-bean-scope>
>       </managed-bean>

Are you sure that you want your bean name prefixed, and not the bean class?

 Don't use faces-config.xml--it's no longer necessary with JSF 2.0.

Managed beans work fine when written in Scala.

But be careful with EJB session beans--you need to annotate them as @LocalBean because the scala.scalaObject trait confuses the app server.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland