Frühjahr Thymeleaf + Textarea

Ich erstellte Formular mit einer Texteingabe und einer textarea. Die Eingabe von text funktioniert gut, aber die textarea gar nicht angezeigt:

<div id="news" th:fragment="admin_panel">
    <form method="POST" th:action="@{/addNews}" th:object="${news}" id="myform">
        Tytuł:
        <input type="text" th:field="*{title}"/>
        <input type="submit" value="Wstaw"/>
    </form>
    <textarea name="news_content" rows="20" cols="80" th:field="${news.content}" form="myform">
        ...
    </textarea>
</div>

Wenn ich löschen th:field die textarea angezeigt wird und wenn ich th:value statt th:field es angezeigt, auch, aber nicht speichern den geschriebenen text zu news.Inhalte (news.Titel wird gespeichert ok).

Habe ich keine Idee... ich habe gelesen, thymeleaf Referenzen, kann aber nicht beantworten, also bitte Hilfe, gute Leute!

InformationsquelleAutor Bambelal | 2016-05-11
Schreibe einen Kommentar