title: Strongly typed form fields in Play Framework views
body: <p>We have to use the property name as a string to render an HTML field in Play Framework views:</p>
  
  <p>Scala:</p>
  
  <pre><code>case class MyClass(myField: Int)
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@(form: Form[MyClass])
  ...
  @helper.inputText(form("myField"), '_label -&gt; "Field Title")
  </code></pre>
  
  <p>This is not <strong>strongly typed</strong>!</p>
  
  <p>So Is there any way to mention field names in a strongly typed manner? 
  like this:</p>
  
  <pre><code>@helper.inputText(form(model =&gt; model.myField), '_label -&gt; "Field Title")
  </code></pre>
  
  <p>I'm sure that this is possible in Scala but fortunately we have macros and such code can be implemented without any runtime overhead.</p>