7 Replies Latest reply on Dec 5, 2008 9:23 AM by Andriy Samulyak

    rich:calendar and liferay

    Andriy Samulyak Newbie

      when I use rich:calendar in portlet in Liferay, rendering of calendar brakes Liferay: some functionality of Liferay portal stop working, and 3 javascript errors appears. When I use other rich components - all works ok.

      Can anybody help me?

      Thanks

        • 1. Re: rich:calendar and liferay
          Andriy Samulyak Newbie

          also I found out that wrong JavaScript imports were generated.

          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org.ajax4jsf.javascript.AjaxScript.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/ajax4jsf/javascript/scripts/form.js.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org.ajax4jsf.javascript.PrototypeScript.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/events.js.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/utils.js.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/json/json-dom.js.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/scriptaculous/effects.js.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/jquery/jquery.js.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/JQuerySpinBtn.js.jspx"></script>
          <script type="text/javascript" src="/registry/a4j/g/3_2_2.SR1org/richfaces/renderkit/html/scripts/calendar.js.jspx"></script>
          


          How can that be fixed?

          • 2. Re: rich:calendar and liferay
            Nick Belaevski Master

            Hi,

            Please post your web.xml and generated page code here

            • 3. Re: rich:calendar and liferay
              Andriy Samulyak Newbie

              I found out a reason of the problem. That is a conflict of jQuery.js of Liferay and jQuery.js of richfaces.

              When I remove jquery.js from richfaces-impl-3.2.2.GA.jar, all works ok, but in logs I receive an exception:

              Caused by: java.io.IOException: Could not get Input stream for resource: org/richfaces/renderkit/html/scripts/jquery/jquery.js
               at org.ajax4jsf.resource.ScriptRenderer.send(ScriptRenderer.java:54)
               at org.ajax4jsf.resource.InternetResourceBase.send(InternetResourceBase.java:376)
               at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:221)
               at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:157)
               at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:335)
               ... 23 more
              


              Can somebody help me how can I solve that conflict without getting that exception?

              • 4. Re: rich:calendar and liferay
                Andriy Samulyak Newbie

                problem solved. Thanks for help :)

                If some one is interest how to make richfaces work in Liferay, I'll put complete reference in few days

                • 5. Re: rich:calendar and liferay
                  Sverker Abrahamsson Novice

                  Hi,
                  I'd be very interested to hear how you managed to make richfaces work with Liferay. I assume that means that you've been able to use Jboss Portal Bridge?

                  • 6. Re: rich:calendar and liferay
                    Andriy Samulyak Newbie

                    yes, I used Jboss Portlet Bridge. Tomorrow i'll share document about configuring Richfaces in liferay