Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using <f:facet name="header"> in <h:panelGrid>

843842Sep 27 2006 — edited Dec 23 2006
I'm battling with it for a week now...
I'm trying to create a table with 3 columns and to have header for each column.
This, don't display headers at all :
        <h:panelGrid styleClass="Context" columns="3">
            <h:panelGroup>
                <f:facet name="header">
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
                </f:facet>
                <h:outputText value="null"/>
            </h:panelGroup>
            <h:panelGroup>
                <f:facet name="header">
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
                </f:facet>
                <h:inputText value="#{PropertyType.typeDescription}" required="true"/>
            </h:panelGroup>
            <h:panelGroup>
                <f:facet name="header">
                    <h:outputText value=""/>
                </f:facet>
                <h:commandButton value="#{prompts.action_CREATE}"  action="#{PropertyType.Create}"/>
            </h:panelGroup>
        </h:panelGrid>
While this compress all headers into one <th>
        <h:panelGrid styleClass="Context" columns="3">
            <f:facet name="header">
                <h:panelGroup>
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
                    <h:outputText value=""/>
                </h:panelGroup>
            </f:facet>
            <h:outputText value="null"/>
            <h:inputText value="#{PropertyType.typeDescription}" required="true"/>
            <h:commandButton value="#{prompts.action_CREATE}"  action="#{PropertyType.Create}"/>
        </h:panelGrid>
Any help ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2007
Added on Sep 27 2006
4 comments
398 views