[JBoss JIRA] Created: (RF-2517) Drag-n-Drop between Tree and a Panel with drag/dropSupport
by Ralf Loechte (JIRA)
Drag-n-Drop between Tree and a Panel with drag/dropSupport
----------------------------------------------------------
Key: RF-2517
URL: http://jira.jboss.com/jira/browse/RF-2517
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Reporter: Ralf Loechte
Fix For: 3.2.0
I have a rich:tree with drag-n-drop and a panel with dropSupport plus a dataTable which columns have a dragSupport. The tree lies in a t:div with style overflow=auto to be srollable in case that the tree becomes very big. Dragging elements between the tree and the panel works fine but once you drag/drop an element within the tree you cannot drag/drop elements between the tree and the panel. It seems to be that the drag-elements will be droped on the tree even the mouse is over the drop-panel. Astonishingly It works if you remove overflow=auto in the div.
<t:div style="overflow=auto;">
<rich:tree>
...
</t:div>
<t:div>
<rich:panel>
<rich:dropSupport>
...
</rich:dropSupport>
<h:dataTable ...>
<h:column ...>
<a4j:outputPanel>
<rich:dragSupport ...>
</rich:dragSupport>
<h:outputText ...>
</a4j:outputPanel>
</h:column>
</h:dataTable>
</rich:panel>
</t:div>
--
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
16 years, 11 months
[JBoss JIRA] Created: (RF-3722) rich:tree inside modalPanel produces Javascript error
by Juergen Zimmermann (JIRA)
rich:tree inside modalPanel produces Javascript error
-----------------------------------------------------
Key: RF-3722
URL: http://jira.jboss.com/jira/browse/RF-3722
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JSF 1.2_09-BETA1, IE 7
Reporter: Juergen Zimmermann
Using rich:tree inside rich:modalPanel yields a Javascript error with IE 7. Using FF 3.0RC3 it works fine.
I'll attach the generated html code.
The tag hierarchy is as follows:
...
<h:column>
<rich:modalPanel id="detailModalPanel" width="400" height="300">
<f:facet name="header">
<h:outputFormat id="detailModalTitle" value="#{i18n['modalPanel.details.title']}">
<f:param id="detailModalTitleId" value="#{kunde.id}"/>
</h:outputFormat>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage id="closeDetailModalPanel" value="/images/close.png" style="cursor:pointer" alt="#{i18n['modalPanel.button.close']}"/>
<rich:componentControl for="detailModalPanel" attachTo="closeDetailModalPanel" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<a4j:include viewId="/kundenverwaltung/modalPanel.details.xhtml" />
</rich:modalPanel>
<h:outputLink id="openDetailModalPanel" value="#">
<h:graphicImage id="detailModalIcon" url="/images/details.gif" alt="#{i18n['modalPanel.button.details']}"/>
<rich:componentControl for="detailModalPanel" attachTo="openDetailModalPanel" operation="show" event="onclick"/>
</h:outputLink>
</h:column>
The included modalPanel.details.xhtml looks as follows:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich">
<rich:panelBar>
<rich:panelBarItem>
<f:facet name="label">
<h:panelGroup>
<h:graphicImage value="/images/stammdaten.gif"/>
 
<h:outputText value="#{i18n['panelGridDetails.kunde.stammdaten']}" />
</h:panelGroup>
</f:facet>
<h:panelGrid id="ausgewaehlterKunde"
columns="2"
columnClasses="kundendetailsBezeichner, kundendetailsDaten">
<h:outputText value="#{i18n['panelGridDetails.kunde.id']}"/>
<h:outputText value="#{kunde.id}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.nachname']}"/>
<h:outputText value="#{kunde.nachname}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.vorname']}"/>
<h:outputText value="#{kunde.vorname}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.kategorie']}"/>
<h:outputText value="#{kunde.kategorie}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.umsatz']}"/>
<h:outputText value="#{kunde.umsatz}">
<f:convertNumber type="currency" currencyCode="EUR"/>
</h:outputText>
<h:outputText value="#{i18n['panelGridDetails.kunde.seit']}"/>
<h:outputText value="#{kunde.seit}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.email']}"/>
<h:outputText value="#{kunde.email}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.creditCard']}"
rendered="#{kunde.creditCard ne 'NONE'}"/>
<h:outputText value="#{kunde.creditCard}"
rendered="#{kunde.creditCard ne 'NONE'}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.creditCardId']}"
rendered="#{kunde.creditCard ne 'NONE'}"/>
<h:outputText value="#{kunde.creditCardId}"
rendered="#{kunde.creditCard ne 'NONE'}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.art']}"/>
<h:outputText value="#{kunde.art}"/>
<h:outputText value="#{i18n['panelGridDetails.kunde.rabatt']}"
rendered="#{kunde.art eq 'F'}"/>
<h:outputText value="#{kunde.rabatt}"
rendered="#{kunde.art eq 'F'}">
<f:convertNumber type="percent" minFractionDigits="1" maxFractionDigits="2"/>
</h:outputText>
</h:panelGrid>
</rich:panelBarItem>
<rich:panelBarItem rendered="#{not empty kunde.dateiname}">
<f:facet name="label">
<h:panelGroup>
<h:graphicImage value="/images/bild.gif"/>
 
<h:outputText value="#{i18n['panelGridDetails.kunde.bild']}" />
</h:panelGroup>
</f:facet>
<h:graphicImage id="bild"
url="#{initParam.hskaUploadDir}/#{kunde.dateiname}"
alt="#{i18n['panelGridDetails.kunde.bild.alt']}"/>
</rich:panelBarItem>
<rich:panelBarItem rendered="#{not empty kunde.bestellungen}">
<f:facet name="label">
<h:panelGroup>
<h:graphicImage value="/images/bestellungen.gif"/>
 
<h:outputText value="#{i18n['tabelle.kunde.bestellungen']}" />
</h:panelGroup>
</f:facet>
<h:form id="bestellungenForm">
<rich:tree id="bestellungenTree">
<f:facet name="icon">
 
</f:facet>
<f:facet name="iconLeaf">
 
</f:facet>
<rich:treeNodesAdaptor id="bestellungenAdapter"
nodes="#{kunde.bestellungen}"
var="best">
<rich:treeNode id="bestellungKnoten">
<h:outputText value="#{i18n['bestellung']} #{i18n['nr']} #{best.id}"/>
</rich:treeNode>
<rich:treeNodesAdaptor id="bestposAdapter"
nodes="#{best.bestellpositionen}"
var="bp">
<rich:treeNode id="bestposKnoten">
<h:outputText value="#{bp.anzahl} #{bp.artikel.bezeichnung}"/>
</rich:treeNode>
</rich:treeNodesAdaptor>
</rich:treeNodesAdaptor>
</rich:tree>
</h:form>
</rich:panelBarItem>
</rich:panelBar>
</html>
--
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
16 years, 11 months
[JBoss JIRA] Created: (RF-5054) ScrollableDataTable. Autoscroll Problem. Selection-Problem.
by Buttau Alexander (JIRA)
ScrollableDataTable. Autoscroll Problem. Selection-Problem.
-----------------------------------------------------------
Key: RF-5054
URL: https://jira.jboss.org/jira/browse/RF-5054
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Apache Tomcat 6.0.16 Server
Eclipse 3.3.2
Java 1.6
Windows XP SP3
RichFaces 3.3.0-20081124.104647-77
Reporter: Buttau Alexander
I have detected two problems concerning ScrollableDataTable.
I have created a Project that recreates these two problems. The project has only one page.
The page has a ScrollableDataTable with page size 30 (attribute row="30") bound to an array with 32 Items and a CommandButton that rerenders a Panel with a ScrollableDataTable inside and shows the current selection with 'javascript:alert(...)'.
Problem 1: Autoscroll Problem
1. You scroll down to the bottom.
2. Now you scroll to the top
3. After rerendering the ScrollableDataTable by clicking on CommandButton, it will automatically scroll down to the bottom after rendering.
Problem 2: Selection-Problem
Under some circumstances the selection of ScrollableDataTable gets corrupt.
Here is the Test-Case to recreate this Problem:
1. Call Page. No item selected
2. Now scroll to the bottom. (Row C-31 is shown)
3. Select an Item (for example C-25) and click on CommandLink "Selection"
4. The ScrollableDataTable is not properly rendered. No header is visible, and all columns are shown on the place of the first column. Probably a bug too? BUT IT IS NOT A PROBLEM YET.
5. Now F5 to reload a Page. The Table is rendered correct. But the Row C-27 has selection (Row C-25 was selected)
6. If you select a row now and click CommandButton "Selection" it shows always the wrong id. This id differs from really selected by 2. For example you select 30 => it shows 28.
Tested with Firefox 3 and Internet Explorer 7.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months