Bonjour,
Je fais un premier test avec les facelets en créant un fichier index.xhtml dans lequel j'affiche des composants Richfaces.
Lorsque j'exécute sous firefox, ces composants ne sont pas affichés j'ai seulement le titre de la page.
Voici mon fichier index.xhtml :
Merci.
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
32
33
34 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html 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"> <ui:composition > <ui:define name="title">Richfaces test</ui:define> <ui:define name="body"> <f:view> <rich:panel style="border:0;width:60%;text-align:center"> <rich:panel> <f:facet name="header"> <h:outputText value=" Exemple a4j" /> </f:facet> <h:selectOneMenu value="#{person.name}"> <f:selectItem itemLabel="Pierre" itemValue="Pierre" /> <f:selectItem itemLabel="Paul" itemValue="Paul" /> <f:selectItem itemLabel="Jacques" itemValue="Jacques" /> <a4j:support event="onclick" reRender="text"> </a4j:support> </h:selectOneMenu> <h:outputText value="Selected name: #{person.name}" id="text" style="font-weight:bold;" /> </rich:panel> </rich:panel> </f:view> </ui:define> </ui:composition> </html>
Partager