Soumettre la recherche
Mettre en ligne
Thymeleafでハマったこと
•
Télécharger en tant que PPT, PDF
•
4 j'aime
•
9,629 vues
eiryu
Suivre
ビール片手にLT&納涼会でのLT資料
Lire moins
Lire la suite
Technologie
Actualités & Politique
Signaler
Partager
Signaler
Partager
1 sur 8
Télécharger maintenant
Recommandé
Modals ability possibility
Modals ability possibility
Noelia Contreras
Adverbs of-frequency
Adverbs of-frequency
Nicole Guaico Sanz
Noun clauses
Noun clauses
thisisme19
Simple present tense
Simple present tense
Abeer Khatib
Simple present tense
Simple present tense
klaa120722
Past tenses: simple, continuous and perfect
Past tenses: simple, continuous and perfect
Angel Ingenio
Must, must not, have to, don't have to, can, can't
Must, must not, have to, don't have to, can, can't
Renata Tonasso
Presentation About Present Simple
Presentation About Present Simple
ahmedyousri
Recommandé
Modals ability possibility
Modals ability possibility
Noelia Contreras
Adverbs of-frequency
Adverbs of-frequency
Nicole Guaico Sanz
Noun clauses
Noun clauses
thisisme19
Simple present tense
Simple present tense
Abeer Khatib
Simple present tense
Simple present tense
klaa120722
Past tenses: simple, continuous and perfect
Past tenses: simple, continuous and perfect
Angel Ingenio
Must, must not, have to, don't have to, can, can't
Must, must not, have to, don't have to, can, can't
Renata Tonasso
Presentation About Present Simple
Presentation About Present Simple
ahmedyousri
Past simple
Past simple
Diego Arenas
Present Perfect Tense
Present Perfect Tense
Iin Hermiyanto
13262988 powerpoint present-continuous
13262988 powerpoint present-continuous
sergiohuertatrujillo
Simple Present VS Present Continuous Tense
Simple Present VS Present Continuous Tense
Genevie Manocan
Present Continous
Present Continous
John Rios
Power point
Power point
mgabyruiz
Wish + past
Wish + past
dorielena30
LÍ THUYẾT+BÀI TẬP QUÁ KHỨ ĐƠN
LÍ THUYẾT+BÀI TẬP QUÁ KHỨ ĐƠN
Duy Anh Nguyễn
DAILY ROUTINES
DAILY ROUTINES
pablojgd
Used To & Would
Used To & Would
monixamp
Negative questions
Negative questions
Videoconferencias UTPL
Past simple tense
Past simple tense
cpequeno
The simple past tense
The simple past tense
ricam60
Adverb of frequency
Adverb of frequency
Kunpriya Mokkhatip
¿A quien viene a buscar
¿A quien viene a buscar
Vengatureino Marcelo
Frequency adverbs
Frequency adverbs
sebanavarro
Present simple-powerpoint-presentation
Present simple-powerpoint-presentation
avaldesabril
Game Passive Voice Simple Past
Game Passive Voice Simple Past
J6 2011
Present Perfect Simple Continuous
Present Perfect Simple Continuous
Muhamad Yogi
Present simple and present continuous moodle
Present simple and present continuous moodle
Gorgona
Thymeleafのすすめ
Thymeleafのすすめ
eiryu
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Thymeleaf
Contenu connexe
Tendances
Past simple
Past simple
Diego Arenas
Present Perfect Tense
Present Perfect Tense
Iin Hermiyanto
13262988 powerpoint present-continuous
13262988 powerpoint present-continuous
sergiohuertatrujillo
Simple Present VS Present Continuous Tense
Simple Present VS Present Continuous Tense
Genevie Manocan
Present Continous
Present Continous
John Rios
Power point
Power point
mgabyruiz
Wish + past
Wish + past
dorielena30
LÍ THUYẾT+BÀI TẬP QUÁ KHỨ ĐƠN
LÍ THUYẾT+BÀI TẬP QUÁ KHỨ ĐƠN
Duy Anh Nguyễn
DAILY ROUTINES
DAILY ROUTINES
pablojgd
Used To & Would
Used To & Would
monixamp
Negative questions
Negative questions
Videoconferencias UTPL
Past simple tense
Past simple tense
cpequeno
The simple past tense
The simple past tense
ricam60
Adverb of frequency
Adverb of frequency
Kunpriya Mokkhatip
¿A quien viene a buscar
¿A quien viene a buscar
Vengatureino Marcelo
Frequency adverbs
Frequency adverbs
sebanavarro
Present simple-powerpoint-presentation
Present simple-powerpoint-presentation
avaldesabril
Game Passive Voice Simple Past
Game Passive Voice Simple Past
J6 2011
Present Perfect Simple Continuous
Present Perfect Simple Continuous
Muhamad Yogi
Present simple and present continuous moodle
Present simple and present continuous moodle
Gorgona
Tendances
(20)
Past simple
Past simple
Present Perfect Tense
Present Perfect Tense
13262988 powerpoint present-continuous
13262988 powerpoint present-continuous
Simple Present VS Present Continuous Tense
Simple Present VS Present Continuous Tense
Present Continous
Present Continous
Power point
Power point
Wish + past
Wish + past
LÍ THUYẾT+BÀI TẬP QUÁ KHỨ ĐƠN
LÍ THUYẾT+BÀI TẬP QUÁ KHỨ ĐƠN
DAILY ROUTINES
DAILY ROUTINES
Used To & Would
Used To & Would
Negative questions
Negative questions
Past simple tense
Past simple tense
The simple past tense
The simple past tense
Adverb of frequency
Adverb of frequency
¿A quien viene a buscar
¿A quien viene a buscar
Frequency adverbs
Frequency adverbs
Present simple-powerpoint-presentation
Present simple-powerpoint-presentation
Game Passive Voice Simple Past
Game Passive Voice Simple Past
Present Perfect Simple Continuous
Present Perfect Simple Continuous
Present simple and present continuous moodle
Present simple and present continuous moodle
En vedette
Thymeleafのすすめ
Thymeleafのすすめ
eiryu
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Thymeleaf
テンプレート・エンジンVelocity
テンプレート・エンジンVelocity
隆行 神戸
Mustache入門
Mustache入門
ina job
テンプレートエンジンの話 #jjug
テンプレートエンジンの話 #jjug
Yusuke Yamamoto
Introducing thymeleaf
Introducing thymeleaf
eiryu
Webサービスの国際化にあたり LINE Creators Market 開発がどのように行われたか
Webサービスの国際化にあたり LINE Creators Market 開発がどのように行われたか
LINE Corporation
LINE for Apple Watch
LINE for Apple Watch
LINE Corporation
Spring bootでweb セキュリティ(ログイン認証)編
Spring bootでweb セキュリティ(ログイン認証)編
なべ
Akka ActorとAMQPでLINEのメッセージングパイプラインをリプレースした話
Akka ActorとAMQPでLINEのメッセージングパイプラインをリプレースした話
LINE Corporation
LINE Platform Development Chronicle
LINE Platform Development Chronicle
LINE Corporation
HBaseとRedisを使った100億超/日メッセージを処理するLINEのストレージ
HBaseとRedisを使った100億超/日メッセージを処理するLINEのストレージ
LINE Corporation
Swift による開発チームの変化
Swift による開発チームの変化
LINE Corporation
AWSからのメール送信
AWSからのメール送信
Amazon Web Services Japan
Java EEハンズオン資料 JJUG CCC 2015 Fall
Java EEハンズオン資料 JJUG CCC 2015 Fall
Masatoshi Tada
ベイズ推定とDeep Learningを使用したレコメンドエンジン開発
ベイズ推定とDeep Learningを使用したレコメンドエンジン開発
LINE Corporation
ストリートアカデミー_ローンチ前企画書
ストリートアカデミー_ローンチ前企画書
Find Job Startup
En vedette
(17)
Thymeleafのすすめ
Thymeleafのすすめ
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
テンプレート・エンジンVelocity
テンプレート・エンジンVelocity
Mustache入門
Mustache入門
テンプレートエンジンの話 #jjug
テンプレートエンジンの話 #jjug
Introducing thymeleaf
Introducing thymeleaf
Webサービスの国際化にあたり LINE Creators Market 開発がどのように行われたか
Webサービスの国際化にあたり LINE Creators Market 開発がどのように行われたか
LINE for Apple Watch
LINE for Apple Watch
Spring bootでweb セキュリティ(ログイン認証)編
Spring bootでweb セキュリティ(ログイン認証)編
Akka ActorとAMQPでLINEのメッセージングパイプラインをリプレースした話
Akka ActorとAMQPでLINEのメッセージングパイプラインをリプレースした話
LINE Platform Development Chronicle
LINE Platform Development Chronicle
HBaseとRedisを使った100億超/日メッセージを処理するLINEのストレージ
HBaseとRedisを使った100億超/日メッセージを処理するLINEのストレージ
Swift による開発チームの変化
Swift による開発チームの変化
AWSからのメール送信
AWSからのメール送信
Java EEハンズオン資料 JJUG CCC 2015 Fall
Java EEハンズオン資料 JJUG CCC 2015 Fall
ベイズ推定とDeep Learningを使用したレコメンドエンジン開発
ベイズ推定とDeep Learningを使用したレコメンドエンジン開発
ストリートアカデミー_ローンチ前企画書
ストリートアカデミー_ローンチ前企画書
Similaire à Thymeleafでハマったこと
thymeleafさいしょの一歩
thymeleafさいしょの一歩
Yuichi Hasegawa
イマドキの現場で使えるJavaライブラリ事情
イマドキの現場で使えるJavaライブラリ事情
takezoe
Haikara
Haikara
jewel12
分散ストリーム処理フレームワーク Apache S4
分散ストリーム処理フレームワーク Apache S4
AdvancedTechNight
3時間濃縮CakePHP2.1 in PHPカンファレンス北海道2012
3時間濃縮CakePHP2.1 in PHPカンファレンス北海道2012
Yusuke Ando
Java ee6 with scala
Java ee6 with scala
Satoshi Kubo
Play framework 2.0のちょっとした紹介
Play framework 2.0のちょっとした紹介
Ryo RKTM
Alfresco勉強会#36 alfresco 5でカスタムREST APIを作ってみよう
Alfresco勉強会#36 alfresco 5でカスタムREST APIを作ってみよう
Tasuku Otani
3 tips of Laravel
3 tips of Laravel
Kazuaki KURIU
Spring Frameworkの今 (2013年版) #jjug_ccc #ccc_r17 #springframework
Spring Frameworkの今 (2013年版) #jjug_ccc #ccc_r17 #springframework
Toshiaki Maki
最適化計算エンジンを備えた Ruby on Rails アプリケーションのアーキテクチャーと進化
最適化計算エンジンを備えた Ruby on Rails アプリケーションのアーキテクチャーと進化
Masaki Takeuchi
Rails初心者レッスン lesson3 3edition
Rails初心者レッスン lesson3 3edition
Satomi Tsujita
Mojoliciousをウェブ制作現場で使ってみてる
Mojoliciousをウェブ制作現場で使ってみてる
jamadam
第4回Magento Cafe Plus〜Rewriteと独自テーブル
第4回Magento Cafe Plus〜Rewriteと独自テーブル
Hirokazu Nishi
Similaire à Thymeleafでハマったこと
(14)
thymeleafさいしょの一歩
thymeleafさいしょの一歩
イマドキの現場で使えるJavaライブラリ事情
イマドキの現場で使えるJavaライブラリ事情
Haikara
Haikara
分散ストリーム処理フレームワーク Apache S4
分散ストリーム処理フレームワーク Apache S4
3時間濃縮CakePHP2.1 in PHPカンファレンス北海道2012
3時間濃縮CakePHP2.1 in PHPカンファレンス北海道2012
Java ee6 with scala
Java ee6 with scala
Play framework 2.0のちょっとした紹介
Play framework 2.0のちょっとした紹介
Alfresco勉強会#36 alfresco 5でカスタムREST APIを作ってみよう
Alfresco勉強会#36 alfresco 5でカスタムREST APIを作ってみよう
3 tips of Laravel
3 tips of Laravel
Spring Frameworkの今 (2013年版) #jjug_ccc #ccc_r17 #springframework
Spring Frameworkの今 (2013年版) #jjug_ccc #ccc_r17 #springframework
最適化計算エンジンを備えた Ruby on Rails アプリケーションのアーキテクチャーと進化
最適化計算エンジンを備えた Ruby on Rails アプリケーションのアーキテクチャーと進化
Rails初心者レッスン lesson3 3edition
Rails初心者レッスン lesson3 3edition
Mojoliciousをウェブ制作現場で使ってみてる
Mojoliciousをウェブ制作現場で使ってみてる
第4回Magento Cafe Plus〜Rewriteと独自テーブル
第4回Magento Cafe Plus〜Rewriteと独自テーブル
Plus de eiryu
Javaでのバリデーション 〜Bean Validation篇〜
Javaでのバリデーション 〜Bean Validation篇〜
eiryu
Ninja framework使ってみた
Ninja framework使ってみた
eiryu
JMeter小話
JMeter小話
eiryu
最近のJavaでの開発について
最近のJavaでの開発について
eiryu
TwFavView
TwFavView
eiryu
Spring小話
Spring小話
eiryu
Plus de eiryu
(6)
Javaでのバリデーション 〜Bean Validation篇〜
Javaでのバリデーション 〜Bean Validation篇〜
Ninja framework使ってみた
Ninja framework使ってみた
JMeter小話
JMeter小話
最近のJavaでの開発について
最近のJavaでの開発について
TwFavView
TwFavView
Spring小話
Spring小話
Dernier
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
Ryo Sasaki
UPWARD_share_company_information_20240415.pdf
UPWARD_share_company_information_20240415.pdf
furutsuka
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
sugiuralab
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
osamut
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
iPride Co., Ltd.
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
Shota Ito
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
Atomu Hidaka
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
danielhu54
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
iPride Co., Ltd.
Dernier
(9)
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
UPWARD_share_company_information_20240415.pdf
UPWARD_share_company_information_20240415.pdf
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
Thymeleafでハマったこと
1.
Thymeleaf でハマったこと @eiryu
2.
自己紹介 • Twitter
@eiryu • アプリケーションエンジニア • Java 、 JavaScript 、 PostgreSQL 、 Oper a • 最近作ったもの – TwFavView
3.
利用した Version • 2.0.17 –
thymeleaf – thymeleaf-spring3
4.
日本語表示の設定( Spring 連携 時) <bean
id="templateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver"> <property name="prefix" value="/WEB-INF/templates/" /> <property name="suffix" value=".html" /> <property name="templateMode" value="HTML5" /> <property name="cacheable" value="false" /> <property name="characterEncoding" value="utf-8" /> </bean> <bean id="templateEngine" class="org.thymeleaf.spring3.SpringTemplateEngine"> <property name="templateResolver" ref="templateResolver" /> </bean> <bean class="org.thymeleaf.spring3.view.ThymeleafViewResolver"> <property name="templateEngine" ref="templateEngine" /> <property name="characterEncoding" value="utf-8" /> </bean>
5.
単純なループ <select name="foo"> <option th:each="i
: ${#numbers.sequence(1, 10)}" th:value="${i}" th:text="${i}+ ' 個 '">1 個 </option> </select>
6.
Form • getter/setter 必須 •
public フィールドにしてもうまくいって たときがあった – しかし、 Form の中に Form がある場合 は、 setter がないとエラーが出ていた
7.
改行コードの br タグへの replace •
そもそも <br /> でエラー(テンプレート モードが LEGACYHTML5 の場合は OK 。 しかし、置換出来たとしてもエスケープ されて表示) • Spring と連携していると n が と n の 2 文字として渡されているため、置換 できない( SpringEL のせいっぽい) • 結局、ロジック側でコレクションにして 渡して <br /> 挟みながら th:each で出力 <p th:text=“ ${#strings.replace(it, 'n', ‘<br />')}">def</p>
8.
ご静聴ありがとうございました 。
Télécharger maintenant