How to add an empty element to the JSFGrid panel?

How to add an empty element to the JSF panel?

This is my complete table:

<h:panelGrid columns="2"> <h:outputLabel value="row1"/> <h:outputLabel value="row2"/> <h:outputLabel value="row1"/> <h:outputLabel value="row2"/> <h:outputLabel value="row1"/> <h:outputLabel value="row2"/> </h:panelGrid> 

How to add an empty element? What is the recommended way? (adding an empty output label? That doesn't seem right.)

 <h:panelGrid columns="2"> <h:outputLabel value="row1"/> <h:outputLabel value="row2"/> <!-- This need to be emtpy --> <h:outputLabel value="row2"/> <h:outputLabel value="row1"/> <h:outputLabel value="row2"/> </h:panelGrid> 
+8
jsf datagrid element components
source share
1 answer

Use the empty <h:panelGroup> .

 <h:panelGrid columns="2"> <h:outputLabel value="row1"/> <h:outputLabel value="row2"/> <h:panelGroup /> <h:outputLabel value="row2"/> <h:outputLabel value="row1"/> <h:outputLabel value="row2"/> </h:panelGrid> 

See also:


Not tied to a specific problem, are you in basic HTML terms knowledgeable about when you should use <h:outputLabel> instead of <h:outputText> ? If not, carefully read Target h: outputLabel and its "for" attribute .

+15
source share

All Articles