j'ai trouvé ce code richeface pour faire un onglet, j'ai mis les jars necessaires (-beanutils-1.7.0.jar, commons-collections-3.2.jar, commons-digester-1.8.jar, commons-logging-1.0.4.jar, jhighlight-1.0.jar.
) dans le dossier lib, mais quand j'execute il y a que le textequi s'affiche mais pas les onglets
Code : Sélectionner tout - Visualiser dans une fenêtre à part Here is an example of default tab panel with 3 tabs. Here is tab #1 Here is tab #2 Here is tab #3
login.xhtml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <style> .rich-tab-inactive { cursor: pointer; } .rich-tabpanel-content { border-width: 1px 1px 1px 1px; background-color: transparent; } </style> <p> Here is an example of default tab panel with 3 tabs. <rich:tabPanel headerAlignment="right" switchType="client"> <rich:tab label="First"> Here is tab #1 </rich:tab> <rich:tab label="Second"> Here is tab #2 </rich:tab> <rich:tab label="Third"> Here is tab #3 </rich:tab> </rich:tabPanel> </p> </ui:composition>
Partager