bonjour tout le monde , je veux créer une taglib propre a mon projet et j'ai chercher partout mais j'ai une erreur:
the absolute uri:http://aymen.societe.fr cannot be resolved in either web.xml
voici mes fichiers
gestion.jsp
fichier taglib : input.taglib.xml qui est sous WEB-INF/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%> <%@ taglib uri="http://aymen.societe.fr" prefix="m"%> ... <f:view> <m:info titre="salut" valeur="salut"/>
et le fichier xhtml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8<facelet-taglib> <namespace>http://aymen.societe.fr</namespace> <tag> <tag-name>info</tag-name> <source>composants/inputText.xhtml</source> </tag> </facelet-taglib>
et le bout de code ds web.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"> <ui:composition> <h:outputText value="#{titre}" /> <h:inputText value="#{valeur}" /> </ui:composition> </html>
merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <context-param> <param-name>facelets.LIBRARIES</param-name> <param-value>/input.taglib.xml</param-value> </context-param>
Partager