2 Replies Latest reply on May 6, 2008 2:07 PM by Marc Sansa

    suggestionBox brakes if Tomahawk inputCalendar tag used

    Marc Sansa Newbie

      The rich:suggestionBox does not work properly if the Tomahawk inputCalendar tag is used in the same page.
      The problem is such that after I type in the suggestion box, a filtered list of items pops up. However, when I click on one of the items in the list, the item does not get transfered to the h:inputText component it is linked to.

      After troubleshooting, it was determined that the root cause of the rich:suggestionBox not working properly is the presense of the tomahawk calendar tag <t:inputCalendar>. As soon as I remove the tag, the suggestionBox works fine. Any idea why ?

      I know I could convert to the rich:calendar, however, this issue may need to be addressed.

        • 1. Re: suggestionBox brakes if Tomahawk inputCalendar tag used
          Vajcheslav Elch Newbie

          Yes.
          I have same problem with t:inputCalendar in rich:simpleTogglePanel in IE7

          <rich:simpleTogglePanel switchType="ajax">
          <t:inputCalendar renderAsPopup="true"/>
          </rich:simpleTogglePanel>
          <a4j:log popup="false"/>

          When open rich:simpleTogglePanel I see in log next messages:

          ...
          debug[20:51:55,491]: script in response with src=/test-app/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12100887/prototype.PrototypeResourceLoader/prototype.js
          debug[20:51:55,491]: append element to document
          ...
          debug[20:51:55,681]: Evaluate script replaced area in document: //SimpleTogglePanelManager.add(new SimpleTogglePanel("content:f:p1", "true"));
          error[20:51:55,691]: . Error message: Could not complete the operation due to error 80020101.
          debug[20:51:55,691]: Evaluate script replaced area in document: //content_3Af_3A_5FidJsp51CalendarVar=new org_apache_myfaces_PopupCalendar();...

          And error in IE7: Object doesn't support this action.
          This error occur in rich file simpleTogglePanel.js on merge method:
          ...
          SimpleTogglePanelManager.add = function(value) {
          var tmp = new Object();
          tmp[value.panelId] = value;
          this.panels=this.panels.merge(tmp);
          }
          ...

          Problem in diff versions of prototype.js from rich & tomahawk.
          I'm using tomahawk 1.1.5, richfaces 3.1.3.
          In rich prototype.js version is 1.5.0
          tomahawk - 1.4.0

          My test page render HTML like:
          ...
          script type="text/javascript" src="/test-app/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12100887/prototype.PrototypeResourceLoader/prototype.js"
          script type="text/javascript" src="/test-app/prototype.js"
          ...

          Where test-app/prototype.js - version 1.5.0 from rich sources and a4j:log look as:
          ...
          debug[21:24:39,865]: script in response with src=/cer-web/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12100887/prototype.PrototypeResourceLoader/prototype.js
          debug[21:24:39,865]: Such element exist in document
          ...

          no errors in log and IE7 status bar


          • 2. Re: suggestionBox brakes if Tomahawk inputCalendar tag used
            Marc Sansa Newbie

            Thanks for the reply. I ended up using the rich:calendar component instead of the tomahawk equivalent.