[
https://issues.jboss.org/browse/RF-11507?page=com.atlassian.jira.plugin.s...
]
Ján Jamrich edited comment on RF-11507 at 10/19/11 7:29 AM:
------------------------------------------------------------
I'm afraid that relevant Metamer source is
http://source.jboss.org/browse/RichFaces/modules/tests/metamer/tags/metam...
But the line you asked about is probably the same.
Currently in 4.1.0-20111014-M3 is reset button code following: (problem still occurs)
<h:commandButton id="sortReset" value="Reset Sorting">
<rich:componentControl event="click"
target="#{nestedComponentId}" operation="sort" />
</h:commandButton>
And it evaluate into following HTML markup:
<input id="afterForm:sortReset" type="submit"
name="afterForm:sortReset" value="Reset Sorting"
onclick="RichFaces.ui.ComponentControl.execute(event,{"selector":null,"target":["form:richEDT"]
,"callback":function(event,component){component['sort'].apply(component,[]
);}} ); return false;">
Seems to me that important is pair: "target":["form:richEDT"], which
is evaluated #{nestedComponentId} and this ID exists (it is root element for
extendedDataTable)
was (Author: jjamrich):
I'm afraid that relevant Metamer sources is
http://source.jboss.org/browse/RichFaces/modules/tests/metamer/tags/metam...
But the line you asked about is probably the same.
Currently in 4.1.0-20111014-M3 is reset button code following: (problem still occurs)
<h:commandButton id="sortReset" value="Reset Sorting">
<rich:componentControl event="click"
target="#{nestedComponentId}" operation="sort" />
</h:commandButton>
And it evaluate into following HTML markup:
<input id="afterForm:sortReset" type="submit"
name="afterForm:sortReset" value="Reset Sorting"
onclick="RichFaces.ui.ComponentControl.execute(event,{"selector":null,"target":["form:richEDT"]
,"callback":function(event,component){component['sort'].apply(component,[]
);}} ); return false;">
Seems to me that important is pair: "target":["form:richEDT"], which
is evaluated #{nestedComponentId} and this ID exists (it is root element for
extendedDataTable)
Metamer: rich:extendedDataTable: reset sorting button causes
exception in log
-----------------------------------------------------------------------------
Key: RF-11507
URL:
https://issues.jboss.org/browse/RF-11507
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tables
Affects Versions: 4.1.0.Milestone3
Environment: RichFaces 4.1.0.20111011-M3 r.
Metamer 4.1.0.20111011-M3 r.22776
Mojarra 2.0.4-b09-jbossorg-4
JBoss Web 7.0.1.Final
Java(TM) SE Runtime Environment 1.6.0_26-b03 @ Linux
Firefox 8.0 @ Linux i686
Reporter: Ján Jamrich
Assignee: Ján Jamrich
Press button "Reset Sorting" on page
faces/components/richExtendedDataTable/sorting-using-component-control.xhtml causes
exception in log.
It doesn't matter if some sorting was done before press this button.
There is stack trace:
{code}
SEVERE [org.richfaces.log.Context] (http--127.0.0.1-8080-6) null:
java.lang.NullPointerException
at
org.richfaces.renderkit.SortingFilteringRowsRenderer.updateSortOrder(SortingFilteringRowsRenderer.java:127)
[richfaces-components-ui-4.1.0.20111011-M3.jar:]
at
org.richfaces.renderkit.SortingFilteringRowsRenderer.decodeSorting(SortingFilteringRowsRenderer.java:109)
[richfaces-components-ui-4.1.0.20111011-M3.jar:]
at
org.richfaces.renderkit.SortingFilteringRowsRenderer.decodeSortingFiltering(SortingFilteringRowsRenderer.java:67)
[richfaces-components-ui-4.1.0.20111011-M3.jar:]
at
org.richfaces.renderkit.ExtendedDataTableRenderer.doDecode(ExtendedDataTableRenderer.java:822)
[richfaces-components-ui-4.1.0.20111011-M3.jar:]
at org.richfaces.renderkit.RendererBase.decode(RendererBase.java:80)
[richfaces-components-ui-4.1.0.20111011-M3.jar:]
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:795)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.richfaces.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:823)
[richfaces-components-ui-4.1.0.20111011-M3.jar:]
at
org.richfaces.context.PartialViewExecuteVisitCallback.visit(PartialViewExecuteVisitCallback.java:53)
[richfaces-core-impl-4.1.0.20111011-M3.jar:]
at
org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:321)
[richfaces-core-impl-4.1.0.20111011-M3.jar:]
at org.richfaces.component.UIDataAdaptor.visitTree(UIDataAdaptor.java:1323)
[richfaces-components-ui-4.1.0.20111011-M3.jar:]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIForm.visitTree(UIForm.java:335)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.richfaces.context.ExtendedPartialViewContextImpl.executeComponents(ExtendedPartialViewContextImpl.java:237)
[richfaces-core-impl-4.1.0.20111011-M3.jar:]
at
org.richfaces.context.ExtendedPartialViewContextImpl.processPartialExecutePhase(ExtendedPartialViewContextImpl.java:217)
[richfaces-core-impl-4.1.0.20111011-M3.jar:]
at
org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:196)
[richfaces-core-impl-4.1.0.20111011-M3.jar:]
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:924)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
[jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
[richfaces-core-impl-4.1.0.20111011-M3.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
[jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
[jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
[jbossweb-7.0.1.Final.jar:7.0.1.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira