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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
<f:view>
<html>
<head>
<title>My First JSF</title>
<style>
.HEADING {
font-family: courier;
font-size: 8pt;
color: #000000;
text-align: left;
background-image: url("img/fondaction.gif");
}
.ROW1 {
font-family: courier;
font-size: 8pt;
color: #000000;
}
.ROW2 {
font-family: courier;
font-size: 8pt;
color: #000000;
background-color: #dfc4a3;
}
.ROW3 {
font-family: courier;
font-size: 8pt;
color: black;
background-color: red;
}
.EN-TETE {
font-family: courier;
font-size: 8pt;
color: white;
}
</style>
<script language="Javascript">
var tab;
function afficher(id) {
var obj = document.getElementById(id);
if (obj) {
/*alert(obj);
obj.style.visibility = "visible";*/
x=window.event.x;
y=window.event.y;
obj.style.left=x;
obj.style.top=y;
alert(obj.style.left);
alert(obj.style.left);
obj.style.display="";
hidemenu(tab);
tab=id;
alert('llll');
return false;
}
}
function hidemenu(arg)
{
if(arg!=null)
{
document.getElementById(arg).style.display="none";
}
}
document.oncontextmenu=hidemenu;
</script>
</head>
<body style="background-color: #fff4db">
<h:form id="reportForm" target="report">
<h:panelGrid cellspacing="10" columns="3">
<h:dataTable value="#{InitPageBean.personNames}" var="unePersonne"
width="300" border="0" headerClass="HEADING" rowClasses="ROW1,ROW2"
cellspacing="0" cellpadding="2">
<h:column>
<f:facet name="header">
<h:outputText value="Nom" styleClass="EN-TETE" />
</f:facet>
<h:outputText value="#{unePersonne.nom}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Prénom" styleClass="EN-TETE" />
</f:facet>
<h:outputLink>
<h:outputText value="#{unePersonne.prenom}" />
</h:outputLink>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Autre" styleClass="EN-TETE" />
</f:facet>
<h:outputLink
onclick="javascript: afficher('reportForm:MyDT');">
<h:outputText value="AffMenu5" />
</h:outputLink>
</h:column>
</h:dataTable>
</h:panelGrid>
<h:dataTable value="#{InitPageBean.personNames}" width="100"
border="0" headerClass="HEADING" rowClasses="ROW3" cellspacing="0"
cellpadding="2" id="myDT" style="display: none;">
<h:column>
<h:outputText value="Valider" />
</h:column>
</h:dataTable>
</h:form>
</body>
</html>
</f:view>
|
Partager