Changed controllers to handle table row edit.
[simdecs.git] / web / bn.xhtml
index e4df77e..147a7d5 100644 (file)
             <p:tab id="tab1" title="Redes Bayesianas">
                 <h:form>
                     <p:fileUpload widgetVar="uploader" height="48" width="48"  
-                                    fileUploadListener="#{fileUploadController.handleFileUpload}"   
-                                    image="/img/bn/browse.png" customUI="true"
-                                    multiple="true" label="Selecione..." allowTypes="*.xml;" description="Images"
-                                    update="tabView"/> 
+                                  fileUploadListener="#{fileUploadController.handleFileUpload}"   
+                                  image="/img/bn/browse.png" customUI="true"
+                                  multiple="true" label="Selecione..." allowTypes="*.xml;" description="Images"
+                                  update="tabView"/> 
                     <h:outputLink value="#" title="Upload" onclick="uploader.upload();" 
-                                    style="font-weight:bold;color:#616D7E">Enviar Redes Bayesianas
+                                  style="font-weight:bold;color:#616D7E">Enviar Redes Bayesianas
                     </h:outputLink>
                 </h:form>            
                 <h:form>    
@@ -78,7 +78,6 @@
                             <p:column headerText="id">                                 
                                 <h:outputText value="#{node.id}" />                                
                             </p:column>  
-
                             <p:column headerText="Nome">  
                                 <p:cellEditor>  
                                     <f:facet name="output">  
                                     <f:facet name="input">  
                                         <h:selectOneMenu value="#{node.nodeRole}" >  
                                             <f:selectItems value="#{nodeRoleController.nodeRoles}"  
-                                                           var="nodeType"   
+                                                           var="nodeRole"   
                                                            itemLabel="#{nodeRole}"  
                                                            itemValue="#{nodeRole}" />  
                                         </h:selectOneMenu>  
                     <h:commandLink action="/bn/node/Create.xhtml" value="Criar novo nodo"/>
                 </h:form>
             </p:tab>
-            
+
             <p:tab id="tab3" title="Perguntas">
                 <h:form>
                     <br></br>
                     <h:commandLink action="/bn/question/Create.xhtml" value="Criar nova pergunta"/>
                 </h:form>
             </p:tab>
-            
+
             <p:tab id="tab4" title="Respostas">
                 <h:form>
                     <br></br>