[JBoss JIRA] Created: (RF-7283) rich:dataGrid empty cell generates invalid XML
by Jeremie Panzer (JIRA)
rich:dataGrid empty cell generates invalid XML
-----------------------------------------------
Key: RF-7283
URL: https://jira.jboss.org/jira/browse/RF-7283
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: Jboss 4.2, RedHat 5.2, RF 3.3.1
Reporter: Jeremie Panzer
I'm using a4j:include navigation and the navigation is working fine as long as I'm not trying to access a page containing a rich:dataGrid component.
The starting page is the one containing the dataGrid and is shown correctly. I have a commandLink pointing to another page, and a back button on that second page.
When using the back button, thus retrieving the dataGrid page through Ajax, I'm getting the following error:
error[9:04:56,090]: Error parsing XML
error[9:04:56,091]: Parse Error: XML Parsing Error: undefined entity Location: http://genesis1.spacebel.be/genesis-jsf/portlets/serviceordering/index.js... Line Number 105, Column 61: </div></div></td><td class="dr-table-cell rich-table-cell "> </td></tr></tbody></table></div></div></td></tr></table></td><td id="__serviceordering_WAR_genesisjsf_INSTANCE_g8sA_:_viewRoot:j_id9:j_id10:j_id190" style="display: none;;height:100%"><table border="0" cellpadding="10" cellspacing="0" class="dr-tbpnl-cntnt-pstn rich-tabpanel-content-position" width="100%"><tr><td class="dr-tbpnl-cntnt rich-tabpanel-content " style="; "><div class="dr-tree rich-tree " id="__serviceordering_WAR_genesisjsf_INSTANCE_g8sA_:_viewRoot:j_id9:j_id10:me ------------------------------------------------------------^
It looks like the (which is inserted inside an empty cell) is causing this, because if the size of the collection used to populate the dataGrid is a multiple of the dataGrid number of columns, everything is working fine.
Here's how to reproduce:
index.xhtml
<a4j:form>
<a4j:include
viewId="page1.xhtml" />
</a4j:form>
page1.xhtml
<a4j:commandLink action="#{myBean.toSecondPage}"
value="Go" immediate="true" />
page2.xhtml
<rich:dataGrid value="#{myBean.elements}" var="element"
columns="3">
<rich:panel><h:outputText value="#{element.id}" /></rich:panel>
</rich:dataGrid>
and having the myBean.elements collection having less than 3 elements.
--
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, 7 months
[JBoss JIRA] Created: (RF-5607) rich:componentControl: disableDefault attribute not work
by Alexandr Levkovsky (JIRA)
rich:componentControl: disableDefault attribute not work
--------------------------------------------------------
Key: RF-5607
URL: https://jira.jboss.org/jira/browse/RF-5607
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: Alexandr Levkovsky
Assignee: Nick Belaevski
rich:componentControl: disableDefault attribute not work.
Following example submit the page but it is incorrect.
<rich:modalPanel id="panel" width="350" height="100">
<h:outputText value="This panel is called using Component Control Component"></h:outputText>
</rich:modalPanel>
<h:commandLink value="Show Modal Panel" id="showlink" >
<rich:componentControl id="control" for="panel" operation="show" event="onclick" disableDefault="true"/>
</h:commandLink>
--
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, 7 months
[JBoss JIRA] Created: (RF-6424) Current row can't be resolved after item deleting from the OrderedList using Ajax
by Vladimir Danko (JIRA)
Current row can't be resolved after item deleting from the OrderedList using Ajax
---------------------------------------------------------------------------------
Key: RF-6424
URL: https://jira.jboss.org/jira/browse/RF-6424
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: jboss-5.0.0.CR2,
Seam,
FF
Reporter: Vladimir Danko
Fix For: 3.3.1
After I delete the row from the OrderedList the component can't be re-rendered at all since JavaScript error:
Error: activeItem.item is undefined Source File: http://localhost:8080/Myproject/a4j/g/3_3_0.GAscripts/ListBase.js Line: 17
XHTML:
<rich:panel rendered="#{customFilterListEdit.entity.scopeDisabled}" id="grid" >
<table width="100%">
<tr>
<td colspan="7" class="tableheader leftheader">Kriterien</td>
</tr>
<tr>
</tr>
<tr>
<rich:orderingList value="#{customFilterCriteriaList.filterCriteriasList}"
var="cList"
listHeight="400"
converter="orderingListConverter"
listWidth="500"
selection="#{customFilterListEdit.selection}"
activeItem="#{customFilterListEdit.activeItem}"
>
<rich:column width="100">
<f:facet name="header">
<h:outputText value="Field Name" />
</f:facet>
<h:outputText value ="#{cList.custom_filter_criteria_field_fn}"/>
</rich:column>
<rich:column width="75">
<f:facet name="header">
<h:outputText value="Operation" />
</f:facet>
<h:outputText value ="#{cList.operation == 1}"/>
</rich:column>
<rich:column width="100">
<f:facet name="header">
<h:outputText value="Value" />
</f:facet>
<h:outputText value ="#{cList.filter_value}"/>
</rich:column>
<rich:column width="100">
<f:facet name="header">
<h:outputText value="Join operation" />
</f:facet>
<h:outputText value ="#{cList.join_operator"/>
</rich:column>
<rich:column width="100" label="#{messages.ACTION_COLUMN_LABEL}">
<f:facet id="DeleteFacet" name="header">#{messages.ACTION_COLUMN_LABEL}</f:facet>
<a4j:commandLink ajaxSingle="true" id="deletelink" action="#{customFilterCriteriaListEdit.delete(cList.custom_filter_criteria_id))">
<h:graphicImage value="/img/delete.gif" style="border:0"/>
</a4j:commandLink>
<rich:toolTip for="deletelink" value="#{messages.DELETE_LABEL}"/>
</rich:column>
</rich:orderingList>
</tr>
<tr>
<td colspan="7"> </td>
</tr>
</table>
</rich:panel>
--
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, 7 months
[JBoss JIRA] Created: (RF-3350) Selection doesn't work in modalPanel with FF2
by Paul Andrews (JIRA)
Selection doesn't work in modalPanel with FF2
---------------------------------------------
Key: RF-3350
URL: http://jira.jboss.com/jira/browse/RF-3350
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5
Environment: Tomcat 5.x, MyFaces 1.1.5.
Reporter: Paul Andrews
If there is an HTML element in a modal panel that requires a selection, it doesn't work in FireFox 2.x unless you drag or resize the modal panel first. It works fine in IE6. Here is a little test page:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>
Modal Test
</title>
</head>
<body>
<f:view>
<rich:calendar id="date" value=""/>
<h:form>
<h:commandLink onclick="Richfaces.showModalPanel('testPanel');return false;" value="Show test panel"/>
</h:form>
<rich:modalPanel id="testPanel">
<f:facet name="header">
<h:outputText value="Test Panel" />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="images/modal/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('testPanel')" />
</f:facet>
<h:form id="fdsdForm">
<h:commandLink onclick="Richfaces.hideModalPanel('testPanel');return false;" value="Hide this panel"/>
<h:selectOneListbox>
<f:selectItem itemValue="One"/>
<f:selectItem itemValue="Two"/>
</h:selectOneListbox>
</h:form>
</rich:modalPanel>
</f:view>
</body>
</html>
Trying to select an item in the list box doesn't work until you have dragged the page. I pored through the JavaScript source but couldn't see anything obviously wrong and all my attempts to fix the issue by simulating a drag from JavaScript failed. A work-around would be great since I get the feeling that work on the 3.1.x branch of RichFaces has ceased.
--
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, 8 months