Bien, on s'approche :-)
Malheureusement j'ai encore un souci.... rien ne s'affiche dans l'onglet lorsque j'utilise le code ci dessous
<rich:tabPanel binding="#{tabBean.tabPanel}"/>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
public HtmlTabPanel getTabPanel() {
FacesContext context = FacesContext.getCurrentInstance();
Application application = context.getApplication();
tabPanel = (HtmlTabPanel)application.createComponent(HtmlTabPanel.COMPONENT_TYPE);
HtmlTab tab = (HtmlTab)application.createComponent(HtmlTab.COMPONENT_TYPE);
tab.setLabel("Tab 1");
Include include = (Include)application.createComponent(Include.COMPONENT_TYPE);
include.setViewId("panelInsideTab.xhtml");
tab.getChildren().add(include);
tabPanel.getChildren().add(tab);
return tabPanel;
} |
alors que le code ci-dessous fonctionne parfaitement :
1 2 3 4 5 6
|
<rich:tabPanel>
<rich:tab label="test">
<a4j:include viewId="panelInsideTab.xhtml"/>
</rich:tab>
</rich:tabPanel> |
J'ai trouvé plusieurs personnes qui ont signalé le même problème sur d'autres forums...mais aucune solution.
Quelqu'un aurait-il une idée ?
Partager