Je veux rafraîchir ma page web

Fermé
yassou - 17 avril 2012 à 11:14
 yassou - 17 avril 2012 à 13:22
Bonjour,



SVP pouvez vous m'aider je veux actualiser ma page web en utilisant cette balise <META HTTP-EQUIV="Refresh" CONTENT="4" />
mais en l'insérant dans mon code la page ne s'actualise pas , j'ai essayé dans une autre page et ça marche mais dans cette page non :( voila ma page :




<?xml version="1.0" encoding="UTF-8" ?>
<!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:c="http://java.sun.com/jsp/jstl/core">

<h:head>
<META HTTP-EQUIV="Refresh" CONTENT="1" />
</h:head>
<h:body>
<ui:composition template="/template.xhtml">
<ui:define name="body">
<h:form styleClass="jsfcrud_list_form">
<h:panelGroup id="messagePanel" >
<h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
<table border="0" align="left">
<tr>
<td><h:commandLink value="#{bundle.ListEquipementIndexLink}" action="/index" immediate="true" /></td>
<td><h:commandLink action="#{equipementController.prepareCreate}" value="#{bundle.ListEquipementCreateLink}"/></td>
<td><h:commandLink action="/utilisateur/List" value="Afficher les utilisateurs"/></td>
<td><h:commandLink value="se déconnecter" action="/index" /></td>

</tr>
</table>
</h:panelGroup>

<br/>
<br/>
<br/><table align="center"><tr><td>
<h:panelGrid id="grid" columns="4">

<c:forEach items="#{equipementController.itemsListe}" var="obj">
<h:column>
<h:outputText rendered="#{!equipementController.etat(obj.adresseIp, obj.idPort)}"/>
<h:graphicImage url="/#{obj.imageR}" rendered="#{!equipementController.etat(obj.adresseIp, obj.idPort)}"/>
<h:graphicImage url="/#{obj.imageV}" rendered="#{equipementController.etat(obj.adresseIp, obj.idPort)}"/>
<h:outputText value="#{obj.nom}"/>
<br/>
<h:commandLink action="#{equipementController.prepareView}" value="#{bundle.ListEquipementViewLink}"/>
<br/>
<h:commandLink action="#{equipementController.prepareEdit}" value="#{bundle.ListEquipementEditLink}"/>
<br/>
<h:commandLink action="#{equipementController.destroy}" value="#{bundle.ListEquipementDestroyLink}"/>
</h:column>
</c:forEach>

</h:panelGrid>
</td></tr></table>
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>
A voir également:

2 réponses

bg62 Messages postés 23594 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 1 mai 2024 2 362
Modifié par bg62 le 17/04/2012 à 12:18
as-tu cherché un peu ?
https://www.google.fr/?gws_rd=ssl#hl=fr&safe=off&sclient=psy-ab&q=%3CMETA+HTTP-EQUIV%3D%22Refresh%22+CONTENT%3D%224%22+%2F%3E+&oq=%3CMETA+HTTP-EQUIV%3D%22Refresh%22+CONTENT%3D%224%22+%2F%3E+&aq=f&aqi=&aql=&gs_l=hp.3...73003l73003l2l73960l1l1l0l0l0l0l89l89l1l1l0.&psj=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=bdb3ce1183bd47ab&biw=1366&bih=632
;)
d'autant plus que ce code m'a l'air un peu "bref" ...
<h:head>
<META HTTP-EQUIV="Refresh" CONTENT="1" />
</h:head> 

le 'www' est fait aussi pour communiquer, partager et échanger, non ?
merci d'avoir la politesse de répondre à ceux qui essaient de vous aider
0
oui j'ai cherché et j'ai trouvé d'autre mais c'est pareil
0
flav1313 Messages postés 751 Date d'inscription mardi 24 août 2010 Statut Membre Dernière intervention 22 octobre 2012 100
17 avril 2012 à 12:20
Attend ce fichier est un fichier : XML et non pas HTML

L'utilisation est différente.
0
bg62 Messages postés 23594 Date d'inscription samedi 22 octobre 2005 Statut Modérateur Dernière intervention 1 mai 2024 2 362
17 avril 2012 à 12:21
pourquoi ?
0
je l'ai utilisé dans une autre page xhtml et il marche :/
0
voila dans cette page la balise marche correctement
<?xml version='1.0' encoding='UTF-8' ?>
<!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:h="http://java.sun.com/jsf/html">

<h:head>

<meta http-equiv="refresh" content="6" />
<title>Facelet Title</title>
<h:outputStylesheet name="css/jsfcrud.css"/>
</h:head>
<h:body><h:form>

<table align="center">

<tr><td>login</td><td><h:inputText id="login" value="#{utiController.login}" /></td></tr>
<tr><td>mot de passe </td> <td><h:inputText id="password" value="#{utiController.password}" /></td>
</tr>
<tr><td> <h:commandButton action="#{utiController.log()}" value="valider"/></td>
</tr> </table>

<!-- <h:commandLink action="/equipement/List" value="Show All Equipement Items"/> -->
</h:form>
<!-- <h:form>
<h:commandLink action="/utilisateur/List" value="Show All Utilisateur Items"/>
</h:form> -->
</h:body>


</html>
0
flav1313 Messages postés 751 Date d'inscription mardi 24 août 2010 Statut Membre Dernière intervention 22 octobre 2012 100
17 avril 2012 à 13:08
Dans le premier tu m'es 1 et dans le second 6, essaye de mettre 6 dans le second.
0
oui mais c pa ca le probleme
0