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

JSF Java Discussion :

problem avec modalpanel de rich


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Mars 2008
    Messages
    186
    Détails du profil
    Informations forums :
    Inscription : Mars 2008
    Messages : 186
    Par défaut problem avec modalpanel de rich
    bonjour ;

    j'ai un problème avec mon modalpanel ; il ne me retourne rien il fait les traitements qui sont incluses dans le modalpanel, mais ne retourn rien :



    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    
    
    <rich:modalPanel id="paneladd" width="650" height="250">
      <f:facet name="header">
            <h:outputText value="New Batch" />
      </f:facet>
      <f:facet name="controls">
           <span style="cursor: pointer"onclick="javascript:Richfaces.hideModalPanel('paneladd') ">X</span>
      </f:facet>
    <h:panelGrid columns="2" border="1">
         <h:outputLabel value="Usine"></h:outputLabel>
             <rich:comboBox defaultLabel="select..." value="#{centerPar.Us_name}">
               <f:selectItems value="#{list_Items.usList}" />
               <a4j:support event="onselect" action="#{cardBean.passerbatch}"
    reRender="batch11"></a4j:support>
             </rich:comboBox>
          <h:outputLabel value="Batch Number"></h:outputLabel>
              <h:outputText value="#{cardBean.batchnumber}" id="batch11</h:outputText>
    <h:outputLabel value="Cardbatch Type"></h:outputLabel>
    <h:selectOneRadio value="#{cardBean.new_batch.batchStatus}"><f:selectItems value="#{centerPar.c_batchstatutItems}" />
    </h:selectOneRadio>
    <h:outputLabel value="Cardbatch Type"></h:outputLabel>
    <h:selectOneRadio value="#{cardBean.new_batch.cardbatchType}">
    <f:selectItem itemLabel="Manual" itemValue="M" />
    <f:selectItem itemLabel="Automatic" itemValue="A" />
    </h:selectOneRadio>
    <h:outputLabel value=" Creation Date"></h:outputLabel>
    <h:outputText value="#{cardBean.date}"></h:outputText>
    <h:commandButton value="OK" actionListener="#{cardBean.add_batch}"></h:commandButton>
    <a4j:commandButton value="Cancel"						oncomplete="javascript:Richfaces.hideModalPanel('paneladd');" />
    </h:panelGrid>
    </rich:modalPanel>


    donc ce qui est n'est pas retourné par contre il fait un traitement (appelle d une procédure stocké) pour afficher ce qui en vert

  2. #2
    Rédacteur

    Profil pro
    Inscrit en
    Juin 2003
    Messages
    4 184
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 4 184
    Par défaut
    salut

    il n'ya pas de formulaire dans ton modalPanel..

  3. #3
    Membre confirmé
    Inscrit en
    Mars 2008
    Messages
    186
    Détails du profil
    Informations forums :
    Inscription : Mars 2008
    Messages : 186
    Par défaut
    j ai deja declaré mon formulaire au debut avant le modalpanel

    dc

    jai en gros :

    <f:view>
    <h:form>
    corps de mon jsf
    </.....

  4. #4
    Rédacteur

    Profil pro
    Inscrit en
    Juin 2003
    Messages
    4 184
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 4 184
    Par défaut
    il faut avoir un form dans le modalPanel separé de l'autre form
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
     
    <f:view>
    <rich:modalPanel>
    <f:facet/>
    <a4j:outputPanel>
    <h:form>
    ..
    ..
    </hform>
    </a4j:outputPanel>
    </rich:modalPanel>
     
    //autres composants
    <h:form>
    ..
    ..
    </h:form>
    /f:view>
    voilà ce que dit la doc de richafces:

    Important:

    In order to avoid a bug in IE, the root node of the dialog is moved on the top of a DOM tree. However, you should have a separate form inside the modal panel if you want to perform submits from this panel.

Discussions similaires

  1. probleme avec modalpanel
    Par joy84 dans le forum JSF
    Réponses: 3
    Dernier message: 03/12/2009, 13h50
  2. problem avec rich:paint2D
    Par iviath dans le forum JSF
    Réponses: 1
    Dernier message: 20/10/2008, 17h04
  3. Probleme avec <rich:fileUpload>
    Par hibao dans le forum JSF
    Réponses: 10
    Dernier message: 16/10/2008, 12h26
  4. Probleme avec Rich:panelMenu
    Par midos dans le forum JSF
    Réponses: 1
    Dernier message: 08/09/2008, 08h29
  5. Probleme avec rich:fileupload
    Par solarien dans le forum JSF
    Réponses: 6
    Dernier message: 21/08/2008, 17h06

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