[Débutant]problème de facelets
Bonjour,
Je travaille sur NetBeans, je développe actuellement une application web (jpa; jsf facelets; mysql, GlassFish) en suivant ce tutoriel.
En fait, lors de l'exécution, le serveur n'affiche aucune erreur, mais, j'ai un problème d'affichage (pas d'affichage).
Voici la page "list.xhtml":
Code:
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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">
<h:head>
<title>Pet Catalog</title>
</h:head>
<h:body>
<table style="text-align: left; width: 60%;" border="0" >
<tbody>
<tr>
<td><h4>Récupération à partir de la base de données</h4>
</td>
<td>
<h:graphicImage library="images" name="banner_logo.gif" style="width: 65px; height: 55px;" align="right" />
</td>
</tr>
</tbody>
</table>
<h:form styleClass="jsfcrud_list_form">
<h:outputStylesheet name="css/styles.css"/>
<h:outputText value="Item #{catalog.pagingInfo.firstItem + 1} .. #{catalog.pagingInfo.lastItem} of #{catalog.pagingInfo.itemCount} "/>
<h:commandButton action="#{catalog.prev}" value="#{msgs.Previous}" rendered="#{catalog.pagingInfo.isPrevItems}" />
<h:commandButton action="#{catalog.next}" value="#{msgs.Next}" rendered="#{catalog.pagingInfo.isNextItems}"/>
<h:dataTable var="row" value="#{catalog.items}" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px" >
<h:column>
<f:facet name="header">
<h:outputText value="#{msgs.Name}"/>
</f:facet>
<h:commandLink action="#{catalog.getDetail}" value="#{row.name}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{msgs.Photo}"/>
</f:facet>
<h:graphicImage library="images" name="#{row.imagethumburl}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{msgs.Price}"/>
</f:facet>
<h:outputText value="#{row.price}" />
</h:column>
</h:dataTable>
</h:form>
</h:body>
</html> |
Alors, j'ai ajouté les jars : jsf-facelets-1.1.14.jar et commons-logging-1.0.4.jar. Mais, le problème n'est pas résolu.
Je suis reconnaissant de vos éventuelles aides.