2016-07-22 1 views
1

캐 노벨 안에 OneMenu를 사용하여 managedBean의 속성을 설정하려고했지만 작동하지 않습니다.캐 러셀 안에 OneMenu를 사용할 수 없습니다

회전식 메뉴가없는 OneMenu를 테스트하면 제대로 작동하므로 문제는 회전식 메뉴 안에 있다고 생각합니다.

여기에 무슨 일이 벌어지고 있는지에 대한 아이디어가 있습니까? plz 도움.

이 내 xhtm 페이지입니다 : 잘못 초기화

<!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" 
    template="/template/template.xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:p="http://primefaces.org/ui"> 


    <ui:define name="pageContent"> 


     <h:form id="form1"> 

      <br /> 
      <br /> 
      <br /> 

      <p:carousel value="#{homeBean.doInstances()}" headerText="Bootstrap VM " var="vm" itemStyle="text-align:center" responsive="true"> 
       <p:panelGrid columns="2" columnClasses="label,value" layout="grid" style="margin: 0 auto;" styleClass="ui-panelgrid-blank"> 
        <f:facet name="header"><p:graphicImage name="images/instance.jpg" /></f:facet> 

         <p:panelGrid columns="2" style="margin: 0 auto;"> 
          <h:outputText value="name" /> 
          <h:outputText value="#{vm.name}" /> 
          <h:outputLabel value="ip" /> 
          <h:outputLabel value="#{vm.url}" /> 

          <p:outputLabel value="Configuration" /> 


          <p:selectOneMenu id="recepie3" value="#{bootstrapBean.recipeSelected}"> 
           <f:selectItem itemLabel="Select One Recipie " itemValue="" /> 
           <f:selectItems value="#{bootstrapBean.selectItems}" /> 
          </p:selectOneMenu> 

          <p:commandButton value="Bootstrap" ajax="false" validateClient="true" actionListener="#{bootstrapBean.bootstrapSelectedVm(vm.url)}" /> 

         </p:panelGrid> 


       </p:panelGrid> 

       <f:facet name="footer" style="margin: 0 auto;"> 

        <p:panelGrid columns="3" columnClasses="label,value" layout="grid" style="margin: 0 auto;" styleClass="ui-panelgrid-blank"> 

         <h:outputLabel>Bootstrap All VMs :</h:outputLabel> 
         <p:selectOneMenu id="recepie2" value="#{bootstrapBean.recipeSelected}"> 
           <f:selectItem itemLabel="Select One Recipie " itemValue="" /> 
           <f:selectItems value="#{bootstrapBean.recipies}" /> 
         </p:selectOneMenu> 

         <p:commandButton value="Bootstrap" ajax="false" validateClient="true" actionListener="#{bootstrapBean.bootstrapAllVMs()}" /> 
        </p:panelGrid> 
       </f:facet> 

      </p:carousel> 



     </h:form> 



    </ui:define> 

</ui:composition> 
+0

안녕하세요,이 문제를 해결 했습니까? –

답변

-1

태그 라이브러리, 그와 작업을 수정하시기 바랍니다.

+0