An Error Occurred:

/verCrime.xhtml @58,57 test="#{mostrarDadosForm.crime.status == 1}" /verCrime.xhtml @58,57 test="#{mostrarDadosForm.crime.status == 1}": Error writing 'idCrime' on type org.wikicrimes.web.MostrarDadosForm

+ Stack Trace

com.sun.facelets.tag.TagAttributeException: /verCrime.xhtml @58,57 test="#{mostrarDadosForm.crime.status == 1}" /verCrime.xhtml @58,57 test="#{mostrarDadosForm.crime.status == 1}": Error writing 'idCrime' on type org.wikicrimes.web.MostrarDadosForm
	at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
	at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
	at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:49)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
	at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
	at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:312)
	at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:282)
	at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
	at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
	at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
	at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
	at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
	at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:509)
	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:552)
	at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
	at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.wikicrimes.filter.IE9CompatablityFixServlet.doFilter(IE9CompatablityFixServlet.java:19)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.wikicrimes.web.MessageFilter.doFilter(MessageFilter.java:32)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
	at java.lang.Thread.run(Thread.java:745)
Caused by: javax.el.ELException: /verCrime.xhtml @58,57 test="#{mostrarDadosForm.crime.status == 1}": Error writing 'idCrime' on type org.wikicrimes.web.MostrarDadosForm
	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
	at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
	... 64 more
Caused by: javax.faces.el.EvaluationException: Error writing 'idCrime' on type org.wikicrimes.web.MostrarDadosForm
	at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:76)
	at org.apache.myfaces.custom.redirectTracker.RedirectTrackerVariableResolver.resolveVariable(RedirectTrackerVariableResolver.java:41)
	at org.apache.myfaces.custom.security.SecurityContextVariableResolver.resolveVariable(SecurityContextVariableResolver.java:45)
	at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:108)
	at org.apache.myfaces.el.convert.VariableResolverToELResolver.getValue(VariableResolverToELResolver.java:93)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.access$301(FacesCompositeELResolver.java:46)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver$4.invoke(FacesCompositeELResolver.java:108)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.invoke(FacesCompositeELResolver.java:148)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:104)
	at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:61)
	at org.apache.el.parser.AstValue.getValue(AstValue.java:107)
	at org.apache.el.parser.AstEqual.getValue(AstEqual.java:37)
	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
	... 65 more
Caused by: javax.el.ELException: Error writing 'idCrime' on type org.wikicrimes.web.MostrarDadosForm
	at javax.el.BeanELResolver.setValue(BeanELResolver.java:112)
	at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:69)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.access$501(FacesCompositeELResolver.java:46)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver$6.invoke(FacesCompositeELResolver.java:132)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.invoke(FacesCompositeELResolver.java:148)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:128)
	at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:256)
	at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:88)
	at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:196)
	at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:162)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.access$301(FacesCompositeELResolver.java:46)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver$4.invoke(FacesCompositeELResolver.java:108)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.invoke(FacesCompositeELResolver.java:148)
	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:104)
	at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:61)
	... 79 more
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
	at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:541)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:350)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:262)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at com.sun.proxy.$Proxy11.getCrime(Unknown Source)
	at org.wikicrimes.web.MostrarDadosForm.setIdCrime(MostrarDadosForm.java:112)
	at sun.reflect.GeneratedMethodAccessor516.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at javax.el.BeanELResolver.setValue(BeanELResolver.java:108)
	... 94 more
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
	at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
	at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)
	at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
	at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
	at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)
	... 107 more
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
	... 112 more
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:825)
	at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
	... 115 more

+ Component Tree

<AjaxViewRoot id="_viewRoot" immediate="false" locale="en" renderKitId="HTML_BASIC" renderRegionOnly="false" rendered="true" selfRendered="false" submitted="false" transient="false" viewId="/verCrime.xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:c="http://java.sun.com/jsp/jstl/core"> <head> <script src="https://maps.googleapis.com/maps/api/js?key=#{messages['chave.googlemaps']}&sensor=false" type="text/javascript"/>
<title>
#{mostrarDadosForm.crime.tipoCrime.descricao} | #{mostrarDadosForm.crime.estado} - #{mostrarDadosForm.crime.cidade} - #{mostrarDadosForm.crime.descricao}
| WikiCrimes.org</title> <meta http-equiv="Cache-Control" content="no-store"/> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="0"/> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/> <meta name="verify-v1" content="4agWH6CfFZSFhfqytQWYq61DjxDYM7VHkVAH1yyW2Ts="/> <link rel="shortcut icon" href="./images/favicon.ico" type="image/x-icon"/> <link rel="stylesheet" type="text/css" href="./styles/wikicrimes.css" title="default"/> <script type="text/javascript" src="./scripts/anylink.js"> </script> <link rel="stylesheet" href="./styles/modal-message.css" type="text/css"/> <script type="text/javascript" src="./scripts/modal-message.js"/> <script type="text/javascript" src="./scripts/detectBrowser.js"/> <script type="text/javascript"> function createDetalheMarker(tipoCrime) { var iconeBase = "./images/baloes/"; var icones = { 0: { icon: iconeBase + "marcadorNeutro.png", size: new google.maps.Size(24, 34) }, 1: { icon: iconeBase + "novoMarcadorVermelha.png", size : new google.maps.Size(14, 24) }, 2: { icon: iconeBase + "novoMarcadorAzul.png", size : new google.maps.Size(14, 24) }, 3: { icon: iconeBase + "novoMarcadorAzul.png", size : new google.maps.Size(14, 24) }, 4: { icon: iconeBase + "novoMarcadorVermelha.png", size : new google.maps.Size(14, 24) }, 5: { icon: iconeBase + "novoMarcadorLaranja.png", size : new google.maps.Size(14, 24) }, 6: { icon: iconeBase + "novoMarcadorVerde.png", size: new google.maps.Size(14, 24) }, 7: { icon: "./images/delegacia.png", size: new google.maps.Size(23, 34) } } var marker = new google.maps.Marker({ position: new google.maps.LatLng(#{mostrarDadosForm.crime.latitude}, #{mostrarDadosForm.crime.longitude}), icon: icones[tipoCrime].icon, size: icones[tipoCrime].size, draggable: false }); return marker; } function loadDetalheMapa() { map = new google.maps.Map(document.getElementById("detalhemapa"), { center: new google.maps.LatLng(#{mostrarDadosForm.crime.latitude}, #{mostrarDadosForm.crime.longitude}), zoom: 15, mapTypeId: google.maps.MapTypeId.ROADMAP, panControl: false, streetViewControl: false, scrollwheel: false, draggable : false }); var marker = new createDetalheMarker(#{mostrarDadosForm.crime.tipoCrime.idTipoCrime}); marker.setMap(map); } </script>
</head> <body onload="loadDetalheMapa()"> <div style="width:989px; height:auto; margin-left:auto; margin-right:auto;position:relative"> <TABLE style="font-size: 12px; font-family: sans-serif;" margin="0" BORDER="0" cellpadding="1" cellspacing="1" width="100%"> <TR> <TD height="58px" valign="top" colspan="2" style="background: url(#{messages['imagem.topo']}) no-repeat left;">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="./scripts/modal2.js"/> <link rel="stylesheet" href="./styles/modal2.css" type="text/css"/> <!--<link rel="stylesheet" href="./styles/modal-message.css" type="text/css" />--> <!--<script type="text/javascript" src="./scripts/modal-message.js"></script>--> <link rel="alternate" type="application/rss+xml" title="#{messages['rss.titulo']}" href="#{request.contextPath}/rss"/> </head> <body>
<HtmlPanelGroup colspan="-2147483648" displayValueOnly="false" id="painelPrincipaLoginLogout" rendered="true" transient="false">
<h1 style="font-size: 10px; position: absolute; top: 35px; left: 3px; color: gray; font-family: sans-serif;">#{messages['wikicrimes.slogan']}</h1>
<table align="right" cellpadding="1" cellspacing="0" border="0"> <tr> <td width="40px"/> <td>
<HtmlOutputLink disabled="false" id="j_id10" onclick="mostrarPainelLogin('./login.html');" rendered="true" transient="false" value="#">
<HtmlOutputText escape="true" id="j_id11" rendered="true" transient="false" value="Login"/>
</HtmlOutputLink>
|</td> <td>
<HtmlOutputLink disabled="false" id="j_id13" onclick="openModal('./registrarUsuario.html', 600, 350,'Join WikiCrimes.org', this);return false;" rendered="true" transient="false" value="#">
<HtmlOutputText escape="true" id="j_id14" rendered="true" transient="false" value="Join"/>
</HtmlOutputLink>
|</td> <td>
<HtmlOutputLink disabled="false" id="j_id16" onclick="openModal('./ajudaEng.html', 650, 400,'Help', this);" rendered="true" transient="false" value="#">
<HtmlOutputText escape="true" id="j_id17" rendered="true" title="WikiCrimes.org Help" transient="false" value="Help"/>
</HtmlOutputLink>
</td> <td> <a href="#{request.contextPath}/rss" styleClass="estiloImagem">
<HtmlGraphicImage id="j_id19" ismap="false" rendered="true" style="border: 0;" transient="false" url="/images/feed-icon-14x14.png" value="/images/feed-icon-14x14.png"/>
</a> </td> </tr> </table>
<HtmlForm enctype="application/x-www-form-urlencoded" id="formReRenderRegistroCrimes" prependId="true" rendered="true" submitted="false" transient="false">
<HtmlAjaxCommandButton ajaxSingle="false" bypassUpdates="false" disabled="false" id="btRegistroCrimeSubmit" ignoreDupResponses="false" immediate="false" limitToList="false" rendered="true" requestDelay="-2147483648" size="-2147483648" style="display: none" timeout="-2147483648" transient="false"/>
</HtmlForm>
<HtmlForm enctype="application/x-www-form-urlencoded" id="formReRenderRegistroDenuncia" prependId="true" rendered="true" submitted="false" transient="false">
<HtmlAjaxCommandButton ajaxSingle="false" bypassUpdates="false" disabled="false" id="btRegistroDenunciaSubmit" ignoreDupResponses="false" immediate="false" limitToList="false" rendered="true" requestDelay="-2147483648" size="-2147483648" style="display: none" timeout="-2147483648" transient="false"/>
</HtmlForm>
<HtmlForm enctype="application/x-www-form-urlencoded" id="formDesabilitaTutor" prependId="true" rendered="true" submitted="false" transient="false">
<HtmlAjaxCommandButton action="#{filtroForm.desabilitaTutor}" actionExpression="#{filtroForm.desabilitaTutor}" ajaxSingle="false" bypassUpdates="false" disabled="false" id="btDesabilitaTutor" ignoreDupResponses="false" immediate="false" limitToList="false" rendered="true" requestDelay="-2147483648" size="-2147483648" style="display: none" timeout="-2147483648" transient="false"/>
</HtmlForm>
<HtmlForm enctype="application/x-www-form-urlencoded" id="formReRenderLogin" prependId="true" rendered="true" submitted="false" transient="false">
<HtmlAjaxCommandButton ajaxSingle="false" bypassUpdates="false" disabled="false" id="btLoginSubmit" ignoreDupResponses="false" immediate="false" limitToList="false" rendered="true" requestDelay="-2147483648" size="-2147483648" style="display: none" timeout="-2147483648" transient="false"/>
</HtmlForm>
<HtmlForm enctype="application/x-www-form-urlencoded" id="formDownloadMobile" prependId="true" rendered="true" submitted="false" transient="false">
<HtmlCommandButton action="#{usuarioForm.mostraPaginaInstrucoes}" actionExpression="#{usuarioForm.mostraPaginaInstrucoes}" disabled="false" id="btInstrucoesMobile" immediate="false" readonly="false" rendered="true" style="display: none" transient="false"/>
</HtmlForm>
<script> /* <![CDATA[ */ //div modal function loginCasoPrecise(tipo, msg){ var precisaLogin = #{usuario == null}; if(precisaLogin) mostrarPainelLogin('./login.html?mensagemLogin=' + msg + '&'+ 'tipoRegistro='+tipo); return precisaLogin; } function onLogout(){ //*********************** AREAS RISCO INICIO **************************** //pra esconder as areas de risco do usuario q fez logoff e //forcar de carregar areas novamente qd o proximo usuario q fizer login limparMinhasAreas(); //*********************** AREAS RISCO FIM **************************** } function usuarioEstaLogado(){ if(#{usuario != null}) return true; else return false; } function registrarArea1(){ if(#{usuario != null}){ selecionarComando(map, 'area'); //document.getElementById("divExplicaMarcarArea").style.visibility = "visible"; estaRegistrandoArea = true; startShape(); } else{ mostrarPainelLogin('./login.html?mensagemLogin=#{messages["usuario.informacao.area"]}&tipoRegistro=3'); } } function gerarEmbedded(){ if(#{usuario != null}){ openModal('./geradorEmbedded.html', 900, 510,'#{messages["mapaEmbedded.estado.mapa"]}'); }else{ mostrarPainelLogin('./login.html'); } } /* var comandoControleMao = new ComandoMao(map); var comandoControleMaoSelecionado = new ComandoMaoSelecionado(map); var comandoControleMarcadorDeArea = new ComandoMarcadorDeArea(map); var comandoControleMarcadorDeAreaSelecionado = new ComandoMarcadorDeAreaSelecionado(map); var comandoControleEmbed = new ComandoEmbed(map); var comandoControleEmbedSelecionado = new ComandoEmbedSelecionado(); var comandoControleFiltro = new ComandoFiltro(map); var comandoControleFiltroSelecionado = new ComandoFiltroSelecionado(map); var comandoControleKernel = new ComandoKernel(map); var comandoControleKernelSelecionado = new ComandoKernelSelecionado(map); */ var kernelEnabled = false; function selecionarComando(mapa, comando, off){ //alert('comando: ' + comando + ', off:' + off); //mapa.removeControl(comandoControleMao); //mapa.removeControl(comandoControleMaoSelecionado); //mapa.removeControl(comandoControleMarcadorDeArea); //mapa.removeControl(comandoControleMarcadorDeAreaSelecionado); //mapa.removeControl(comandoControleEmbed); //mapa.removeControl(comandoControleEmbedSelecionado); //mapa.removeControl(comandoControleFiltro); //mapa.removeControl(comandoControleFiltroSelecionado); //mapa.removeControl(comandoControleKernel); //mapa.removeControl(comandoControleKernelSelecionado); mapa.controls[google.maps.ControlPosition.TOP_LEFT].clear(); if(comando=='filtro'){ var controlsLeft = document.createElement("div"); var controlsRight = document.createElement("div"); controlsRight.style.marginLeft = "2px"; //mapa.addControl(comandoControleMarcadorDeArea); //mapa.addControl(comandoControleMao); //mapa.addControl(comandoControleKernel); //mapa.addControl(comandoControleFiltroSelecionado); var comandoMao = ComandoMao(mapa); var comandoFiltro = ComandoFiltroSelecionado(mapa); var comandoMarcadorArea = ComandoMarcadorDeArea(mapa); controlsLeft.appendChild(comandoFiltro); if(!kernelEnabled) { var kernel = ComandoKernel(mapa); } else { var kernelSel = ComandoKernelSelecionado(mapa); } if(#{usuario.perfil.nome == 'CERTIFICADOR'}||#{usuario.perfil.nome == 'ADMINISTRADOR'}){ if(#{usuario.entidadeCertificadora.idEntidadeCertificadora != 12}){ //mapa.addControl(comandoControleEmbed); } } mapa.controls[google.maps.ControlPosition.TOP_LEFT].push(controlsLeft); } if(comando=='kernel'){ var controlsLeft = document.createElement("div"); var controlsRight = document.createElement("div"); controlsRight.style.marginLeft = "2px"; var comandoMao = ComandoMao(mapa); var comandoFiltro = ComandoFiltro(mapa); var comandoMarcadorArea = ComandoMarcadorDeArea(mapa); if(off){ var kernel = ComandoKernel(mapa); }else{ var kernelSel = ComandoKernelSelecionado(mapa); } if(#{usuario.perfil.nome == 'CERTIFICADOR'}||#{usuario.perfil.nome == 'ADMINISTRADOR'}){ if(#{usuario.entidadeCertificadora.idEntidadeCertificadora != 12}){ //mapa.addControl(comandoControleEmbed); } } controlsLeft.appendChild(comandoFiltro); mapa.controls[google.maps.ControlPosition.TOP_LEFT].push(controlsLeft); } if(comando=='mao'){ var controlsLeft = document.createElement("div"); var controlsRight = document.createElement("div"); controlsRight.style.marginLeft = "2px"; var comandoMaoSelecionado = ComandoMaoSelecionado(mapa); var comandoFiltro = ComandoFiltro(mapa); var comandoMarcadorArea = ComandoMarcadorDeArea(mapa); controlsLeft.appendChild(comandoFiltro); if(!kernelEnabled) { var kernel = ComandoKernel(mapa); } else { var kernelSel = ComandoKernelSelecionado(mapa); } if(#{usuario.perfil.nome == 'CERTIFICADOR'}||#{usuario.perfil.nome == 'ADMINISTRADOR'}){ if(#{usuario.entidadeCertificadora.idEntidadeCertificadora != 12}){ //mapa.addControl(comandoControleEmbed); } } mapa.controls[google.maps.ControlPosition.TOP_LEFT].push(controlsLeft); } if(comando == 'area'){ document.getElementById("divTelaFiltro").style.visibility = "hidden"; mapa.addControl(comandoControleMarcadorDeAreaSelecionado); mapa.addControl(comandoControleMao); //mapa.addControl(comandoControleKernel); mapa.addControl(comandoControleFiltro); if(#{usuario.perfil.nome == 'CERTIFICADOR'}||#{usuario.perfil.nome == 'ADMINISTRADOR'}){ if(#{usuario.entidadeCertificadora.idEntidadeCertificadora != 12}){ //mapa.addControl(comandoControleEmbed); } } } if(comando == 'nenhum'){ document.getElementById("divTelaKML").style.visibility = "hidden"; document.getElementById("divTelaFiltro").style.visibility = "hidden"; var controlsLeft = document.createElement("div"); var controlsRight = document.createElement("div"); controlsRight.style.marginLeft = "2px"; var comandoMao = ComandoMao(mapa); var comandoFiltro = ComandoFiltro(mapa); var comandoMarcadorArea = ComandoMarcadorDeArea(mapa); if(off){ var kernel = ComandoKernel(mapa); }else{ var kernelSel = ComandoKernelSelecionado(mapa); } if(#{usuario.perfil.nome == 'CERTIFICADOR'}||#{usuario.perfil.nome == 'ADMINISTRADOR'}){ if(#{usuario.entidadeCertificadora.idEntidadeCertificadora != 12}){ //mapa.addControl(comandoControleEmbed); } } controlsLeft.appendChild(comandoFiltro); mapa.controls[google.maps.ControlPosition.TOP_LEFT].push(controlsLeft); } if(comando == 'embed'){ document.getElementById("divTelaKML").style.visibility = "hidden"; document.getElementById("divTelaFiltro").style.visibility = "hidden"; var controlsLeft = document.createElement("div"); var controlsRight = document.createElement("div"); controlsRight.style.marginLeft = "2px"; var comandoMao = ComandoMao(mapa); var comandoFiltro = ComandoFiltro(mapa); var comandoMarcadorArea = ComandoMarcadorDeArea(mapa); if(off){ var kernel = ComandoKernel(mapa); }else{ var kernelSel = ComandoKernelSelecionado(mapa); } if(#{usuario.perfil.nome == 'CERTIFICADOR'}||#{usuario.perfil.nome == 'ADMINISTRADOR'}){ if(#{usuario.entidadeCertificadora.idEntidadeCertificadora != 12}){ //mapa.addControl(comandoControleEmbed); } } controlsLeft.appendChild(comandoFiltro); mapa.controls[google.maps.ControlPosition.TOP_LEFT].push(controlsLeft); } } try{ selecionarComando(map, 'mao'); }catch(e){}; /* ]]> */ </script>
</HtmlPanelGroup>
</body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<HtmlForm enctype="application/x-www-form-urlencoded" id="j_id25" prependId="true" rendered="true" submitted="false" transient="false">
<table border="0" cellspacing="0" cellpadding="0" style="position: absolute; right: 0; margin-top: 30px;"> <tr> <td> <div style="margin-right: 2px; float: left">
<HtmlCommandLink action="#{localeForm.MudaLocale}" actionExpression="#{localeForm.MudaLocale}" disabled="false" id="j_id27" immediate="true" rendered="true" transient="false">
<UIParameter id="j_id28" name="languageCode" rendered="true" transient="false" value="pt"/>
<HtmlGraphicImage id="j_id29" ismap="false" rendered="true" transient="false" url="/images/flags/Brazil.gif" value="/images/flags/Brazil.gif"/>
</HtmlCommandLink>
</div> <div style="margin-right: 2px;margin-left:2px; float: left">
<HtmlCommandLink action="#{localeForm.MudaLocale}" actionExpression="#{localeForm.MudaLocale}" disabled="false" id="j_id31" immediate="true" rendered="true" transient="false">
<UIParameter id="j_id32" name="languageCode" rendered="true" transient="false" value="en"/>
<HtmlGraphicImage id="j_id33" ismap="false" rendered="true" transient="false" url="/images/flags/USA.png" value="/images/flags/USA.png"/>
</HtmlCommandLink>
</div> <div style="margin-right: 2px;margin-left:2px; float: left">
<HtmlCommandLink action="#{localeForm.MudaLocale}" actionExpression="#{localeForm.MudaLocale}" disabled="false" id="j_id35" immediate="true" rendered="true" transient="false">
<UIParameter id="j_id36" name="languageCode" rendered="true" transient="false" value="fr"/>
<HtmlGraphicImage id="j_id37" ismap="false" rendered="true" transient="false" url="/images/flags/French.PNG" value="/images/flags/French.PNG"/>
</HtmlCommandLink>
</div> <div style="margin-right: 2px;margin-left:2px; float: left">
<HtmlCommandLink action="#{localeForm.MudaLocale}" actionExpression="#{localeForm.MudaLocale}" disabled="false" id="j_id39" immediate="true" rendered="true" transient="false">
<UIParameter id="j_id40" name="languageCode" rendered="true" transient="false" value="es"/>
<HtmlGraphicImage id="j_id41" ismap="false" rendered="true" transient="false" url="/images/flags/Spain.gif" value="/images/flags/Spain.gif"/>
</HtmlCommandLink>
</div> <div style="margin-left:2px; float: left">
<HtmlCommandLink action="#{localeForm.MudaLocale}" actionExpression="#{localeForm.MudaLocale}" disabled="false" id="j_id43" immediate="true" rendered="true" transient="false">
<UIParameter id="j_id44" name="languageCode" rendered="true" transient="false" value="it"/>
<HtmlGraphicImage id="j_id45" ismap="false" rendered="true" transient="false" url="/images/flags/Italy.png" value="/images/flags/Italy.png"/>
</HtmlCommandLink>
</div> </td> </tr> </table>
</HtmlForm>
</html>
</TD> </TR> <TR> <TD colspan="2">
<hr/><br clear="both"/>
<HtmlPanel id="j_id50" rendered="true" transient="false">
<HtmlPanelGrid border="-2147483648" columns="1" displayValueOnly="false" id="j_id51" rendered="true" transient="false">
<HtmlPanelGroup colspan="-2147483648" displayValueOnly="false" id="j_id52" rendered="true" transient="false">
<HtmlOutputLink disabled="false" id="j_id53" rendered="true" transient="false" value="/">
<HtmlOutputText escape="true" id="j_id54" rendered="true" transient="false" value="Main Page"/>
</HtmlOutputLink>
<HtmlOutputText escape="true" id="j_id55" rendered="true" transient="false" value=" >> Crime details"/>
</HtmlPanelGroup>
</HtmlPanelGrid>
</HtmlPanel>
<div id="detalhecrime">
</AjaxViewRoot>

+ Scoped Variables

Request Parameters
NameValue
idCrimeFD2CB2A6DA15BFB68BDB85DE795FD85D
Request Attributes
NameValue
ajaxContextorg.ajax4jsf.context.AjaxContextImpl@721e7e7f
messagescom.sun.facelets.tag.jsf.core.LoadBundleHandler$ResourceBundleMap@3002fe61
requestURLhttp://www.wikicrimes.org/verCrime.html
Session Attributes
NameValue
None
Application Attributes
NameValue
a4jSkin{shadowBackgroundColor=#000000, tableBorderColor=#C0C0C0, buttonSizeFont=11, selectControlColor=#E79A00, headerWeightFont=bold, tabSizeFont=11, generalTextColor=#000000, headerTextColor=#000000, buttonFamilyFont=Arial, Verdana, sans-serif, calendarSpecBackgroundColor=#E4F5E2, calendarWeekBackgroundColor=#F5F5F5, controlBackgroundColor=#ffffff, tableFooterBackgroundColor=#cccccc, calendarCurrentBackgroundColor=#FF7800, calendarHolidaysTextColor=#FF7800, tabDisabledTextColor=#8DB7F3, tipBackgroundColor=#FAE6B0 , shadowOpacity=1, generalSizeFont=11px, headerFamilyFont=Arial, Verdana, sans-serif, tableSubfooterBackgroundColor=#f1f1f1, tabFamilyFont=Arial, Verdana, sans-serif, tipBorderColor=#E5973E , tabBackgroundColor=#C6DEFF, calendarSpecTextColor=#000000, generalBackgroundColor=#FFFFFF, headerSizeFont=11px, calendarCurrentTextColor=#FFEBDA, generalLinkColor=#0078D0, panelBorderColor=#BED6F8, calendarHolidaysBackgroundColor=#FFEBDA, tableBorderWidth=1px, visitedLinkColor=#0090FF, headerBackgroundColor=#BED6F8, additionalBackgroundColor=#ECF4FE, hoverLinkColor=#0090FF, headerGradientColor=#F2F7FF, tableBackgroundColor=#FFFFFF, subBorderColor=#ffffff, trimColor=#D6E6FB, generalFamilyFont=Arial, Verdana, sans-serif , controlTextColor=#000000}
Apr 26, 2017 8:18:31 PM - Generated by Facelets