0% found this document useful (0 votes)
17 views2 pages

New Tweet

Uploaded by

devi das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

New Tweet

Uploaded by

devi das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

26/11/2024 15:50 Nouveau Document tee.

txt

<?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"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:form>

<p:growl id="growl" showDetail="true" />

<p:fieldset legend="New Tweet" toggleable="true" toggleSpeed="500">


<h:commandButton label="Send" value="Deconnect" action="#{MyController.Deconnecter()}"/>
<h:panelGrid columns="2" cellpadding="10">
<h:outputLabel value="Nbre User Connectes"/>
<h:outputLabel value="#{MyController.afficheruser()}"/>
<h:commandButton label="Send" value="Afficher Mes amis" action="faces/contact"/>
<br></br>
<h:outputLabel value="Title"/>
<h:inputText value="#{MyController.model.newTweet.title}"/>

<h:outputLabel value="Message"/>
<h:inputText value="#{MyController.model.newTweet.message}"/>

</h:panelGrid>
<h:commandButton label="Send" value="Inserer" action="#{MyController.tweet}"/>
</p:fieldset>

</h:form>

<h:form>
<p:dataTable var="tweets" value="#{MyController.afficherLesTweets()}">

<p:column headerText="title">
<h:outputText value="#{tweets.title}" />
</p:column>

<p:column headerText="msg">
<h:outputText value="#{tweets.message}" />
</p:column>

<p:column headerText="Détails">
<h:commandLink value="Retweet/Details" action="#
{MyController.model.MReplyAncestorTweet}" >

<f:param name="id" value="#{tweets.id}"/>


<f:param name="titre_mere" value="#{tweets.title}"/>
<f:param name="msg_mere" value="#{tweets.message}"/>
</h:commandLink>
</p:column>
</p:dataTable>

</h:form>

<h:body>
Hello from Facelets
<br />
<h:link outcome="welcomePrimefaces" value="Primefaces welcome page" />
</h:body>

file:///C:/Users/amal.bahrini/Desktop/Data cloud/drive-download-20241126T144951Z-001/Nouveau Document tee.txt 1/2


26/11/2024 15:50 Nouveau Document tee.txt
</html>

file:///C:/Users/amal.bahrini/Desktop/Data cloud/drive-download-20241126T144951Z-001/Nouveau Document tee.txt 2/2

You might also like