11 Replies Latest reply on Oct 7, 2009 4:05 PM by apryce

    Drag and drop object not defined?

    apryce

      Mozilla is spitting out

      DnD is not defined
      errors on all of my rich:dragSupport and rich:dropSupport tags. When I check out the generated javascript the DnD object is where it should be and things look ok. Any ideas on why my DnD object is not defined?

        • 1. Re: Drag and drop object not defined?
          ilya_shaikovsky

          RF version? Page code?

          • 2. Re: Drag and drop object not defined?
            apryce

            RF version 3.2.1
            I'm sorry I can't provide page code, but I am attempting to use the most basic usage off the docs. Something like:

            <a4j:outputPanel><rich:panel>
             <rich:dropSupport dropListener="#{myBean.dropAction}>
             <a4j:actionParam value="#{someData}" name="paramData" />
             </rich:dropSupport>
            
             <a4j:repeat value="#{myBean.list}" var="item">
             <a4j:outputPanel>
             <rich:panel>
             <rich:dragSupport dragValue="#{someOtherData}">
             <a4j:actionparam value="#{someOtherOtherData}" name="secondParam" />
             <h:outputText value="#{item.name}"></h:outputText>
             </rich:dragSupport>
             </rich:panel>
             </a4j:outputPanel>
             </a4j:repeat>
            </rich:panel></a4j:outputPanel>


            • 3. Re: Drag and drop object not defined?
              apryce

              I have also confirmed that we are deploying the richfaces-ui jar and that it has the needed classes.

              • 4. Re: Drag and drop object not defined?
                ilya_shaikovsky

                Highly recommend to update (at least to try) the version of RF to 3.3.1 GA or 3.3.2 CR1

                • 5. Re: Drag and drop object not defined?
                  apryce

                   

                  "ilya_shaikovsky" wrote:
                  Highly recommend to update (at least to try) the version of RF to 3.3.1 GA or 3.3.2 CR1


                  Any particular reason for the high recommendation? Did DnD receive significant fixes in these versions? I tend to agree that it is best to keep up to date, but if there isn't a significant fix we will usually wait to upgrade our libraries until our next major release.

                  Adam

                  • 6. Re: Drag and drop object not defined?
                    ilya_shaikovsky

                    yes, As far as I remember some fixes was made related to such issue with DnD.

                    Actually we had for example 1100 jira tasks closed during 3.3.1 developent, so we can't keep in mind all fixed issues while reading forum issues reports :) And thats why we recommends to check (just to confirm) newest version and then report if it actual for latest builds. In other case we will spend too much time checking for the issue in precise environment of every reporter.

                    • 7. Re: Drag and drop object not defined?
                      apryce

                      We've tried the 3.3.1 with no change. We are actually successful in other places on our site. We have tried using other richfaces tags (toggle panel) in this same page and their javascript objects also fail. I checked that mvn is using richfaces-impl*, rishfaces-api*, and richfaces-ui*. Is there anything else that we need?

                      • 8. Re: Drag and drop object not defined?
                        apryce

                        We've tried the 3.3.1 with no change. We are actually successful in other places on our site. We have tried using other richfaces tags (toggle panel) in this same page and their javascript objects also fail. I checked that mvn is using richfaces-impl*, rishfaces-api*, and richfaces-ui*. Is there anything else that we need?

                        • 9. Re: Drag and drop object not defined?
                          ilya_shaikovsky

                          ok.. then lets check if you have any external js includes (maybe jQuerry or prototype).. if so - there could be conflicts between our built in and external ones.

                          • 10. Re: Drag and drop object not defined?
                            apryce

                            We are using prototype, but upon removing the issue is still there. I noticed from firebug that there we aren't properly loading the richfaces js files. They're in the packaged war file, so I'll look into our deployment and post our results.

                            • 11. Re: Drag and drop object not defined?
                              apryce

                              I got it....
                              Typo in jboss portlet files caused the needed headers to not be deployed. These headers contained the richfaces js imports.


                              Doh!