Bonjour tous:
Quelqu'un sait comment fonctionne jscookMenu de tomahawk pour JSF 2.0??? Je developpe un site et je veux ajouter un menu pour naviguer. Je travail avec Tomcat 6.0, tomahawk12-1.1.9.jar et JSF 2.0.
J'ai reussi à afficher le menu dans la page, mais lorsque je click dans un bouton, il repond pas et une erreur de javascript est generée. J'ai essayé avec un bean, aussi en ajoutant le nom du fichier xhtml, du jsf, tout!!!
Dans ma page .xhtml j'ai:
Code xml : 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 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:f="http://java.sun.com/jsf/core"> ... <h:form> <t:jscookMenu layout="hbr" theme="ThemeGray"> <t:navigationMenuItem id="nav_2" itemLabel="Example 2"> <h:commandLink action="home" rendered="true" value="Home"> </h:commandLink> <t:navigationMenuItem id="nav_2_1" itemLabel="Sample 1" action="frmArrete" /> <t:navigationMenuItem id="nav_2_2" itemLabel="Sample 2" action="frmArrete.jsf" /> <t:navigationMenuItem id="nav_2_3" itemLabel="Sample 3" action="#{bArrete.aa}" /> </t:navigationMenuItem> </t:jscookMenu> </h:form>
Mon bean, BArrete
Quelqu'un a un example pour m'aider?? Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 public void aa(){ System.out.println("ici"); }
Partager