ICEfaces
  1. ICEfaces
  2. ICE-1476

Multiple DataTable Headers with allowable Colspan

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6DR#3
    • Fix Version/s: 1.7Beta1, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      any

      Description

      the possibility to have at least two header rows whith the colspan parameter implemented

        Activity

        Hide
        Pablo Almeida added a comment -

        I think that the datatable component will be improve as son as possible. For example edit into cells but naturally not including other controls, only using an additional attribute, introduce other controls like drop downs, crosstab functions, master detail, and all functions in edit mode too, the possibility to reuse. It control will be more flexible like an flex grid in V basic or datawindow in power builder or grid in backbase framework. I think that this control is the most important control in the development process and Icefaces will be put more focus in that.

        Regards
        Pablo

        Show
        Pablo Almeida added a comment - I think that the datatable component will be improve as son as possible. For example edit into cells but naturally not including other controls, only using an additional attribute, introduce other controls like drop downs, crosstab functions, master detail, and all functions in edit mode too, the possibility to reuse. It control will be more flexible like an flex grid in V basic or datawindow in power builder or grid in backbase framework. I think that this control is the most important control in the development process and Icefaces will be put more focus in that. Regards Pablo
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Fix Version/s 1.7Beta1 [ 10121 ]
        Fix Version/s 1.7 [ 10080 ]
        Hide
        Adnan Durrani added a comment -

        Description added to the .Tld doc of the ice:column component. revision15543

        Show
        Adnan Durrani added a comment - Description added to the .Tld doc of the ice:column component. revision15543
        Hide
        Adnan Durrani added a comment -

        style and the styleClass attributes are applied to the none header columns as well. revision 15539

        Show
        Adnan Durrani added a comment - style and the styleClass attributes are applied to the none header columns as well. revision 15539
        Hide
        Adnan Durrani added a comment -

        Description added to the columnGroup component. 15538

        Show
        Adnan Durrani added a comment - Description added to the columnGroup component. 15538
        Adnan Durrani made changes -
        Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        Adnan Durrani made changes -
        Attachment columnGroup.jpg [ 10779 ]
        Hide
        Adnan Durrani added a comment -

        Example added to the component showcase: 15529

        To support multiple dataTable headers, we have added the following two new components and two new attributes to the ice:column component "rowspan" and "colspan":

        • ice:columnGroup (must need to be a child of table level "facet" named with either "header" or "footer")
        • ice:headerRow (represents a single line in the header, must need to be a child of ice:columnGroup. ice:columnGroup can have one or more headerRow components)

        <ice:dataTable....>
        <f:facet name="header">
        <ice:columnGroup>
        <ice:headerRow>
        <ice:column rowspan="2">
        <ice:outputText value="First Name"/>
        </ice:column>
        <ice:column rowspan="2">
        <ice:outputText value="Last Name"/>
        </ice:column>
        <ice:column colspan="2">
        <ice:outputText value="Contact Info"/>
        </ice:column>
        </ice:headerRow>

        <ice:headerRow>
        <ice:column>
        <ice:outputText value="Phone"/>
        </ice:column>
        <ice:column>
        <ice:outputText value="Email"/>
        </ice:column>

        </ice:headerRow>
        </ice:columnGroup>
        </f:facet>

        <ice:column>
        <ice:outputText id="firstName" value="#

        {person.firstName}

        "/>
        </ice:column>

        <ice:column>
        <ice:outputText id="lastName" value="#

        {person.lastName}

        "/>
        </ice:column>

        <ice:column>
        <ice:outputText id="phoneNo" value="#

        {person.phoneNo}

        "/>
        </ice:column>

        <ice:column>
        <ice:outputLink id="mailto" value="mailto:#

        {person.email}">
        <ice:outputText id="email" value="#{person.email}

        "/>
        </ice:outputLink>
        </ice:column>

        </ice:dataTable>
        Please see the attached image to see the rendered result of the above snippet.

        Show
        Adnan Durrani added a comment - Example added to the component showcase: 15529 To support multiple dataTable headers, we have added the following two new components and two new attributes to the ice:column component "rowspan" and "colspan": ice:columnGroup (must need to be a child of table level "facet" named with either "header" or "footer") ice:headerRow (represents a single line in the header, must need to be a child of ice:columnGroup. ice:columnGroup can have one or more headerRow components) <ice:dataTable....> <f:facet name="header"> <ice:columnGroup> <ice:headerRow> <ice:column rowspan="2"> <ice:outputText value="First Name"/> </ice:column> <ice:column rowspan="2"> <ice:outputText value="Last Name"/> </ice:column> <ice:column colspan="2"> <ice:outputText value="Contact Info"/> </ice:column> </ice:headerRow> <ice:headerRow> <ice:column> <ice:outputText value="Phone"/> </ice:column> <ice:column> <ice:outputText value="Email"/> </ice:column> </ice:headerRow> </ice:columnGroup> </f:facet> <ice:column> <ice:outputText id="firstName" value="# {person.firstName} "/> </ice:column> <ice:column> <ice:outputText id="lastName" value="# {person.lastName} "/> </ice:column> <ice:column> <ice:outputText id="phoneNo" value="# {person.phoneNo} "/> </ice:column> <ice:column> <ice:outputLink id="mailto" value="mailto:# {person.email}"> <ice:outputText id="email" value="#{person.email} "/> </ice:outputLink> </ice:column> </ice:dataTable> Please see the attached image to see the rendered result of the above snippet.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15529 Thu Jan 10 11:55:16 MST 2008 adnan.durrani columnGroup example added: related to ICE-1476
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/resources/messages.properties
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/columnGroup.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/navigation/TreeNavigation.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/showcase.jspx
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Adnan Durrani added a comment -

        revision 15525

        Show
        Adnan Durrani added a comment - revision 15525
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15525 Wed Jan 09 19:24:29 MST 2008 adnan.durrani Fix for ICE-1476 (Multiple DataTable Headers with allowable Colspan)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/HTML.java
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/components/ice-columngroup-renderer.xml
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/components/ice-headerrow-component.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/CSS_DEFAULT.java
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/components/ice-headerrow-renderer.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/royale/royale.css
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/UIColumn.java
        Commit graph ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/HeaderRow.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/xp/xp-portlet.css
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_properties/ice-headerrow-props.xml
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_properties/ice-columngroup-props.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_properties/ice-uicolumn-props.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/resources/css/xp/xp.css
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/extended-faces-config.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/conf/META-INF/faces-config.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/TableRenderer.java
        Commit graph ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/ColumnGroup.java
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/components/ice-columngroup-component.xml
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Ken Fyten made changes -
        Assignee Adnan Durrani [ adnan.durrani ]
        Hide
        Ken Fyten added a comment -

        Also see this thread which includes an image showing desired colspan and rowspan capabilities: http://www.icefaces.org/JForum/posts/list/5951.page

        Show
        Ken Fyten added a comment - Also see this thread which includes an image showing desired colspan and rowspan capabilities: http://www.icefaces.org/JForum/posts/list/5951.page
        Ken Fyten made changes -
        Field Original Value New Value
        Fix Version/s 1.7 [ 10080 ]
        Philip Breau created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            14 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: