| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 
 |  
<p:tabView>
        <p:tab title="Questionnaire" id="questionnaire">
 
                <p:commandButton  id="showDialogButton" type="button" value="Ajouter un thème" onclick="dlg.show()" />  
 
                <p:dialog header="Quel est la dénomination de votre thème" appendToBody="true" widgetVar="dlg" resizable="false">  
                    <h:form id="form">  
                        <h:panelGrid columns="2" style="margin-bottom:10px">  
                            <h:outputLabel for="theme" value="Votre Thème :" />  
                            <p:inputText id="theme" value="#{questionnaireControler.theme}" />  
                        </h:panelGrid>  
                        <p:commandButton id="submitButton" value="Submit" update=":#{p:component('display')}" oncomplete="$('#showDialogButton').css('display', 'none'); dlg.hide();"/>  
                    </h:form>  
                </p:dialog>  
                <p:outputPanel id="display" style="display:block;margin-top:10px;font-weight: bold;" >  
                    <h:outputText id="name" value="#{questionnaireControler.theme}" rendered="#{not empty questionnaireControler.theme}" />
                    <h:graphicImage library="images" name="icones/annuler.gif"/>
                </p:outputPanel>  
        </p:tab>
 
... | 
Partager