[JBoss JIRA] Created: (RF-8263) RichFaces ScrollableDateTable doenst clean the selection correctly when Data Model changes, in a SEAM CONVERSATION ENVIRONMENT.
by Javier Quirante (JIRA)
RichFaces ScrollableDateTable doenst clean the selection correctly when Data Model changes, in a SEAM CONVERSATION ENVIRONMENT.
-------------------------------------------------------------------------------------------------------------------------------
Key: RF-8263
URL: https://jira.jboss.org/jira/browse/RF-8263
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-ScrollableDataTable
Affects Versions: 3.3.1
Environment: jsf-api-1.2_13 jboss-seam-2.1.1
Reporter: Javier Quirante
Priority: Minor
I have an ScrollableDataTable that is opened in a Modal Panel (it is in the same xhtml, both the page that shows the scrollableDataTable and the scrollableDataTable itself).
The fist time I search in the table is all right. I select for instance THE FIRST item , the Modal Panel hides, and the Object list is cleaned.
Its return to the same without the modal panel and the item selected.
The second time I back to the dateTable i make a new search and when the results are shown: the FIRST element is ALREADY SELECTED.
At least appears in bold type.
It seems the JSF tree doesn´t refresh correctly. This problem wouldn´t occur if the scrollableDataTable were in another page or in the modal Panel is called with
a GET button.
So my solution is, when i clean the data Model also clean the component ScrollableDataTable on the JSF Tree:
public void limpiarSelectionRichScrollableTable(){
log.debug("Entra en limpiarSelectionRichScrollableTable: ");
this.cleanSelectionRichScrollableTable(FacesContext.getCurrentInstance().getViewRoot());
}
public void cleanSelectionRichScrollableTable(UIComponent root) {
log.debug("Entra en cleanSelectionRichScrollableTable: " + root.getId());
for (UIComponent component : root.getChildren()) {
if (component instanceof HtmlScrollableDataTable) {
HtmlScrollableDataTable valueHolder = (HtmlScrollableDataTable)component;
root.getChildren().remove(valueHolder);
}
cleanSelectionRichScrollableTable(component);
}
}
But I think that this, should be done by the component itself when the data model changes. In fact the background row is not not coloured only appears in bold style letter.
Something you can do?
Thanks in advance.
--
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, 10 months
[JBoss JIRA] Created: (RF-7381) rich:togglePanel - attribute opened - switchType server - NullPointerException
by luca albertazzi (JIRA)
rich:togglePanel - attribute opened - switchType server - NullPointerException
------------------------------------------------------------------------------
Key: RF-7381
URL: https://jira.jboss.org/jira/browse/RF-7381
Project: RichFaces
Issue Type: Bug
Components: component-panels-layout-themes
Affects Versions: 3.3.1
Reporter: luca albertazzi
Since version 3.3.1.GA we got a null pointer exception when 'toggling'.
---------
Usage:
<rich:simpleTogglePanel switchType="server" opened="#{dettaglioHelper.pratica.stato.id eq 1005 or dettaglioHelper.pratica.stato.id eq 1006}"
rendered="#{!empty dettaglioHelper.moduliLettera and dettaglioHelper.pratica.stato.id ge 1005 }">
--------
The error is class UISimpleTogglePanel.updateModel() in line 315, because e.getCause(); in line 296 returns null
--------
Stack trace:
java.lang.NullPointerException: exception can not be null.
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.checkNull(ServletExternalContextImpl.java:503)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.log(ServletExternalContextImpl.java:404)
at org.springframework.faces.webflow.ExternalContextWrapper.log(ExternalContextWrapper.java:165)
at org.richfaces.component.UISimpleTogglePanel.updateModel(UISimpleTogglePanel.java:315)
at org.richfaces.component.UISimpleTogglePanel.broadcast(UISimpleTogglePanel.java:207)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
at org.ajax4jsf.component.AjaxViewRoot.processUpdates(AjaxViewRoot.java:432)
at org.springframework.faces.webflow.FlowLifecycle.invokePhase(FlowLifecycle.java:119)
at org.springframework.faces.webflow.FlowLifecycle.execute(FlowLifecycle.java:65)
at org.springframework.faces.webflow.JsfView.processUserEvent(JsfView.java:110)
at org.springframework.webflow.engine.ViewState.resume(ViewState.java:187)
at org.springframework.webflow.engine.Flow.resume(Flow.java:535)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:261)
at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:153)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:173)
at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:172)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.cedac.erreti.common.servlet.filter.AntiCachingHeadersFilter.doFilter(AntiCachingHeadersFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at com.cedac.erreti.common.mps.acegi.SSOCommonAuthenticationProcessingFilter.doFilter(SSOCommonAuthenticationProcessingFilter.java:119)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:174)
at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at it.copergmps.ContestoMCFilter.doFilter(ContestoMCFilter.java:64)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
--
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, 10 months