0 Replies Latest reply on May 12, 2010 1:36 AM by Neerou b

    File include in a modalPanel

    Neerou b Newbie

      Hello everyone,

       

      I am currently trying too integrate modal panels in my project.  The modal panel displays well. (Followed the examples at Richfaces demo). The issue is the text I want to display in the modal panel, I want it to be included by a proper tag. I have tried <ui: include> , <a:inlcude> but the text does not appear on the modal panel.

       

      I would be highly grateful if anyone can please help me with this issue?

       

      some code excerpts below:

       

       

       

      <rich:modalPanel id="premium_user_descPanel" autosized="true" height="500"  width="500"
                  keepVisualState="false" >
                  <div>
                   <f:facet name="controls">
                 
                          <a:include viewId="fragments/premium_user_desc.xhtml"/>                
             
                  </f:facet>
                  <f:view>
      <ui:include src="fragments/premium_user_desc.xhtml"/>
      </f:view>
                 

                  <h:commandButton type="reset"
                      styleClass="violet" value="#{messages['registration.close']}"
                      onclick="Richfaces.hideModalPanel('premium_user_descPanel');" /></div>
              </rich:modalPanel>

      The text I want to be included

       

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition 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:rich="http://richfaces.org/rich"
          xmlns:s="http://jboss.com/products/seam/taglib"
          xmlns:tnt="http://www.testntrust.com/components">
         
          <ui:define name="head">
              <title>#{messages['premiumUser.title']}</title>       
          </ui:define>
         
          <ui:define name="main">
         
              <div>
                  <div>
                      <div>
                          <div>
                              <div align="left">
                                  <h2><img src="../static/images/logo_testntrust.gif" alt="" /> Devenir membre premium   </h2>
                                  <div>                               
                                      > Votre avis a de la valeur 
                                  </div>
                                  <div>
                                      Vous souhaitez donner un poids supérieur à votre avis dans la note donnée aux professionnels que vous évaluez. Vous bénéficiez d'offres spéciales et d'invitations exclusives.
                                  </div>
                                  <br/><br/>
                                  <div style="float: left">
                                      <img src="../static/images/patch_work/silouhettes/silhouette_premium.gif" alt="" />
                                  </div>
                                  <div >                               
                                      <strong>C'est simple : il suffit pour cela de compléter votre profil à 100%. </strong><br/><br/>
                                      <strong>Devenir Membre Premium est Gratuit. </strong>
                                  </div>   
                                  <br/><br/>
                                  Vous pouvez le faire tout de suite, dès la première inscription ou plus tard en vous rendant dans votre espace Mon Testntrust.                        
                                  <br/><br/>
                                  Le Membre Premium possède tous les avantages du Membre Access, avec en plus :
                                  <div >
                                      <img src="../static/images/patch_work/numeros/1_bleu.gif" alt="" />
                                      L'opportunité de recevoir des offres spéciales qui lui sont réservées ;
                                  </div>
                                  <div >
                                      <img src="../static/images/patch_work/numeros/2_bleu.gif" alt="" />
                                      La décision du niveau de sollicitations qu'il accepte de recevoir dans sa messagerie Testntrust ; 
                                  </div>
                                  <div >
                                      <img src="../static/images/patch_work/numeros/3_bleu.gif" alt="" />
                                      L'avantage de voir sa note gagner en poids lorsqu'il exprime sa satisfaction : sa contribution pèse plus dans la note;
                                  </div>
                                  <div >
                                      <img src="../static/images/patch_work/numeros/4_bleu.gif" alt="" />
                                      La possibilité, s'il le désire, de postuler pour devenir Expert dans un domaine précis (prochainement sur Testntrust). Après examen et acceptation de sa candidature, il pourra, en tant que Membre Expert, faire partager sa passion et publier des articles sur Testntrust autour de son domaine d'expertise.
                                  </div>
                                  <br/><br/><br/><br/><br/>
                                  <h:form >
                                  <div>       
                                      <h:commandButton action="#{registration.returnToRegistration}" value="#{messages['premiumUser.return']}" >
                                          <f:param name="cid"/>
                                          <s:conversationPropagation id="returnToRegistration" type="join"/>
                                      </h:commandButton>               
                                  </div>   
                                  </h:form>                                                                                                           
                              </div>
                          </div>
                      </div>
                  </div>
              </div>
             
          </ui:define>
                   
      </ui:composition>

      Regards

      Neerou