[JBoss JIRA] Updated: (RF-11155) a4j:push In CDI Push sample java.lang.IllegalStateException is thrown randomly and also firebug shows error: abordingConnection is not defined
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-11155?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated RF-11155:
----------------------------
Fix Version/s: 4.1.0.Milestone2
(was: 4.1.0.Milestone1)
> a4j:push In CDI Push sample java.lang.IllegalStateException is thrown randomly and also firebug shows error: abordingConnection is not defined
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: RF-11155
> URL: https://issues.jboss.org/browse/RF-11155
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: examples
> Affects Versions: 4.1.0.Milestone1
> Environment: richfaces-showcase 4.1.0-Snapshot, containers JBoss AS 6, 7, browsers firefox 3.6, Chrome 12
> Reporter: Juraj Huska
> Assignee: Lukáš Fryč
> Fix For: 4.1.0.Milestone2
>
>
> After while an exception is thrown, it is generated randomly, I notice this exception after some time spent with invoking new consumers, closing some of them, and sending messages to them.
> {code}
> The exception is:
> 13:19:10,997 SEVERE [org.atmosphere.handler.ReflectorServletProcessor] (http-localhost.localdomain-127.0.0.1-8080-2) onRequest(): java.lang.RuntimeException: java.lang.IllegalStateException: Broadcaster ID already assigned to SCOPE.REQUEST. Cannot change the id
> at org.atmosphere.cpr.Meteor.build(Meteor.java:158) [atmosphere-runtime-0.7.1.jar:]
> at org.richfaces.webapp.PushHandlerFilter.doFilter(PushHandlerFilter.java:76) [richfaces-core-impl-4.1.0-20110713.100430-59.jar:]
> at org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:139) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:116) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:294) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:152) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:191) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:142) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.container.BlockingIOCometSupport.service(BlockingIOCometSupport.java:91) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1185) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1167) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1153) [atmosphere-runtime-0.7.1.jar:]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.2.AS7.jar:2011-07-06 12:26]
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
> at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.0.0.Final.jar:7.0.0.Final]
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
> at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
> Caused by: java.lang.IllegalStateException: Broadcaster ID already assigned to SCOPE.REQUEST. Cannot change the id
> at org.atmosphere.cpr.DefaultBroadcaster.setID(DefaultBroadcaster.java:198) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.DefaultBroadcaster.<init>(DefaultBroadcaster.java:109) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.DefaultBroadcaster.<init>(DefaultBroadcaster.java:102) [atmosphere-runtime-0.7.1.jar:]
> at sun.reflect.GeneratedConstructorAccessor50.newInstance(Unknown Source) [:1.6.0_22]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_22]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_22]
> at java.lang.Class.newInstance0(Class.java:355) [:1.6.0_22]
> at java.lang.Class.newInstance(Class.java:308) [:1.6.0_22]
> at org.atmosphere.cpr.DefaultBroadcasterFactory.get(DefaultBroadcasterFactory.java:125) [atmosphere-runtime-0.7.1.jar:]
> at org.atmosphere.cpr.Meteor.build(Meteor.java:156) [atmosphere-runtime-0.7.1.jar:]
> ... 30 more
> {code}
> There is also an error showed by firebug when any of the consumer window is closed.
> The error is: abordingConnection is not defined
> {code}
> if (abordingConnection) return;
> and code line is 182 in jquery-atmosphere.js
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Updated: (RF-11154) JMS connection is left opened in showcase JMSMessageProducer.java on JBoss AS 7
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-11154?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated RF-11154:
----------------------------
Fix Version/s: 4.1.0.Milestone2
(was: 4.1.0.Milestone1)
> JMS connection is left opened in showcase JMSMessageProducer.java on JBoss AS 7
> -------------------------------------------------------------------------------
>
> Key: RF-11154
> URL: https://issues.jboss.org/browse/RF-11154
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: examples
> Affects Versions: 4.1.0.Milestone1
> Environment: richfaces-showcase 4.1.0.-SNAPSHOT, container JBoss AS 7.0.0.Final
> Reporter: Juraj Huska
> Assignee: Lukáš Fryč
> Fix For: 4.1.0.Milestone2
>
>
> When I am deploying showcase multiple times during running test suite(this multiple deployment is needed in Arquillian, since for every test class is application deployed again), I am encountering with java.lang.OutOfMemoryError: PermGen space error which in my opinion caused by this:
> {code}
> WARN [org.hornetq.jms.client.HornetQConnection] (Finalizer) I'm closing a JMS connection you left open. Please make sure you close all JMS connections explicitly before letting them go out of scope!
> 13:03:33,712 WARN [org.hornetq.jms.client.HornetQConnection] (Finalizer) The JMS connection you didn't close was created here:: java.lang.Exception
> at org.hornetq.jms.client.HornetQConnection.<init>(HornetQConnection.java:152)
> at org.hornetq.jms.client.HornetQTopicConnection.<init>(HornetQTopicConnection.java:35)
> at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:682)
> at org.hornetq.jms.client.HornetQConnectionFactory.createTopicConnection(HornetQConnectionFactory.java:145)
> at org.hornetq.jms.client.HornetQConnectionFactory.createTopicConnection(HornetQConnectionFactory.java:140)
> at org.richfaces.demo.push.JMSMessageProducer.initializeMessaging(JMSMessageProducer.java:86)
> at org.richfaces.demo.push.JMSMessageProducer.sendMessage(JMSMessageProducer.java:66)
> at org.richfaces.demo.push.MessageProducerRunnable.run(MessageProducerRunnable.java:57)
> at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
> {code}
> When I am deploying showcase.war which is without Push example(4.0.0.Final), so no JMS communication is opened, no Perm Gen error is thrown.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Updated: (RF-11153) Text exceeds edges of consumer window in CDI sample for aj4:push in showcase
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-11153?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated RF-11153:
----------------------------
Fix Version/s: 4.1.0.Milestone2
(was: 4.1.0.Milestone1)
> Text exceeds edges of consumer window in CDI sample for aj4:push in showcase
> ----------------------------------------------------------------------------
>
> Key: RF-11153
> URL: https://issues.jboss.org/browse/RF-11153
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: examples
> Affects Versions: 4.1.0.Milestone1
> Environment: richfaces-showcase-4.1.0-SNAPSHOT
> Reporter: Juraj Huska
> Assignee: Lukáš Fryč
> Fix For: 4.1.0.Milestone2
>
> Attachments: firstWrong.png, secondWrong.png
>
>
> When the message which is pushed to consumers is too long, like 50 characters and more, than the output on consumers window looks quite ugly, since the message exceeds the white part of the page. The solution would be either to enlarge the white part, or to make a restriction about size of message to for example 40 chars.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (RF-11172) dataScroller for dataGrid not working inside modalPanel
by Fabio Fonseca (JIRA)
dataScroller for dataGrid not working inside modalPanel
-------------------------------------------------------
Key: RF-11172
URL: https://issues.jboss.org/browse/RF-11172
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.3.3.Final
Environment: Tomcat 6; JSF 1.2; Facelets;
FF, Chrome and IE
Reporter: Fabio Fonseca
I have something like this:
<a4j:region id="regionResultadoPanel">
<rich:modalPanel id="resultadoPanel" width="880" height="560" zindex="400">
(...)
<h:form>
<rich:dataGrid
rendered="#{not empty BuscarAnunciosCtrl.resultadoBusca}"
id="resultadoBuscasTabela" styleClass="gridPanelStyle"
cellspacing="0px;" columnClasses="gridPanelStyle" border="0"
value="#{BuscarAnunciosCtrl.resultadoBusca}" var="anuncios"
columns="3" elements="9" width="100%" onclick="reRenderTable();">
<table width="278px" style="border: black solid 2px;">
(...)
</table>
<f:facet name="footer">
<rich:datascroller></rich:datascroller>
</f:facet>
</rich:dataGrid>
</h:form>
(...)
</rich:modalPanel>
</a4j:region>
The pages of the scroller are not even showing.
Inside firebug, this error appears if you click the scroller:
this._form is null
http://localhost:8080/estagie/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.Aj...
Line 201
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (RF-11173) dataScroller for dataGrid not working inside modalPanel
by Fabio Fonseca (JIRA)
dataScroller for dataGrid not working inside modalPanel
-------------------------------------------------------
Key: RF-11173
URL: https://issues.jboss.org/browse/RF-11173
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.3.3.Final
Environment: Tomcat 6; JSF 1.2; Facelets;
FF, Chrome and IE
Reporter: Fabio Fonseca
I have something like this:
<a4j:region id="regionResultadoPanel">
<rich:modalPanel id="resultadoPanel" width="880" height="560" zindex="400">
(...)
<h:form>
<rich:dataGrid
rendered="#{not empty BuscarAnunciosCtrl.resultadoBusca}"
id="resultadoBuscasTabela" styleClass="gridPanelStyle"
cellspacing="0px;" columnClasses="gridPanelStyle" border="0"
value="#{BuscarAnunciosCtrl.resultadoBusca}" var="anuncios"
columns="3" elements="9" width="100%" onclick="reRenderTable();">
<table width="278px" style="border: black solid 2px;">
(...)
</table>
<f:facet name="footer">
<rich:datascroller></rich:datascroller>
</f:facet>
</rich:dataGrid>
</h:form>
(...)
</rich:modalPanel>
</a4j:region>
The pages of the scroller are not even showing.
Inside firebug, this error appears if you click the scroller:
this._form is null
http://localhost:8080/estagie/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.Aj...
Line 201
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (RF-11025) OrderingList component for 4.0
by Jay Balunas (JIRA)
OrderingList component for 4.0
------------------------------
Key: RF-11025
URL: https://issues.jboss.org/browse/RF-11025
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: component-selects
Reporter: Jay Balunas
Priority: Critical
Fix For: 4.1.0.Milestone1
Other ordering list is related to ListShuttle/PickList ( RF-11023 ), but is its own stand alone component.
It will be sharing a fair amount of functionality and code with ListShuttle/PickList, and so should be designed and developed together.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (RF-9444) ExtendedDataTable allows only EL expressions for property selection
by Eloweyn G (JIRA)
ExtendedDataTable allows only EL expressions for property selection
-------------------------------------------------------------------
Key: RF-9444
URL: https://jira.jboss.org/browse/RF-9444
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-ScrollableDataTable
Affects Versions: 3.3.3.Final
Environment: Windows 2003 server
Apache Tomcat 6.0.26 Server
Java 1.5
Richfaces 3.3.3 final
Reporter: Eloweyn G
Priority: Blocker
when I start the aplication I get this error:
org.apache.jasper.JasperException: Ha sucedido una excepción al procesar la página JSP /pages/index.jsp en línea 37
34:
35: <br>
36: <div align="center">
37: <rich:extendedDataTable
38: value="#{mantGestBean.lGest}" var="listaGestVar" id="table"
39: sortMode="#{mantGestBean.sortMode}"
40: selectionMode="#{mantGestBean.selectionMode}"
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:530)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
causa raíz
java.lang.IllegalArgumentException: Component org.richfaces.ExtendedDataTable with Id table allows only EL expressions for property selection
org.richfaces.taglib.ExtendedDataTableTag.setProperties(ExtendedDataTableTag.java:1464)
javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:230)
javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)
javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)
javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
org.apache.jsp.pages.index_jsp._jspx_meth_rich_005fextendedDataTable_005f0(index_jsp.java:302)
org.apache.jsp.pages.index_jsp._jspx_meth_a4j_005fform_005f0(index_jsp.java:241)
org.apache.jsp.pages.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:165)
org.apache.jsp.pages.index_jsp._jspService(index_jsp.java:125)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:530)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Here you have my index.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<html>
<head>
<title>MG</title>
<link href="css/MG.css" rel="stylesheet" type="text/css" />
</head>
<body>
<f:view>
<a4j:form style="width:90%;align:center">
<table style="width: 100%;" border="0">
<col /> <col />
<tbody>
<tr>
<td><img alt="AXA" src="img/logo_axa_2.gif" /></td>
<td style="text-align: right; margin-left: auto; margin-right: 0pt;">
<span style="font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: 8pt;">SE0200</span></span>
</td>
</tr>
</tbody>
</table>
<h1>Siniestros Extranjeros - Mantenimiento de gestores</h1>
<p>A continuación se muestra la lista de gestores de Siniestros Extranjeros.
Por favor, marque los gestores presentes y pulse <em>Aceptar</em> para
confirmar los cambios. Si no desea grabar ningún cambio o si ya ha terminado y
desea finalizar, pulse <em>Cancelar</em> para cerrar esta ventana.
</p>
<br>
<div align="center">
<rich:extendedDataTable
value="#{mantGestBean.lGest}" var="listaGestVar" id="table"
sortMode="#{mantGestBean.sortMode}"
selectionMode="#{mantGestBean.selectionMode}"
selection="#{mantGestBean.selection}" align="center" height="200px"
width="50%">
<rich:column sortable="true" label="Usuario"
filterBy="#{listaGestVar.nombre}" filterEvent="onkeyup"
sortBy="#{listaGestVar.nombre}" width="85%">
<f:facet name="header">
<h:outputText value="Usuario" />
</f:facet>
<h:outputText value="#{listaGestVar.nombre}" />
</rich:column>
<rich:column label="Presente" width="15%">
<f:facet name="header">
<h:outputText value="Presente" />
</f:facet>
<h:selectBooleanCheckbox id="checkEntry"
value="#{listaGestVar.presente}" />
</rich:column>
</rich:extendedDataTable>
<h:panelGrid columns="2" style="align:right">
<a4j:commandButton value="Aceptar" style="align:right"
action="#{mantGestBean.update}"
oncomplete="Richfaces.showModalPanel('Panel')" reRender="panel" />
<a4j:commandButton value="Cancelar" onclick="window.close()"
style="align:right" />
</h:panelGrid>
</div>
<p>
<span class="a_link" onclick="Richfaces.showModalPanel('PanelActualizaGest')">Actualizar lista gestores. </span> Actualiza la lista de gestores.
Incorpora a la lista de gestores, marcándolos como presentes,
todos los usuarios que se hayan añadido al grupo de gestores de apertura.
Elimina usuarios que se hayan quitado del grupo de gestores de apertura y
redistribuye sus tareas entre los restantes gestores que están presentes.</p>
</a4j:form>
<rich:modalPanel id="panel" width="350" height="75">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Información"></h:outputText>
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/img/close.png"
styleClass="hidelink" id="hidelink" />
<rich:componentControl for="panel" attachTo="hidelink"
operation="hide" event="onclick" />
</h:panelGroup>
</f:facet>
<h:outputText
value="#{mantGestBean.sMensaje}"></h:outputText>
</rich:modalPanel>
<rich:modalPanel id="panelActualizaGest" width="400" height="100">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Atención"></h:outputText>
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/img/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('panelActualizaGest')" />
</h:panelGroup>
</f:facet>
<h:outputText
value="Se va a proceder a la actualización de la lista de gestores. Desea continuar?"></h:outputText>
<a4j:form>
<table style="width: 100%;">
<tr>
<td >
<div align="center" >
<a4j:commandButton value=" Sí " action="#{cargaBean.actualizarGestores}" onclick="Richfaces.hideModalPanel('panelActualizaGest')" oncomplete='window.location=\"./pages/carga.jsf\"' />
<a4j:commandButton value=" No " onclick="Richfaces.hideModalPanel('panelActualizaGest')" />
</div>
</td>
</tr>
</table>
</a4j:form>
</rich:modalPanel>
</f:view>
</body>
</html>
and this is the MantGestBean class:
package es.axa.mgSE.beans;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.richfaces.model.selection.SimpleSelection;
import es.axa.SE.filenet.tasks.TaskSEManager;
import es.axa.mgSE.hibernate.HibernateUtil;
import es.axa.mgSE.objects.Gestor;
import es.axa.mgSE.objects.ListaGestores;
public class MantGestBean {
private List <Gestor> lGest;
private String sortMode="single";
private String selectionMode="multi";
private SimpleSelection selection = new SimpleSelection();
private String sMensaje="";
private static final Log log = LogFactory.getLog(MantGestBean.class);
public List <Gestor> getlGest() throws Exception {
try {
ListaGestores lgestObj=new ListaGestores();
lGest=lgestObj.getListGestores();
HibernateUtil.closeSession();
return lGest;
}catch (Exception e){
HibernateUtil.closeSession();
throw e;
}
}
public void setlGest(List <Gestor> lGest) {
this.lGest = lGest;
}
public String getSortMode() {
return sortMode;
}
public void setSortMode(String sortMode) {
this.sortMode = sortMode;
}
public String getSelectionMode() {
return selectionMode;
}
public void setSelectionMode(String selectionMode) {
this.selectionMode = selectionMode;
}
public SimpleSelection getSelection() {
return selection;
}
public void setSelection(SimpleSelection selection) {
this.selection = selection;
}
public void takeSelection(){
System.out.println("Selección");
}
public String getsMensaje() {
return sMensaje;
}
public void setsMensaje(String sMensaje) {
this.sMensaje = sMensaje;
}
public void update()throws Exception {
try{
if (!lGest.isEmpty()) {
log.debug("update - Iniciando update");
ListaGestores lgestObj=new ListaGestores();
// Obtener la lista tal y como está antes de actualizar
List<Gestor> listaOldGest = lgestObj.getListGestores();
// Actualizamos la lista con los valores introducidos por el usuario
lgestObj.updateListGestores(lGest);
// Construir la lista de gestores que pasan de activo a inactivo
List<Gestor> gestCambiados = new ArrayList<Gestor>();
for( int i = 0; i < listaOldGest.size(); i++) {
if (!lGest.get(i).isPresente() && listaOldGest.get(i).isPresente()) {
gestCambiados.add(lGest.get(i));
}
}
//Ahora tenemos que pasar las tareas activas de los usuarios cambiados
//a otros usuarios que estén presentes
if (!gestCambiados.isEmpty()){
TaskSEManager taskManager=new TaskSEManager();
taskManager.traspasoTareasActivas(gestCambiados);
}
this.setsMensaje("La base de datos se ha actualizado correctamente");
log.debug("update - Finalizando update");
}else {
this.setsMensaje("No hay ningún elemento en la tabla");
}
}catch (Exception e){
throw e;
}finally {
HibernateUtil.closeSession();
}
}
}
thank you very much
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (RF-10154) UIDataAdaptor vs. UIData visitTee small difference
by Martin Kočí (JIRA)
UIDataAdaptor vs. UIData visitTee small difference
--------------------------------------------------
Key: RF-10154
URL: https://issues.jboss.org/browse/RF-10154
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-tables
Affects Versions: 4.0.0.Milestone5
Environment: RichFaces 4.0.X trunk, svn rev. 20913
Reporter: Martin Kočí
Priority: Minor
<r:extendedDataTable var="zeile">
<r:column>
<h:outputText rendered="#{fasole.method(zeile)}"
</r:column>
</r:extendedDataTable>
+
org.richfaces.component.UIDataAdaptor.visitTree(VisitContext, VisitCallback) with VisitHint SKIP_UNRENDERED (in render response phase for example)
Problem: org.richfaces.component.UIDataAdaptor.visitDataChildren(VisitContext, VisitCallback, boolean) calls visitComponents(getFacetsAndChildren(), visitContext, callback);-> it will visit h:outputText component and test if is rendered -> #{fasole.method(zeile)} but no row available -> calls fasole.method with null parameter and causes an unexpected NPE
j.f.c.UIData does not visit column chidren for -1 rowIndex (null rowKey in RichFaces), UIData.visitTree JavaDoc says: "Take no action on non-UIColumn children".
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months