[JBoss JIRA] Created: (RF-7137) scrollableDataTable selection is empty if items are selecting with CTRL+A
by Denis Petrunin (JIRA)
scrollableDataTable selection is empty if items are selecting with CTRL+A
-------------------------------------------------------------------------
Key: RF-7137
URL: https://jira.jboss.org/jira/browse/RF-7137
Project: RichFaces
Issue Type: Bug
Components: component-ScrollableDataTable
Affects Versions: 3.3.0
Environment: RichFaces 3.3.0GA
Reporter: Denis Petrunin
1) open "test.jsf" page (see below)
2) click into rich:scrollableDataTable
3) press CTRL+A to select all items in scrollableDataTable
4) click "GO" button
5) make a note that "Selection" field is empty
Expected result: "Selection" field must contain "0; 1;"
Selection works right if all items are selecting one by one with CTRL+mouse click
<===== test.jspx =====>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j">
<head>
</head>
<body>
<h:form>
<rich:scrollableDataTable value="#{bean.data}" var="item" selection="#{bean.selection}">
<rich:column>#{item}</rich:column>
</rich:scrollableDataTable>
<a4j:commandButton value="GO" reRender="otSelectedItems" />
<h:outputLabel value="Selection" />
<h:inputText id="otSelectedItems" value="#{bean.selectedItems}" disabled="true" />
</h:form>
</body>
</html>
<===== Backing bean =====>
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.richfaces.model.selection.Selection;
import org.richfaces.model.selection.SimpleSelection;
@Name("bean")
@Scope(ScopeType.SESSION)
public class Test
{
private static final List<String> model = Arrays.asList("First", "Second");
private Selection selection = new SimpleSelection();
public List<String> getData()
{
return model;
}
public Selection getSelection()
{
return selection;
}
public void setSelection(Selection selection)
{
this.selection = selection;
}
public String getSelectedItems()
{
System.out.println("getSelectedItems");
StringBuilder sb = new StringBuilder();
for (Iterator<Object> i = selection.getKeys(); i.hasNext();) {
sb.append(i.next()).append("; ");
}
return sb.toString();
}
}
--
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
14 years, 9 months
[JBoss JIRA] Created: (RF-7138) scrollableDataTable: JavaScript error if user press up/down arrow key in case of only item
by Denis Petrunin (JIRA)
scrollableDataTable: JavaScript error if user press up/down arrow key in case of only item
------------------------------------------------------------------------------------------
Key: RF-7138
URL: https://jira.jboss.org/jira/browse/RF-7138
Project: RichFaces
Issue Type: Bug
Components: component-ScrollableDataTable
Affects Versions: 3.3.0
Environment: RichFaces 3.3.0GA
IE6, IE7, Firefox 3.0.10
Reporter: Denis Petrunin
Priority: Minor
1) open page with rich:scrollableDataTable, table must contain only item.
2) click on item
3) press down arrow key
As result there is JavaScript error:
this.nTable.rows[1] is undefined
http://localhost:8080/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/...
error in line: 94
for(var i=0;i<rows.length;i++){rows[i].removeChild(rows[i].cells[index]);}},showRow:function(rowIndex){if(rowIndex=="up"){this.scrollBox.getElement().scrollTop=this.scrollBox.getElement().scrollTop-this.nTable.rows[1].offsetTop;}else if(rowIndex=="down"){this.scrollBox.getElement().scrollTop=this.scrollBox.getElement().scrollTop+this.nTable.rows[1].offsetTop;}else{var row=$(this.gridId+":n:"+rowIndex);var offsetTop=this.nTable.offsetTop+row.offsetTop;if(this.contentBox.getElement().scrollTop>offsetTop){this.scrollBox.getElement().scrollTop=offsetTop;}else{offsetTop+=row.offsetHeight;offsetTop-=this.contentBox.getElement().clientHeight;if(this.contentBox.getElement().scrollTop<offsetTop){this.scrollBox.getElement().scrollTop=offsetTop;}}}
--
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
14 years, 9 months
[JBoss JIRA] Created: (RF-7772) richfaces-demo a4j:status page throws TagAttributeException
by Jay Balunas (JIRA)
richfaces-demo a4j:status page throws TagAttributeException
-----------------------------------------------------------
Key: RF-7772
URL: https://jira.jboss.org/jira/browse/RF-7772
Project: RichFaces
Issue Type: Bug
Components: examples
Affects Versions: 4.0.0.ALPHA1
Reporter: Jay Balunas
Assignee: Ilya Shaikovsky
Priority: Critical
Fix For: 4.0.0.ALPHA2
Deployed most recent ALPHA1 example build. When navigating to the a4j:status page I get the exception below.
javax.faces.view.facelets.TagAttributeException: /richfaces/status.xhtml @22,65 <ui:include src="/richfaces/status/referencedusage.xhtml"> Invalid path : /richfaces/status/referencedusage.xhtml
at com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:107)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:97)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:172)
at com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:375)
at com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:346)
at com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:102)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
at com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.applyNextHandler(CompositeComponentTagHandler.java:135)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:201)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:160)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:283)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:342)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:321)
at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:180)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:149)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:130)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:823)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:637)
--
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
14 years, 9 months
[JBoss JIRA] Created: (RF-1145) DataScroller. Parameters(both a4j and f) always null.
by Ilya Shaikovsky (JIRA)
DataScroller. Parameters(both a4j and f) always null.
-----------------------------------------------------
Key: RF-1145
URL: http://jira.jboss.com/jira/browse/RF-1145
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.2, 3.2.0
Reporter: Ilya Shaikovsky
Assigned To: Anton Belevich
Fix For: 3.2.0
<rich:datascroller id="scroller" pageIndexVar="pi" action="#{bean.action}">
<f:param name="index" assignTo="#{bean.property1}" value="#{pi}"/>
</rich:datascroller>
<rich:datascroller ajaxSingle="false" id="scroller" pageIndexVar="pi" action="#{bean.action}">
<a4j:actionparam name="index" assignTo="#{bean.property1}" value="#{pi}"></a4j:actionparam>
</rich:datascroller>
in seter:
System.out.println("Setting property1 to _> "+ property1);
in action
System.out.println(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("pi"));
Both sysouts prints null in log.
--
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
14 years, 9 months