java


How to give button label using Thymeleaf from i18n


Currently I am trying to replace the word Save from button label with a value from message_en.properties file.
<input type="submit" value="Save" class="btn btn-primary btn-block"/>
I have tried as below:
<input type="submit" th:text="#{newuser.page.saveBtn}" class="btn btn-primary btn-block"/>
But it's not giving the result I expected. Please help me out to solve the issue.
Shouldn't it be like this?
<input type="submit"
th:value="#{newuser.page.saveBtn}"
class="btn btn-primary btn-block"/>
you can use button, it's working for me
<button type="submit" class="btn btn-primary btn-block" th:text="#{newuser.page.saveBtn}"></button>

Related Links

How do I use methods from an existing running thread in different Activities
Monitor non-heap memory usage of a JVM
Why will this not display?
Is it possible to store secrets on the stack in java?
Java create objects of generic type with unknown in compilation type parameter
Accessing JSON array node inside an object
Landscape mode error
How to send data when mouse click that is runing function actionPerformed(ActionEvent l)
Java - Vector vs ArrayList performance - test
How to enter SQL instruction in controller with play 2 and java
OpenGL Zoom in / Zoom out with Mouse/Keyboard
Loading log4j from maven repository
Sending messages from various IP-adresses to a single server using Java
Do strings used in a System.out.println also create new immutable objects?
Loading file from the machine
Writing to Windows 7 library with Java application

Categories

HOME
testing
pdf
wso2-am
osgi
bluetooth
gerrit
path-finding
raspberry-pi
objectgears
routes
rubygems
sqlite3
c#-2.0
win32gui
basic
applepay
gorm
communication
fancybox-3
spring-kafka
rascal
windows-azure-storage
timeout
task
visual-studio-cordova
circuit
decomposition
nodatime
custom-wordpress-pages
scriptcs
web-sql
selectedindexchanged
internet-explorer-9
ping
opentype
windowbuilder
quote
flink-streaming
key-value-observing
fog
copying
perlin-noise
framemaker
windows-dev-center
textmate
openoffice.org
environment-modules
bower-install
host
dosbox
espeak
twitch
webix-treetable
cookiecutter-django
galen
outlook-api
http-redirect
btrace
wptoolkit
cubic-spline
revapi
domain-model
aurelia-validation
nsarray
django-scheduler
or-tools
topbeat
rotativa
disque
associative-array
natvis
jfugue
ios8-today-widget
spim
ora-00900
sortedlist
system32
knuth
network-interface
php-5.4
google-reader
navigationservice
html5-notifications
multiprocessor
spring-io
opcache
tws
dataservice
mt
dice
propertyeditor
transactionscope
gcj
mod-auth
invite
netbeans-7.1
krl
paster
fixed-width
adrotator
putchar
caching-application-block

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App