[JBoss JIRA] Created: (RF-8224) Richfaces 3.3.1+ : richfaces calendar popup closes on clicking the scrollbar of the window
by Indu K (JIRA)
Richfaces 3.3.1+ : richfaces calendar popup closes on clicking the scrollbar of the window
------------------------------------------------------------------------------------------
Key: RF-8224
URL: https://jira.jboss.org/jira/browse/RF-8224
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component
Affects Versions: 3.3.1
Reporter: Indu K
When a richfaces calendar popup is opened in a richfaces modal panel with scrollbar and the user tries to scroll using the scrollbar of the modal panel to view the rest of the calendar popup, the calendar popup closes. This was working fine in 3.2.2 version of richfaces (it remained open and the user could scroll down the modal panel and view the calendar popup). It's also broken in 3.3.2 version.
Sample code:
<rich:modalPanel id="panel" width="350" height="200">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Modal Panel"></h:outputText>
</h:panelGroup>
</f:facet>
<!-- Content -->
<div style="height:300px; overflow:auto" >
<h:panelGrid columns="1">
<h:outputText value="Beginning of the modal" />
<rich:calendar value="#{calendarBean.selectedDate}"
style="width:200px"
oncollapse="console.log('calendar collapsed')"/>
<rich:spacer height="1200px"/>
<h:outputText value="End of the modal" />
</h:panelGrid>
</div>
</rich:modalPanel>
<h:outputLink value="#" id="link">
Show Modal Panel
<rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
</h:outputLink>
--
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, 8 months
[JBoss JIRA] Created: (RF-8202) rich:panelBarItem label facet content not rerendered via Ajax
by Max Katz (JIRA)
rich:panelBarItem label facet content not rerendered via Ajax
-------------------------------------------------------------
Key: RF-8202
URL: https://jira.jboss.org/jira/browse/RF-8202
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-output
Affects Versions: 3.3.1
Environment: RichFaces 3.3.1
Reporter: Max Katz
rich:panelBarItem label facet content not rerendered via Ajax
Code sample:
<h:form id="form">
<rich:panelBar>
<rich:panelBarItem id="paymenttypeHolder">
<f:facet name="label">
<h:panelGrid id="pnlCatgry">
<h:outputText id="opTextCount" value="Payment Type" />
<h:outputText id="opTextCount1"
value="#{forum5Bean.text}" />
</h:panelGrid>
</f:facet>
</rich:panelBarItem>
</rich:panelBar>
<h:inputText id="tempPymtCtgrySlctCbox"
value="#{forum5Bean.text}">
<a4j:support id="suppPymtCtry1" event="onkeyup"
reRender="pnlCatgry,opTextCount1" />
</h:inputText>
<a4j:log popup="false" />
</h:form>
--
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, 8 months
[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