This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes very basic question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "very basic question" Watch "very basic question" New topic
Author

very basic question

A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
I need to set a button label dynamically. But this code does not render the "Tab" part of the label.


where as this code using an outputText gives the complete value.



Can anyone explain. Thanks for your time.
gee sasi
Greenhorn

Joined: Nov 07, 2006
Posts: 5
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: very basic question
 
Similar Threads
html:select problem
Access jstl variable in Servlet
selectManyListbox' value attribute
myFaces Tabs and validation
unable to include jsp in tomahawk tab