Placing dragSupport inside simpleTogglePanel creates problems on firefox
------------------------------------------------------------------------

                 Key: RF-3458
                 URL: http://jira.jboss.com/jira/browse/RF-3458
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.0
         Environment: JBoss AS 4.2.2.GA
RichFaces 3.2.0 SR1
WinXP Pro SP2
            Reporter: Hajo Krabbenhöft


When i place an dragSupport inside a simpleTogglePanel with opened="false" set, 
on firefox, it will only work when i start dragging from text.
when i start dragging from besides the text, i will see the black dotted box 
drag indicator and it will not turn green when i hover over the drop zone.
it works fine in both cases on internet explorer.
when i convert the rich:simpleTogglePanel to a rich:panel, it works fine on 
both browsers.

problem:
                <rich:simpleTogglePanel label="#{curTagGroup.name}"
                        switchType="client" style="width: 274px;" 
opened="false">
                        <ui:repeat value="#{curTagGroup.tags}" var="curTag">
                                <a4j:outputPanel styleClass="draggable-tag" 
onmouseover="#{mouseover}" onmouseout="#{mouseout}" layout="block">
                                        <h:outputText value="#{curTag.name}"/>
                                        <rich:dragSupport dragType="tag" 
dragValue="#{curTag}" />
                                </a4j:outputPanel>
                        </ui:repeat>
                </rich:simpleTogglePanel>

works fine: 
                <rich:panel header="#{curTagGroup.name}"
                        switchType="client" style="width: 274px;">
                        <ui:repeat value="#{curTagGroup.tags}" var="curTag">
                                <a4j:outputPanel styleClass="draggable-tag" 
onmouseover="#{mouseover}" onmouseout="#{mouseout}" layout="block">
                                        <h:outputText value="#{curTag.name}"/>
                                        <rich:dragSupport dragType="tag" 
dragValue="#{curTag}" />
                                </a4j:outputPanel>
                        </ui:repeat>
                </rich:panel>

as i said before, on ie it works on both cases as well as on firefox when you 
drag the div somwhere where its being overlayed by text.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to