IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Servlets/JSP Java Discussion :

probleme avec jsf


Sujet :

Servlets/JSP Java

  1. #1
    Membre averti
    Inscrit en
    Octobre 2009
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Octobre 2009
    Messages : 23
    Par défaut probleme avec jsf
    bonjour a tous
    mon pb c que je veut inserer des donne r appartir le ma page jsf qui contient
    un ensemble des panel .
    si je fonctionne mais panel apart c.a.d chaqu'une dans une page jsf elle marche
    mais lorsque je les regroupe ça marche pas avec aucune exeption just il ne fonctionne pas . pouviez vous m'aider . voici mon code :





    <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
    <%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
    <html>
    <body>
    <h:form>
    <rich:page contentType="text/html" >
    <f:facet name="header">
    <h:panelGroup>
    <!-- <table width="100%"><img></img><tbody><tr>
    <td></td>

    </tr></tbody></table>-->
    </h:panelGroup>
    </f:facet>
    <h:graphicImage value="./images/pic1.jpg" style="width : 900px; height : 191px;"/>
    <hr/>
    <hr/>
    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="Acceuil">
    <h:graphicImage value="./images/pic1.jpg" />
    <h:form>
    <rich:panel style="padding:0" headerClass="outpanelHeader">
    <f:facet name="header">
    <rich:spacer height="4" />
    </f:facet>
    <h2 align="center"></h2>
    <h:panelGrid columns="4" columnClasses="gridContent" >
    <rich:panel bodyClass="inpanelBody">
    <f:facet name="header">
    Action
    </f:facet>
    <rich:menuItem submitMode="none"
    onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
    <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
    <h:outputText value="Actions à réaliser"></h:outputText>
    </h:outputLink>
    </rich:menuItem>

    <rich:menuItem submitMode="none"
    onclick="document.location.href='http://jboss.com/index.html?module=bb&amp;op=viewforum&amp;f=261'">
    <h:outputLink
    value="http://jboss.com/index.html?module=bb&amp;op=viewforum&amp;f=261">
    <h:outputText value="Demandes d'action à valider"></h:outputText>
    </h:outputLink>
    </rich:menuItem>
    </rich:panel>
    <rich:panel bodyClass="inpanelBody">
    <f:facet name="header" >
    Formation
    </f:facet>
    <rich:menuItem submitMode="none"
    onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
    <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
    <h:outputText value="Formations à suivre"></h:outputText>
    </h:outputLink>
    </rich:menuItem>

    <rich:menuItem submitMode="none"
    onclick="document.location.href='http://jboss.com/index.html?module=bb&amp;op=viewforum&amp;f=261'">
    <h:outputLink
    value="http://jboss.com/index.html?module=bb&amp;op=viewforum&amp;f=261">
    <h:outputText value="Demandes de formation à valider"></h:outputText>
    </h:outputLink>
    </rich:menuItem>
    </rich:panel>
    <rich:panel bodyClass="inpanelBody">
    <f:facet name="header" >
    Document
    </f:facet>
    <rich:menuItem submitMode="none"
    onclick="document.location.href='/images/jsf.pdf'">
    <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
    <h:outputText value="Formations à suivre"></h:outputText>
    </h:outputLink>
    </rich:menuItem>

    <rich:menuItem submitMode="none">
    <rich:modalPanel id="panel" width="350" height="350">

    <f:facet name="controls">
    <h:panelGroup>
    <h:graphicImage value="./images/pic1.jpg" styleClass="hidelink" id="hidelink"/>
    <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
    </h:panelGroup>
    </f:facet>
    <h:outputText value="This panel is called using Component Control Component"></h:outputText>
    <br/>
    <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
    </rich:modalPanel>
    <h:outputLink value="#" id="link">
    document à rédiger
    <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
    </h:outputLink>

    </rich:menuItem>
    </rich:panel>
    <rich:panel bodyClass="inpanelBody">
    <f:facet name="header" >
    Audit
    </f:facet>
    <rich:menuItem submitMode="none"
    onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
    <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
    <h:outputText value="Audit à réaliser"></h:outputText>
    </h:outputLink>
    </rich:menuItem>

    <rich:menuItem submitMode="none"
    >

    </rich:menuItem>
    </rich:panel>

    </h:panelGrid>
    </rich:panel>

    </h:form>
    </rich:tab>
    <rich:tab label="Ressources Humaines">
    <h:graphicImage value="./images/pic1.jpg" />
    <br/>
    <hr/>
    <hr/>
    <rich:panelMenu style="width:400px" mode="ajax"
    iconExpandedGroup="disc" iconCollapsedGroup="disc"
    iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
    iconCollapsedTopGroup="chevronDown">
    <rich:panelMenuGroup label="Fiche Employé">
    <rich:panelMenuItem label="Ajouter employé" action="#{panelMenu.updateCurrent}">
    <f:param name="current" value="Ajout"/>
    </rich:panelMenuItem>
    <rich:panelMenuItem label="Modifier fiche employé" action="#{panelMenu.updateCurrent}">
    <f:param name="current" value="Modif"/>
    </rich:panelMenuItem>
    <rich:panelMenuItem label="Consultation fiche employé" action="#{panelMenu.updateCurrent}">
    <f:param name="current" value="Consult"/>
    </rich:panelMenuItem>
    </rich:panelMenuGroup>
    <rich:panelMenuGroup label="Fiche Employé">
    <rich:panelMenuItem label="Ajouter employé" action="#{panelMenu.updateCurrent}">
    <f:param name="current" value="Ajout"/>
    </rich:panelMenuItem>
    <rich:panelMenuItem label="Modifier fiche employé" action="#{panelMenu.updateCurrent}">
    <f:param name="current" value="Modif"/>
    </rich:panelMenuItem>
    <rich:panelMenuItem label="Consultation fiche employé" action="#{panelMenu.updateCurrent}">
    <f:param name="current" value="Consult"/>
    </rich:panelMenuItem>
    </rich:panelMenuGroup>
    <rich:panelMenuGroup label="Fonctions">
    <rich:panelMenuItem label="Item 2.1" action="#{panelMenu.updateCurrent}">
    <f:param name="current" value="Item 2.1"/>
    </rich:panelMenuItem>
    </rich:panelMenuGroup>
    </rich:panelMenu>
    <hr/>
    <hr/>
    </rich:tab>
    </rich:tabPanel>
    </rich:page>
    <rich:page contentType="text/html" >
    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="ajout_cours">
    <h:graphicImage value="./images/pic1.jpg" />
    <h:form>
    <rich:panel style="padding:0" headerClass="outpanelHeader">
    <center> <h1>TD</h1></center>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{cours.id_cours}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{cours.nom_cours}" style=" width : 170;"/><BR><BR>


    <h:commandButton value="Sign Me Up!"
    action="#{cours.insert}"/>
    </rich:panel>
    </h:form>
    </rich:tab>
    </rich:tabPanel>

    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="ajout_lecon">
    <h:graphicImage value="./images/pic1.jpg" />
    <br/>
    <hr/>
    <hr/>
    <h:form>
    <img src="./images/log.gif" border="0" hspace="22">
    <rich:comboBox suggestionValues="#{lec.lis}"
    directInputSuggestions="true" defaultLabel="suggestion" value="#{lec.id_cours}" width="140"/><BR><BR>

    <!-- <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{lec.id_cours}" style=" width : 170;"/><BR><BR> -->
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{lec.num_lec}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{lec.nom_lec}" style=" width : 170;"/><BR><BR>


    <h:commandButton value="Sign Me Up!"
    action="#{lec.insert}"/>

    </h:form>

    <hr/>
    <hr/>
    </rich:tab>
    </rich:tabPanel>

    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="ajout_tp">
    <h:graphicImage value="./images/pic1.jpg" />
    <h:form>
    <rich:panel style="padding:0" headerClass="outpanelHeader">
    <center> <h1>TD</h1></center>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{tp.id_tp}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{tp.intitulé_tp}" style=" width : 170;"/><BR><BR>


    <h:commandButton value="Sign Me Up!"
    action="#{tp.insert}"/>
    </rich:panel>
    </h:form>
    </rich:tab>
    </rich:tabPanel>

    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="ajout_td">
    <h:graphicImage value="./images/pic1.jpg" />
    <h:form>
    <rich:panel style="padding:0" headerClass="outpanelHeader">
    <center> <h1>TD</h1></center>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{td.id_td}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{td.theme_td}" style=" width : 170;"/><BR><BR>


    <h:commandButton value="Sign Me Up!"
    action="#{td.insert}"/>
    </rich:panel>
    </h:form>
    </rich:tab>
    </rich:tabPanel>

    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="ajout_eval">
    <h:graphicImage value="./images/pic1.jpg" />
    <h:form>
    <rich:panel style="padding:0" headerClass="outpanelHeader">
    <center> <h1>TD</h1></center>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{eval.nom_ress}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{eval.num_eval}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{eval.duree_eval}" style=" width : 170;"/><BR><BR>


    <h:commandButton value="Sign Me Up!"
    action="#{eval.insert}"/>
    </rich:panel>
    </h:form>
    </rich:tab>
    </rich:tabPanel>
    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="ajout_quest_eval">
    <h:graphicImage value="./images/pic1.jpg" />
    <h:form>
    <rich:panel style="padding:0" headerClass="outpanelHeader">
    <center> <h1>TD</h1></center>
    <img src="./images/log.gif" border="0" hspace="22">
    <rich:comboBox suggestionValues="#{quest.lis}"
    directInputSuggestions="true" defaultLabel="suggestion" value="#{quest.id_eval}" width="140"/><BR><BR>

    <!-- <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{lec.id_cours}" style=" width : 170;"/><BR><BR> -->
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{quest.num_quest}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{quest.nature_quest}" style=" width : 170;"/><BR><BR>


    <h:commandButton value="Sign Me Up!"
    action="#{quest.insert}"/>
    </rich:panel>
    </h:form>
    </rich:tab>
    </rich:tabPanel>

    <rich:tabPanel width = "900" height = "600" switchType="client">
    <rich:tab label="ajout_service">
    <h:graphicImage value="./images/pic1.jpg" />
    <h:form>
    <rich:panel style="padding:0" headerClass="outpanelHeader">
    <center> <h1>TD</h1></center>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{serv.num_sce}" style=" width : 170;"/><BR><BR>
    <img src="./images/log.gif" border="0" hspace="22">
    <h:inputText value="#{serv.nom_sce}" style=" width : 170;"/><BR><BR>


    <h:commandButton value="Sign Me Up!"
    action="#{serv.insert}"/>
    </rich:panel>
    </h:form>
    </rich:tab>

    </rich:tabPanel>
    </rich:page>
    </h:form>

    </body></html></f:view>
    merci d'avance

  2. #2
    Membre expérimenté Avatar de JulienFio
    Profil pro
    Inscrit en
    Novembre 2007
    Messages
    201
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Novembre 2007
    Messages : 201
    Par défaut
    Ne faudrait-il pas que tu es un formulaire par panel ? Là je vois que tu n'a qu'un seul formulaire pour tous tes panels

Discussions similaires

  1. probleme avec jsf primefaces
    Par lordboss dans le forum JSF
    Réponses: 1
    Dernier message: 13/05/2013, 13h39
  2. Probleme avec JSF
    Par Narouto dans le forum Langages de programmation
    Réponses: 1
    Dernier message: 18/07/2012, 00h02
  3. probleme avec jsf et le framework Exadel Fiji
    Par riadhhwajdii dans le forum JSF
    Réponses: 5
    Dernier message: 10/02/2010, 12h07
  4. Probleme avec jsf et jboss 5
    Par Philcmoi dans le forum JSF
    Réponses: 6
    Dernier message: 05/01/2010, 09h24
  5. Probleme avec JSF et selectOneMenu
    Par aniss77 dans le forum JSF
    Réponses: 25
    Dernier message: 01/12/2009, 13h48

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo