3 Replies Latest reply on Nov 15, 2013 1:06 PM by bleathem

    RichFaces 5 compatibility with JSF 2.1 or with RF4 ?

    jhuska

      Hello all,

       

      during investigating [RF-13348] pickList - columnClass attribute behaves differently than in RF4 - JBoss Issue Tracker

      I have found out that RichFaces 5 pickList attribute columnClass is incompatible with the RichFaces 4 one.

       

      However, according to Brian, the RF5 one behaves as JSF 2.1. dictates.

       

      What will be our strategy for this ? Will we adhere JSF 2.1 or the previous releases ?

       

      Thanks

      Juro

        • 1. Re: RichFaces 5 compatibility with JSF 2.1 or with RF4 ?
          bleathem

          Juraj Húska wrote:

           

          I have found out that RichFaces 5 pickList attribute columnClass is incompatible with the RichFaces 4 one.  However, the RF5 one behaves as JSF 2.1. dictates.

           

          Te be clear, the RF 4 approach:

          Assigns one or more space-separated CSS class names to the columns of the table. If the CSS class names are comma-separated, each class will be assigned to a particular column in the order they follow in the attribute. If you have less class names than columns, the class will be applied to every n-fold column where n is the order in which the class is listed in the attribute. If there are more class names than columns, the overflow ones are ignored.

           

          And the JSF approach:

          Comma-delimited list of CSS style classes that will be applied to the columns of this table. A space separated list of classes may also be specified for any individual column. If the number of elements in this list is less than the number of actual column children of the UIData, no "class" attribute is output for each column greater than the number of elements in the list. If the number of elements in the list is greater than the number of actual column children of the UIData, the elements at the posisiton in the list after the last column are ignored.

           

          This is a pretty significant disparity.  It seems to me we would benefit from an additional attribute that let's one toggle between the above approaches.  Or perhaps extending the syntax to indicate the columsn should be repeated.  eg.

           

          <r:dataTable ... columnClasses = "class1, class2, *" >
          

           

          where the final splat indicates we want the classes to repeat.

          • 2. Re: RichFaces 5 compatibility with JSF 2.1 or with RF4 ?
            bleathem

            On 13-11-15 08:51 AM, Brian Leathem wrote:

            perhaps extending the syntax to indicate the columnClasses should be repeated.

             

            I've been thinking about this some more, abd I think this is the way to

            go.  I'll implement it in the widget using "*"  as the repeat character.

            _______________________________________________

            richfaces-dev mailing list

            richfaces-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/richfaces-dev

             

            • 3. Re: RichFaces 5 compatibility with JSF 2.1 or with RF4 ?
              bleathem

              I've created a richwidget issue to track this implementation:

               

              https://github.com/richwidgets/richwidgets/issues/135

              _______________________________________________

              richfaces-dev mailing list

              richfaces-dev@lists.jboss.org

              https://lists.jboss.org/mailman/listinfo/richfaces-dev