File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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;
}
 
wood burning stoves
 
subject: very basic question