-
15. Re:
fmarwede Jan 13, 2008 9:58 AM (in response to vitanov)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:
fmarwede Jan 13, 2008 10:08 AM (in response to vitanov)Perhaps I have a workaround for you. Put the following around your indicator:
<f:view contentType="text/html" > <rich:dragIndicator id="indicator"></rich:dragIndicator> </f:view>
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:
vitanov Jan 13, 2008 11:28 AM (in response to vitanov)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:
vitanov Jan 13, 2008 11:38 AM (in response to vitanov)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:
fmarwede Jan 13, 2008 12:47 PM (in response to vitanov)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:
fmarwede Jan 13, 2008 1:00 PM (in response to vitanov)Here is it:
http://jira.jboss.org/jira/browse/RF-1903
Feel free to comment it.
Hey, that was a nice piece of "community driven" work, right? ;-) -
21. Re:
vitanov Jan 15, 2008 2:11 PM (in response to vitanov)You bet it was :) THank god there is a community, I hope sometime I can be of help for the community too.
-
22. Re:
sergeyhalipov Jan 17, 2008 11:16 AM (in response to vitanov)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}" acceptedTypes="file1" 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> </f:facet> </rich:dragIndicator> <h:outputText value="#{item.name}" /> </rich:treeNode> <rich:treeNode type="album" iconLeaf="/images/tree/disc.gif" icon="/images/tree/disc.gif"> <h:outputText value="#{item.title}" /> </rich:treeNode> <rich:treeNode type="song" iconLeaf="/images/tree/song.gif" icon="/images/tree/song.gif"> <h:outputText value="#{item.title}" /> </rich:treeNode> </rich:tree>
-
23. Re:
fmarwede Jan 17, 2008 11:30 AM (in response to vitanov)Please use http://www.flyupload.com/?fid=2602825.
Unfortunately it's to big for an upload in JIRA.