ICEfaces
  1. ICEfaces
  2. ICE-10968

Unable to pick date with ace:dateTimeEntry on Pluto

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Apache Pluto
    • Assignee Priority:
      P1

      Description

      - Start Apache Pluto 2.0.2 and navigate to http://localhost:8080/pluto/portal

      - Username: pluto

      - Password: pluto

      - Copy the attached icefaces4-portlet-4.0.0-SNAPSHOT.war artifact to the tomcat/webapps folder

      - Using the Pluto Admin page, add a new page named "ICE4" and then add the "ICEfaces4" portlet to it.

      - Navigate to the new ICE4 page

      - Click in the "Date of Birth" field at try to select a date from the popup calendar

      If the bug is fixed then the date will be selected and appear in the textbox.

      Otherwise, if the bug still exists then there will be an error in the browser's console log:
      Uncaught TypeError: Cannot read property 'length' of undefined
      http://localhost:8080/pluto/portal/ICE4/__rsicefaces4-portlet-40x200x20-SNAPSHOT0x21!2241321%7C0?ln=ice.core&javax.faces.resource=bridge.js

        Activity

        Hide
        Mircea Toma added a comment - - edited

        No, Liferay will not render the script tag. But at least it renders its content in a different place:

        <div id="bottomJS">
            .....
        </div>
        <script type="text/javascript">
        .....ice.setupBridge("_1_WAR_icefaces4portlet_INSTANCE_vV75ldMObRSc_:vv20q4nh4_icefaces_config","v20q4nh4","jdiky5fkvu",{reloadOnUpdateFailure:!1,deltaSubmit:!1,focusManaged:!0,disableDefaultErrorPopups:!1,standardFormSerialization:!1,sendDisposeWindow:!1,blockUIOnSubmit:!1,clientSideElementUpdateDetermination:!1,parameterPrefix:""}); .......
        </script>
        
        Show
        Mircea Toma added a comment - - edited No, Liferay will not render the script tag. But at least it renders its content in a different place: <div id= "bottomJS" > ..... </div> <script type= "text/javascript" > .....ice.setupBridge( "_1_WAR_icefaces4portlet_INSTANCE_vV75ldMObRSc_:vv20q4nh4_icefaces_config" , "v20q4nh4" , "jdiky5fkvu" ,{reloadOnUpdateFailure:!1,deltaSubmit:!1,focusManaged:!0,disableDefaultErrorPopups:!1,standardFormSerialization:!1,sendDisposeWindow:!1,blockUIOnSubmit:!1,clientSideElementUpdateDetermination:!1,parameterPrefix:""}); ....... </script>
        Hide
        Neil Griffin added a comment -

        Is it OK that it Liferay renders it at the bottom of the page? That is a Liferay-only optimization that we have in the bridge. If it is not rendered at all in Pluto, then that means we have a bug in the bridge and this issue can be closed.

        Show
        Neil Griffin added a comment - Is it OK that it Liferay renders it at the bottom of the page? That is a Liferay-only optimization that we have in the bridge. If it is not rendered at all in Pluto, then that means we have a bug in the bridge and this issue can be closed.
        Hide
        Mircea Toma added a comment -

        Yes, it's fine if the script is rendered at the bottom of the page. I'll close the issue then.

        Show
        Mircea Toma added a comment - Yes, it's fine if the script is rendered at the bottom of the page. I'll close the issue then.
        Hide
        Mircea Toma added a comment -

        This is not an issue with ICEfaces. See above.

        Show
        Mircea Toma added a comment - This is not an issue with ICEfaces. See above.
        Hide
        Kyle Stiemann added a comment -

        This issue is a bug in Liferay Faces. We have created FACES-2615 to track the issue, and I hope to commit a fix today.

        Show
        Kyle Stiemann added a comment - This issue is a bug in Liferay Faces. We have created FACES-2615 to track the issue, and I hope to commit a fix today.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: