This content has been marked as final.
Show 3 replies
-
1. Re: How to set content of rich:tab in java
jiri.pejchal Feb 18, 2008 12:10 PM (in response to jiri.pejchal)Sorry I pasted incorrect code.
The line
Application application = FacesContext.getCurrentInstance().getApplication();
shouldn't be there and newTab2 should be newTab.
However the question remains the same.
Is the content set with newTab.setValue("content")? -
2. Re: How to set content of rich:tab in java
h0ppy Feb 19, 2008 4:18 AM (in response to jiri.pejchal)You need to add child components to the tab, so to add the text "Hello World" to the tab you'd do the following:
HtmlTab tab = new HtmlTab(); HtmlOutputText text = new HtmlOutputText(); text.setValue("Hello World"); tab.getChildren().add(text);
Hope that helps -
3. Re: How to set content of rich:tab in java
jiri.pejchal Feb 19, 2008 4:48 AM (in response to jiri.pejchal)Thanks a lot. It works:-)