Wrong usage of #field in yabe tutorial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
New
|
Undecided
|
Unassigned |
Bug Description
Based on http://
In guide9 of the tutorial is an bug in the form.html.
The field in the form.html will not be marked in case of an error.
The reason seems to be that it must be ${errors.
the field is defined at title. But then the whole concept of the field-tag is broken.
So I wonder if this could be a better solution:
<p>
#{field 'post.content'}
<textarea name="content"
#{/field}
</p>
Seems to work too, you only have to set name="content", otherwise the
action can't be called correctly.
Is this the optimum or is there a more elegant way?