I want to make various specific input fields and I followed this tutorial.
I’m using Play 2 with Java in Eclipse.
The problem I’m facing is this line :
@implicitField = @{ FieldConstructor(myFieldConstructorTemplate.f) }
- If I define it oustide my template (outside
@main("Title"){}), It can’t findFieldConstructor. - If I define it inside my template,
@implicitFieldgenerate a compilation error :
not found: value implicitField.
How can I do?
I’d prefer to define a package since I will have many inputs (text, radio, checkboxes, etc). I like how it has been done here but I have no idea how to make multiple helpers like that that would be automatically used in my templates.
Thank you for your help, I appreciate!
That’s quite common … mistake 🙂 you need to import helper package first in your template: