[JBoss JIRA] Created: (RF-961) Drag'n Drop: dragValue is null, when dragging across different regions
by Maksim Kaszynski (JIRA)
Drag'n Drop: dragValue is null, when dragging across different regions
----------------------------------------------------------------------
Key: RF-961
URL: http://jira.jboss.com/jira/browse/RF-961
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Maksim Kaszynski
Assigned To: Maksim Kaszynski
Fix For: 3.2.0
On the following page, dragValue is null.
In terms of JSF concepts, everything is correct - other regions just don't get processed.
maybe, we should hack it in some way.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/drag-drop" prefix="rich"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/panel" prefix="p"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/dataTable" prefix="t"%>
<html>
<head>
</head>
<body>
<f:view>
<center><rich:dragIndicator id="indicator"></rich:dragIndicator>
<h:form>
<h:panelGrid styleClass="generalTable">
<a4j:region>
<p:panel>
<t:dataTable id="iItems" value="#{PjCreationDataBean.initItems}" var="item">
<t:column>
<a4j:outputPanel style="border:1px;">
<rich:dragSupport dragType="item" dragIndicator=":indicator"
dragValue="#{item}">
<rich:dndParam name="label" value="#{item.item}" />
</rich:dragSupport>
<h:outputText value="#{item.item}" />
</a4j:outputPanel>
</t:column>
</t:dataTable>
</p:panel>
</a4j:region>
<a4j:region>
<p:panel>
<rich:dropSupport acceptedTypes="item"
dropListener="#{WeaponDropListener.processDrop}"
dropValue="#{PjCreationDataBean.selectedItems}" reRender="sItems">
</rich:dropSupport>
<t:dataTable id="sItems"
value="#{PjCreationDataBean.selectedItems}" var="item">
<t:column>
<a4j:outputPanel style="border:1px;">
<h:outputText value="#{item.item}" />
</a4j:outputPanel>
</t:column>
</t:dataTable>
</p:panel>
</a4j:region>
</h:panelGrid>
<center>
</h:form>
</f:view>
</body>
</html>
public class WeaponDropListener implements DropListener{
public void processDrop(DropEvent event) {
Dropzone dropZone = (Dropzone) event.getComponent();
ArrayList<InitItem> selected = (ArrayList) dropZone.getDropValue();
System.err.print(selected.size());
Object ob = event.getDragValue();
System.out.println("DragValue " + event.getDragValue());
System.out.println("DropValue " + event.getDropValue());
if(ob == null)
System.err.print("objeto nulo");
selected.add((InitItem) event.getDragValue());
}
}
--
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
15 years, 10 months
[JBoss JIRA] Created: (RF-2648) Wrong place of context menu in datatable with scrollbar
by Marcin Bednarek (JIRA)
Wrong place of context menu in datatable with scrollbar
-------------------------------------------------------
Key: RF-2648
URL: http://jira.jboss.com/jira/browse/RF-2648
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: Windows Vista, Firefox 2.0.0.12
Reporter: Marcin Bednarek
I have a datatable with css scrollbar.
<rich:panel id="dirView" style="margin-left: 310px;width:830px;height:420px;position:absolute;top:65px;overflow:auto;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;">
<rich:dataTable id="lineItemTable" cellpadding="0" cellspacing="0" border="0" var="element" value="#{treeBean.folderData}">
.......
In one column I have context menu :
<rich:column style="width:580px;">
<s:div id="fileName" rendered="#{element.nodeType=='F'}">
<rich:contextMenu id="fileNameContextMenu" event="oncontextmenu" attached="true"
submitMode="ajax" hideDelay="60000">
<rich:menuItem value="History"
action="#{treeBean.setSelectedDocument(element)}"
oncomplete="Richfaces.showModalPanel('versionModalPanel');"
id="showVersion" status="statusDirView"
reRender="fileVersionModalHeader">
</rich:menuItem>
</rich:contextMenu>
<h:graphicImage value="/images/iconFile.gif">
</h:graphicImage>
<h:outputLabel value="#{element.name}">
</h:outputLabel>
</s:div>
</rich:column>
</rich:dataTable>
</rich:panel>
There are a lot of rows in the table. When I scroll down and click on column to show context menu it is shown in wrong place (near
top of the table). It looks like the scrollbar position isn't taken into consideration when calculating the position of context menu.
--
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
15 years, 10 months
[JBoss JIRA] Created: (RF-2977) Caption not rendered immediately after table element in rich:dataTable
by Peter Haldbæk (JIRA)
Caption not rendered immediately after table element in rich:dataTable
----------------------------------------------------------------------
Key: RF-2977
URL: http://jira.jboss.com/jira/browse/RF-2977
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: OS: Windows XP
Platform: JBoss AS 4.2.1.GA, Sun JDK 1.6.0_02
Reporter: Peter Haldbæk
According to the HTML 4.01 specification the CAPTION element is only permitted immediately after the TABLE start tag. When using the rich:dataTable component together with the facet:caption component a COLGROUP tag is inserted before the CAPTION tag making the html invalid.
Consider the following snippet:
<rich:dataTable id="list" var="region" value="#{regions.regions}">
<f:facet name="caption">Regions</f:facet>
<rich:column>
<f:facet name="header">Value</f:facet>
<h:outputText value="#{region.value}" />
</rich:column>
<rich:column>
<f:facet name="header">Label</f:facet>
<h:outputText value="#{region.label}" />
</rich:column>
</rich:dataTable>
Where the parameter 'regions' is a seam component containing a method getRegions returning a List of SelectItem (containing the methods getValue and getLabel).
This will result in HTML like this:
<table id="list" class="dr-table rich-table" cellspacing="0" cellpadding="0" border="0">
<colgroup span="2"/>
<caption class="dr-table-caption rich-table-caption">Regions</caption>
...
</table>
which is invalid HTML. I have seen this in earlier versions (pre 3.2.0) of RichFaces as well.
--
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
15 years, 10 months
[JBoss JIRA] Created: (RF-3311) InplaceSelect: "immediate" attribute doesn't work.
by Heorhi Maksimenko (JIRA)
InplaceSelect: "immediate" attribute doesn't work.
--------------------------------------------------
Key: RF-3311
URL: http://jira.jboss.com/jira/browse/RF-3311
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: IE6, FF2; Jsp,Facelets.
Reporter: Heorhi Maksimenko
Assigned To: Nick Belaevski
"immediate" attribute for InplaceSelect doesn't work.
<rich:inplaceSelect id="inplaceSelectID"
defaultLabel="defaultLabel"
immediate="true">
<f:selectItem itemLabel="errors" itemValue="errors" />
<f:selectItem itemLabel="fatals" itemValue="fatals" />
<f:selectItem itemLabel="infos" itemValue="infos" />
<f:selectItem itemLabel="passeds" itemValue="passeds" />
<f:selectItem itemLabel="warns" itemValue="warns" />
<f:selectItem itemLabel="warnswarnswarnswarns" itemValue="warnswarnswarnswarns" />
</rich:inplaceSelect>
load page with component.
click submit.-->Warning is presented "formID:inplaceSelectSubviewID:inplaceSelectID: Validation Error: Value is not valid"
--
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
15 years, 10 months