Advertisement
Guest User

dialog

a guest
Jun 20th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.99 KB | None | 0 0
  1. <ui:composition xmlns="http://www.w3.org/1999/xhtml"
  2.                 xmlns:p="http://primefaces.org/ui"
  3.                 xmlns:ui="http://java.sun.com/jsf/facelets"                
  4.                 xmlns:h="http://java.sun.com/jsf/html"
  5.                 xmlns:f="http://java.sun.com/jsf/core"
  6.                 xmlns:udesc="http://java.sun.com/jsf/composite/udesc">
  7.  
  8.     <p:dialog header="#{msg.sceneUpper}"
  9.               widgetVar="dialogTarefa"              
  10.               modal="true"
  11.               height="550"
  12.               width="900"
  13.               resizable="false"
  14.               appendToBody="true"
  15.               id="dlgTarefa">
  16.         <h:panelGrid columns="2">
  17.             <h:outputText value="#{msg.project} : "/>
  18.             <h:outputText value="#{empty cadRoteiro.selecUnidade.projeto.titulo ? '-' : cadRoteiro.selecUnidade.projeto.titulo}"/>
  19.             <h:outputText value="#{msg.learningUnity} : "/>
  20.             <h:outputText value="#{empty cadRoteiro.selecUnidade.nome ? '-' : cadRoteiro.selecUnidade.nome}"/>                                
  21.         </h:panelGrid>
  22.         <h:form id="formCadastroTarefas"  onsubmit="">
  23.             <h:panelGrid columns="2">  
  24.                 <p:tabView>
  25.                     <p:tab title="#{msg.contents}">
  26.                         <p:dataTable emptyMessage="#{msg.noContentsFound}"
  27.                                      value="#{cadRoteiro.selecUnidade.conteudos}"
  28.                                      var="conteudo"
  29.                                      paginator="true"
  30.                                      paginatorPosition="top"
  31.                                      rows="5"  
  32.                                      paginatorTemplate="{CurrentPageReport}  
  33.                                      {FirstPageLink}
  34.                                      {PreviousPageLink}
  35.                                      {PageLinks}
  36.                                      {NextPageLink}
  37.                                      {LastPageLink}
  38.                                      {RowsPerPageDropdown}">
  39.                             <p:column>
  40.                                 <f:facet name="header">
  41.                                     #{msg.contents}
  42.                                 </f:facet>
  43.                                 <h:outputText value="#{conteudo.descricao}"/>
  44.                             </p:column>                      
  45.                         </p:dataTable>
  46.                     </p:tab>
  47.                     <p:tab title="#{msg.assessmentForms}">
  48.                         <p:dataTable emptyMessage="#{msg.noAssessmentFormsFound}"
  49.                                      value="#{cadRoteiro.selecUnidade.formasAvaliacao}"
  50.                                      var="formaAvaliacao"
  51.                                      paginator="true"
  52.                                      paginatorPosition="top"
  53.                                      rows="5"  
  54.                                      paginatorTemplate="{CurrentPageReport}  
  55.                                      {FirstPageLink}
  56.                                      {PreviousPageLink}
  57.                                      {PageLinks}
  58.                                      {NextPageLink}
  59.                                      {LastPageLink}
  60.                                      {RowsPerPageDropdown}">
  61.                             <p:column>
  62.                                 <f:facet name="header">
  63.                                     #{msg.assessmentForms}
  64.                                 </f:facet>
  65.                                 <h:outputText value="#{formaAvaliacao.descricao}"/>
  66.                             </p:column>                        
  67.                         </p:dataTable>
  68.                     </p:tab>
  69.                 </p:tabView>
  70.                 <h:panelGrid columns="1">
  71.                     <h:panelGrid columns="2">            
  72.                             <h:outputText value="#{msg.title}:"/>
  73.                             <p:inputText id="tituloSlide"
  74.                                          value="#{cadRoteiro.selecSlide.titulo}"
  75.                                          maxlength="50"                                    
  76.                                          size="48">
  77.                                 <f:validateLength maximum="50"/>
  78.                             </p:inputText>
  79.                     </h:panelGrid>
  80.                     <p:editor id="editorCena" widgetVar="editorDoSlide" value="#{cadRoteiro.selecSlide.descricao}" width="400" height="300">
  81.                     </p:editor>
  82.                     <h:panelGrid columns="2" style="width:100%;float:left;">
  83.                         <h:outputText value="Cena: " style="align:left;"/>
  84.                         <h:panelGrid columns="2" style="width:100%;float:right">
  85.                             <p:commandButton id="addSlide" style="float:right;"
  86.                                              value="#{msg.save}"                                      
  87.                                              actionListener="#{cadRoteiro.addSlide()}"
  88.                                              update=":tabUnidadeSlideTarefa:formTabelaSlides"
  89.                                              oncomplete="dialogTarefa.hide()"
  90.                                              />
  91.                             <p:commandButton id="cancelAddSlide" style="float:right;" value="#{msg.cancel}" oncomplete="dialogTarefa.hide()" />
  92.                         </h:panelGrid>
  93.                     </h:panelGrid>
  94.                 </h:panelGrid>
  95.             </h:panelGrid>
  96.         </h:form>
  97.     </p:dialog>
  98.  
  99. </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement