1 2 Previous Next 23 Replies Latest reply on Jan 17, 2008 11:30 AM by fmarwede Go to original post
      • 15. Re:

        Get it running now.

        For now I can say the following:

        I said I reproduced your bug in another context by placing the dragIndicator in a treeNode. This is not really true, because in my case it was a javascript error with a very similar description. But for me the rest of the side works, in your case the whole page is replaced by this xml error message.

        Now I start tests with your application.

        • 16. Re:

          Perhaps I have a workaround for you. Put the following around your indicator:

          <f:view contentType="text/html" >
           <rich:dragIndicator id="indicator"></rich:dragIndicator>

          Don't know if that causes another error - there is nothing to drag/drop in this sample version, right?

          Another thing: Are you aware of that js error "setFocus is not defined"?

          • 17. Re:

            Well, it was about time, that is a good workaround. But even so the script is not rendered as in the examples, having CDATA block around it. And because of the new content type I had trouble with the form-based authentication in tomcat. I use a JDBCRealm to authenticate the users based on their roles and when I changed the view's content type it stopped working. I figured out how to deal with it anyway. Thanks for the great tip!

            • 18. Re:

              I meant "it waas about time" for me to find a solution to get it working... Is there no way to edit a post? Thank you again, now I will get to finish the functionality.

              • 19. Re:

                Don't mention it. :-)

                But you are right: it is what it is, a workaround and not a solution. For this reason I will create a bug in JIRA with all info we got until now about that topic.

                • 20. Re:

                  Here is it:


                  Feel free to comment it.

                  Hey, that was a nice piece of "community driven" work, right? ;-)

                  • 21. Re:

                    You bet it was :) THank god there is a community, I hope sometime I can be of help for the community too.

                    • 22. Re:

                      Could you attach some code example where dragIndicator fails with rich:treeNode?
                      I've put dragIndicator into treeNode and outside treeeNode. It seems to work well.

                      My code:

                      <rich:tree switchType="client" style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}"
                       dragType="file1" >
                       <rich:treeNode type="artist" iconLeaf="/images/tree/singer.gif" icon="/images/tree/singer.gif"
                       dragIndicator="indicator" >
                       <rich:dragIndicator id="indicator" >
                       <f:facet name="single">
                       <h:outputText value="TEST" style="color: red; border: 3px solid blue;"></h:outputText>
                       <h:outputText value="#{item.name}" />
                       <rich:treeNode type="album" iconLeaf="/images/tree/disc.gif" icon="/images/tree/disc.gif">
                       <h:outputText value="#{item.title}" />
                       <rich:treeNode type="song" iconLeaf="/images/tree/song.gif" icon="/images/tree/song.gif">
                       <h:outputText value="#{item.title}" />

                      • 23. Re:

                        Please use http://www.flyupload.com/?fid=2602825.

                        Unfortunately it's to big for an upload in JIRA.

                        1 2 Previous Next