문제

I have some drop-down lists which worked fine but I needed to display them inside panels/grids and now it does not work, could you help me ?

EDITED

Did I make things too complicated and they need to get simplified ?

Here is the structure of the code (simplified)

<p:layoutUnit>
   <h:form>
      <p:panel>
           <ui:repeat>

                <p:panelGrid>
                     <p:row rendered="#{myBean.conditionMet}">
                        <p:column>
                            <h:outputText value="choose a value"
                       </p:column>

                        <p:column>
                            <p:selectOneMenu value="codificationBean">    
                                 <f:selectItems value="#{theBean.list}" />           
                            </p:selectOneMenu>
                     </p:column>
                  </p:row>
            </p:panelGrid>
        </ui:repeat>

     </p:panel>
    </h:form>
   </p:layoutUnit>
도움이 되었습니까?

해결책

I use

<c:forEach>

instead of

  <ui:repeat>

after the

<p:panelGrid>

Now it works

and now it works

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top