Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
JSF
very basic question
A. Dusi
Ranch Hand
Posts: 114
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I need to set a button label dynamically. But this code does not render the "Tab" part of the label.
<h:commandButton value="Edit #{myBackingBean.myCurrentTab} Tab" type="submit" action="#{myBackingBean.editTab}" />
where as this code using an outputText gives the complete value.
<h:outputText value="Edit #{myBackingBean.myCurrentTab} Tab" />
Can anyone explain. Thanks for your time.
gee sasi
Greenhorn
Posts: 5
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I don't know why it happens but try out like this to solve your problem
I hope your backing method returns a
string
Public String myCurrentTab(){
String s1 = "Edit ";
String s2 = "your dynamic value";
String s3 = " Tab";
String con = s1+s2+s3;
return con;
}
I don't even know how to spell CIA. But this tiny ad does:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
unable to include jsp in tomahawk tab
myFaces Tabs and validation
selectManyListbox' value attribute
html:select problem
Access jstl variable in Servlet
More...