[richfaces-issues] [JBoss JIRA] Commented: (RF-10056) rich:dropTarget - JavaScript error on drop when acceptedTypes/render specified by EL
Anton Belevich (JIRA)
jira-events at lists.jboss.org
Thu Dec 30 10:40:18 EST 2010
[ https://issues.jboss.org/browse/RF-10056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572538#comment-12572538 ]
Anton Belevich commented on RF-10056:
-------------------------------------
'acceptedTypes' attribute checking on null is added. Since 'acceptedTypes' is optional it could be null. In this case all types are accepted.
Lukas, I've noticed a bug in Metamer application: in <rich:dropTarget> component richDragSourceBean is used for 'acceptedTypes' attribute. Since 'acceptedTypes' is a dropTarget component attribute you should use richDropTargetBean instead.
> rich:dropTarget - JavaScript error on drop when acceptedTypes/render specified by EL
> ------------------------------------------------------------------------------------
>
> Key: RF-10056
> URL: https://issues.jboss.org/browse/RF-10056
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-drag/drop
> Affects Versions: 4.0.0.Milestone5
> Environment: * RichFaces 4.0.0-SNAPSHOT r.20682
> * Metamer 4.0.0-SNAPSHOT r.20684
> * Mojarra 2.0.3-FCS
> * Apache Tomcat 6.0.29
> * OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
> * Firefox 3.6.13 @ Linux x86_64
> Reporter: Lukas Fryc
> Assignee: Anton Belevich
> Fix For: 4.0.0.CR1
>
>
> The Metamer drag-n-drop sample [1] doesn't work due to JavaScript error:
> object is null
> http://localhost:8080/metamer/faces/javax.faces.resource/jquery.js
> Line 620
> when acceptedTypes set by EL like this:
> acceptedTypes="#{richDragBehaviorBean.attributes['acceptedTypes'].value}"
> but works with the same data using
> acceptedTypes="drg1, drg2"
> the similar situation for EL specification of render:
> render="#{richDragBehaviorBean.attributes['render'].value}"
> doesn't cause rerendering (EL internally provides Collection - this principle works for a4j:ajax), however following works
> render="droppedValues"
> [1] http://localhost:8080/metamer/faces/components/richDropTarget/simple.xhtml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list