How to put multiple components in one h: panelGrid cell

I would like to create a <h:panelGrid> with one column. However, on one line, I would like to combine the two components into one cell.

eg.

 <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 in two lines

ROW 1 A ROW 1 B
Row 2

However, at present it ends as

ROW 1 A
ROW 1 B
Row 2

How to put several components in one cell <h:panelGrid> ?

+7
source share
2 answers

how to wrap with a single <h:panelGroup>

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

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

+3
source

All Articles