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

Java: Change background color with a delay using hex values in an array
Streaming a webcam to a nginx server from Java
slf4j not working on Websphere but java.util.Logging does
Check which value contains property Java WebDriver
How to set the owner of a file from a string variable
Java removing an iterator that removes another element in the same list
migration from glassfish 3.1 to wildfly 10.1
how to convert string in the form of xml to xml format in java
Initialize a database with a script using Spring JDBC fails
How to display the results of a for-loop in one dialogwindow?
Cannot Resolve symbol 'RelativeLayout'
Get all column's qualifier that matches regex [closed]
How to set date and time 6 hour before to picked time and date?
How to install and connect MongoDb in Netbeans?
Not able to return string array in AsycTask
how to draw quarter circle in xml android

Categories

HOME
hive
minimum-spanning-tree
plot
homebrew
raspberry-pi
platform-builder
cplex
spagobi
jsp-tags
google-oauth
electronics
dxl
windows-server
upload
basic
amazon-cloudformation
tomcat6
nano-server
google-cloud-ml
timeout
quartz-scheduler
evopdf
excel-vba-mac
shared-hosting
visjs
wkwebview
extjs5
pass-by-reference
poltergeist
internet-explorer-9
spring-mybatis
saas
msys2
compatibility
jspm
windows-server-2000
binary-data
.net-4.0
karaf
perlin-noise
openoffice.org
dartium
bootstrapper
dynamic-reports
logfiles
fault
boost-multi-index
clean-architecture
dandelion
fancybox-2
diagnostics
flutterwave
crosswalk-runtime
gnome-shell-extensions
word-vba-mac
time-and-attendance
spring-android
azure-sdk
adxstudio-portals
phishing
fputcsv
connect-by
master-slave
tcpserver
intel-fortran
deis
responsive-images
iiviewdeckcontroller
pretty-print
geonetwork
tween
typekit
pick
angularjs-ng-click
rdtsc
googlemock
rdl
zend-route
dml
navigationservice
valueconverter
mbr
mcts
aqtime
tidy
soundtouch
dotnetnuke-5
selected
e4x
dice
uiviewanimation-curve
dotnethighcharts
eclipse-templates
f#-powerpack
invite
rfc1123
appender
pyinotify
paster
sortable-tables
wise
getresponsestream
ncqrs
user-friendly
dbisam

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