ICEfaces
  1. ICEfaces
  2. ICE-7334

Modify PanelSeries to allow its children to be rendered as a grid.

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.2
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      WebSphere Application Server 6.1, Java 1.5 (IBM J9), AIX / Tomcat 5.5, Java 1.5.0_21 (SUN), Windows

      Description

      Currently <ice:panelSeries> 'stamps' its contents as if it were a table with only one column (ie http://wiki.icefaces.org/display/ICE/Panel+Series). There are, however, people interested on showing its children as if it were a table with 'n' columns, as if it where a PanelGrid. Although the IceFaces component showcase shows a 2 column PanelSeries, this is achieved through css, through the 'align' attribute, so only two columns can be obtained.

      The icefaces forum reference attached to this issue proposes using a <ui:repeat> component inside an <ice:panelGrid>, but this approach doesn't work as the <ice:panelGrid> considers the <ui:repeat>.

      Using a <c:forEach> is not an option either since its children cannot 'see' the value of 'var', as 'var' only exists while the view is being created. This issue is discussed here: http://www.ninthavenue.com.au/blog/c:foreach-vs-ui:repeat-in-facelets

      The solution would be to modify PanelSeriesRenderer so it uses a table with n columns instead of a div for rendering its components, effectively making it a mix of the current PanelSeriesRenderer and GridRenderer classes, then adding a "cols" attribute to PanelSeries.

      Additionaly, a new "layout" attribute (grid | group) could be added to PanelSeries so the new PanelSeriesRenderer could fall back to using a div as it is currently done.

        Activity

        Víctor Downs created issue -
        Víctor Downs made changes -
        Field Original Value New Value
        Attachment ICE-7334.zip [ 13760 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 1.8.3 [ 10211 ]
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Assignee Priority P2
        Community Contribution [Yes]
        Assignee Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 2.1 [ 10241 ]
        Ken Fyten made changes -
        Fix Version/s 3.1 [ 10312 ]
        Fix Version/s 1.8.3 [ 10211 ]
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Fix Version/s 3.0 [ 10241 ]
        Adnan Durrani made changes -
        Assignee Adnan Durrani [ adnan.durrani ] Ken Fyten [ ken.fyten ]
        Evgheni Sadovoi made changes -
        Salesforce Case [5007000000MIL9d]
        Ken Fyten made changes -
        Fix Version/s EE-1.8.2.GA_P05 [ 10331 ]
        Assignee Priority P2
        Ken Fyten made changes -
        Fix Version/s 3.2 [ 10338 ]
        Fix Version/s 3.1 [ 10312 ]
        Migration made changes -
        Fix Version/s 3.3 [ 10370 ]
        Fix Version/s EE-1.8.2.GA_P05 [ 10331 ]
        Fix Version/s 3.2 [ 10338 ]
        Ken Fyten made changes -
        Fix Version/s 3.3 [ 10370 ]
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Víctor Downs
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: