[JBoss JIRA] Created: (RF-1636) Sorting date-column in scrollableDataTable gives NPE
by Alexander Seitz (JIRA)
Sorting date-column in scrollableDataTable gives NPE
----------------------------------------------------
Key: RF-1636
URL: http://jira.jboss.com/jira/browse/RF-1636
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.2
Reporter: Alexander Seitz
If you try to sort a column (by clicking the column header) containing entries of the type date, you get a NullPointerException in case one or more date-values are empty in the table.
Caused by: java.lang.NullPointerException
at java.util.Date.getMillisOf(Date.java:939)
at java.util.Date.compareTo(Date.java:959)
at java.util.Date.compareTo(Date.java:112)
at org.richfaces.model.internal.WrappedBeanComparator.compare(WrappedBeanComparator.java:42)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.sort(Arrays.java:1210)
at java.util.Collections.sort(Collections.java:159)
at org.richfaces.model.internal.ComponentSortableDataModel.prepareCollection(ComponentSortableDataModel.java:57)
at org.richfaces.model.internal.ComponentSortableDataModel.loadData(ComponentSortableDataModel.java:81)
at org.richfaces.model.DataModelCache.loadData(DataModelCache.java:153)
at org.richfaces.model.ScrollableTableDataModel.walk(ScrollableTableDataModel.java:115)
at org.richfaces.model.DataModelCache.walk(DataModelCache.java:183)
at org.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:968)
...
--
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
17 years, 11 months
[JBoss JIRA] Created: (RF-2232) actionparam fails when using javascript
by Magnus Sandberg (JIRA)
actionparam fails when using javascript
---------------------------------------
Key: RF-2232
URL: http://jira.jboss.com/jira/browse/RF-2232
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Reporter: Magnus Sandberg
(This might be the same as RF-1815)
It seems like A4J.AJAX.Submit creates bad requests when a java-script is used:
<a4j:actionparam name="XX" value="YY" assignTo="#{parameters.value}" />
works, request contains: &XX=YY&
<a4j:actionparam name="XX" value="screen.height" assignTo="#{parameters.value}" noEscape="true" />
works, request contains: &XX=4711&
<a4j:actionparam name="XX" value="document.getElementById('xx_node')" assignTo="#{parameters.value}" noEscape="true" />
does not work, request contains: &=my_value&, so the XX= is dropped and <null> is assigned to #{parameters.value}.
--
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
17 years, 11 months
[JBoss JIRA] Created: (RF-2215) rich:tab created in c:forEach fails if properties are defined by EL expressions
by David M. Karr (JIRA)
rich:tab created in c:forEach fails if properties are defined by EL expressions
-------------------------------------------------------------------------------
Key: RF-2215
URL: http://jira.jboss.com/jira/browse/RF-2215
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Reporter: David M. Karr
This simple test case creates rich:tab elements with a c:forEach inside a rich:tabPanel. The attributes of the enclosed tab are defined by EL expressions. When the page displays, a NPE in org.richfaces.renderkit.TabPanelRendererBase.encodeTabs() occurs. Tracing this in the debugger, the NPE happens because the "name" property of the tab object is null. The value of the "name" property is specified by the "#{property.propertyID}" expression, which should not be null.
I've tested this scenario in RichFaces 3.1.3 and 3.1.4, myFaces 1.2.2, and Sun RI 1.2_07-b03.
I obviously don't know for certain if this is a bug in RichFaces, or any of the other various frameworks integrated with this. it's just a reasonable guess that it is. I've been pursuing this issue in the various forums with several notes, but I haven't gotten any leads from that.
I'm going to attach the entire Eclipse project that demonstrates this, which is pretty small.
--
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
17 years, 11 months
[JBoss JIRA] Created: (RF-2266) Problems selecting an item from listShuffle after reRender
by Antonio Junior (JIRA)
Problems selecting an item from listShuffle after reRender
----------------------------------------------------------
Key: RF-2266
URL: http://jira.jboss.com/jira/browse/RF-2266
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4, 3.1.3, 3.2.0
Environment: Firefox 2.0
IE7
JBoss 4.2.1
Reporter: Antonio Junior
I have a <listShuttle> element in my page, and a <h:selectOneMenu> combined with a <a4j:support> which should reRender the listShuttle component.
Unfortunatelly, this doesn' t happens - the list values are shown but I'm unable to click on the elements. After the first access, when the lists are loaded in the session, making a new request re-render the whole page, and the listShuttle component works fine.
I saw a similar issue, that seems to be solved: RF1510.
I tried the versions 3.1.3, 3.1.4 and 3.2.0 - richfaces-ui-3.2.0-20080125.055336-75-bin.zip.
Below is the code where the problem happens:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
template="/pages/layout.xhtml">
<ui:define name="title"><h:outputText value="#{bundle['title.manageGroups']}"/></ui:define>
<ui:define name="principal">
<h:form>
<h:panelGrid id="panel1" align="center" columns="2" border="0">
<h:outputText id="label_tipoGrupo" styleClass="textInput" value="Grupo: " />
<h:selectOneMenu id="chooseTypeGroup" styleClass="comboBox"
value="#{managedGroupBean.grupoSelecionado}">
<f:selectItems id="mySelectItems" value="#{managedGroupBean.grupos}" />
<a4j:support event="onchange" action="#{managedGroupBean.listarUser}"
reRender="lsUser, lsStructure" />
</h:selectOneMenu>
</h:panelGrid>
<h:panelGrid id="panel2" align="center" columns="1" border="0">
<h:outputText id="label_usuario" styleClass="textInput" value="Associacao de Usuarios" />
<rich:listShuttle id="lsUser"
sourceValue="#{managedGroupBean.listaUser}"
targetValue="#{managedGroupBean.listaUserTarget}" var="items"
sourceCaptionLabel="Usuario Sem Grupo"
targetCaptionLabel="Usuario Associado Grupo"
converter="conversorUser">
<rich:column>
<h:outputText value="#{items.name}" />
</rich:column>
</rich:listShuttle>
<h:outputText id="label_estrutura" styleClass="textInput" value="Associacao de Usuarios" />
<rich:listShuttle id="lsStructure"
sourceValue="#{managedGroupBean.listaEstrutura}"
targetValue="#{managedGroupBean.listaEstruturaTarget}" var="items"
sourceCaptionLabel="Estrutura Sem Grupo"
targetCaptionLabel="Estrutura Associada ao Grupo"
converter="conversorStructure">
<rich:column>
<h:outputText value="#{items.name}" />
</rich:column>
</rich:listShuttle>
<a4j:commandButton styleClass="btnActions" id="btn_send" value="Salvar" action="#{managedGroupBean.gravar}" style="visibility: visible;"/>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>
--
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
17 years, 11 months