문제

I would like to create a <h:panelGrid> with one column. However in one row I would like to fit two components together in one cell.

E.g.

<h:panelGrid columns="1">
     <h:outputText value="ROW 1 A"/>
     <h:outputText value="ROW 1 B"/>

     <h:outputText value="ROW 2"/>
</h:panelGrid>

Should end up in two rows

ROW 1 A ROW 1 B
ROW 2

However, it currently ends up as

ROW 1 A
ROW 1 B
ROW 2

How to put multiple components in a single cell of <h:panelGrid>?

도움이 되었습니까?

해결책

how about wrapping with single <h:panelGroup>

<h:panelGroup>
    <h:outputText value="ROW1 A"/>
    <h:outputText value="ROW 1 B"/>
</h:panelGroup>

다른 팁

Wrap them in a <h:panelGroup>. Here is an example.

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