5 Replies Latest reply on Feb 23, 2018 12:51 PM by Michal Petrov

    RichFaces + Mobile

    Igor Entaltsev Newbie

      Hello,

      I am a front-end web dev who needs to make a project at work responsive. The situation is such that the project uses richfaces 3.3.1.

      I have googled around and found this article ( Getting Started With Mobile RichFaces ), however it talks about RichFaces 4, not the 3x version that my projects uses.

      Moreover, this article (RichFaces Migration Guide. 3.3.x - 4.x Migration. ) is talking about migrating to Richfaces 4.

      Am I correct to assume that migration from v3 to v4 must come before making any attempts to make the project responsive?

       

      Is it difficult to make v3.3.1 responsive? I have tried to make a rich:toolBar responsive, but it uses <table> and so far I haven't found a way to make it render <div>s/

      Also resultant DOM structure doesn't correspond to that used by Bootstrap.

       

      Thank you.

        • 1. Re: RichFaces + Mobile
          Michal Petrov Master

          igoryen  wrote:

           

          Am I correct to assume that migration from v3 to v4 must come before making any attempts to make the project responsive?

           

          Pretty much. I mean RF 3.3.1 is almost 10 years old, back then responsive layout wasn't a thing. As for making the toolbar render as a div - the only way to do that would be to modify the source code, which isn't very difficult but you're still better off migrating.

          • 2. Re: RichFaces + Mobile
            Igor Entaltsev Newbie

            michpetrov  wrote:

             

            As for making the toolbar render as a div - the only way to do that would be to modify the source code, which isn't very difficult but you're still better off migrating.

            Could you please provide more details?

            By modifying the source code, do you mean the code in the .xhtml file?

            I have tried decorating <rich:toolBarGroup > with layout="block" but this seems to be ignored.

            Thank you!

             

             

            • 3. Re: RichFaces + Mobile
              Michal Petrov Master

              I meant the source code of RichFaces. The components have JSP templates that control what ends up on the page.

              • 4. Re: RichFaces + Mobile
                Igor Entaltsev Newbie

                michpetrov  wrote:

                 

                I meant the source code of RichFaces. The components have JSP templates that control what ends up on the page.

                Thank you very much for answering my questions!

                 

                Does this mean I would need to download the RichFaces code, change its implementation, then compile it, and then use it?

                 

                If not, could you please tell me where I could find the directory in the project?

                 

                Thank you very much again!

                • 5. Re: RichFaces + Mobile
                  Michal Petrov Master

                  Does this mean I would need to download the RichFaces code, change its implementation, then compile it, and then use it?

                  Essentially, the source code is here. Unfortunately I can't help with the build, never worked with it.