This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object Application extends Controller { | |
| val helloForm = Form( | |
| of( | |
| "name" -> nonEmptyText, | |
| "repeat" -> number(min = 1, max = 100), | |
| "color" -> optional(text) | |
| ) | |
| ) | |
| // | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://github.com/cbeams/hello-spring-scala/blob/master/src/main/scala/com/vmware/hello/HomeController.scala | |
| import scala.collection._ | |
| @Controller | |
| class HomeController { | |
| val env = new CloudEnvironment | |
| @Autowired var dataSource: DataSource = null | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // source: https://github.com/SpringSource/html5expense/blob/master/client/www/controller.js | |
| document.addEventListener('deviceready', onDeviceReady, false); | |
| function onDeviceReady() { | |
| pictureSource = navigator.camera.PictureSourceType; | |
| destinationType = navigator.camera.DestinationType; | |
| ... | |
| } |