DevMedia - asp.net, Java, Delphi, SQL e web Design, tudo em um só lugar!
Bem vindo a DevMedia!
LOGIN:     SENHA:
 
 

Fórum DevMedia


Autor
Mensagem
JEAN CARLOS
 

País: Brasil
Estado: PE
Cidade: PETOLINA
Mensagens: 2
 Postado em: 27/1/2012 12:13:34 AM

Tenho uma aplicação JSF que acessa um @ManagedBean @ApplicationScoped, e me retorna o seguinte erro:


Citação:

javax.el.ELException: /jsp/voo.xhtml @24,138 value=#{VooMB.entity.voo}: Cannot convert aplication of type class java.lang.String to interface java.util.Map
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
at javax.faces.component.UIOutput.getValue(UIOutput.java:169)


Alguém sabe me dá uma idéia do que pode ser/ Quando coloco como session, funciona blz!

#Código

<?xml version=1.0 encoding=UTF-8 ?>
<!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
xmlns:ui=http://java.sun.com/jsf/facelets
xmlns:h=http://java.sun.com/jsf/html
xmlns:f=http://java.sun.com/jsf/core>

<body>

<ui:composition template=./../../templates/geral.xhtml>
<ui:define name=block>
<h:form id=formulario>
<div class=block_head>
<div class=bheadl></div>
<div class=bheadr></div>
<h2><h:outputText value=#{msgs.cadastrar_titulo}/></h2>
</div> <!-- .block_head ends -->

<div class=block_content>
<p>
<label><h:outputText value=#{msgs.cadastrar_voo}/></label><br />
<h:selectOneListbox
value=#{VooMB.entity.voo} id=voo size=1
converter=#{vooConverter} required=true requiredMessage=#{msgs.cadastrar_voo_obrigatorio}>

<f:selectItem itemLabel=#{msgs.item_select} itemValue= />
<f:selectItems value=#{VooMB.voos}
var=voos itemLabel=#{voos.id} itemValue=#{voos}/>
</h:selectOneListbox>
<span class=note error><h:message for=voo/></span>
</p>
<hr/>
<p>
<h:commandButton styleClass=submit small id=botaoCadastrar action=#{VooMB.inicio()} value=#{msgs.cadastrar_botao_start} ></h:commandButton>
</p>
<div ><p></p></div>
<div class=message success id=divSucesso style=display:none;><p><h:message for=formulario /></p></div>
<div class=message errormsg id=divErro style=display:none;><p><h:messages /></p></div>

</div> <!-- .block_content ends -->
<div class=bendl></div>
<div class=bendr></div>
</h:form>
</ui:define>
</ui:composition>

</body>
</html>

DYEGO SOUZA DO CARMO
 
 


País: Brasil
Estado: PR
Cidade: xxxxx
Mensagens: 1836
 Postado em: 1/2/2012 1:41:04 PM
Cole a classe java tambem , assim fica bem dificil responder.

 
web-03
DevMedia  |  Anuncie  |  Fale conosco
Hospedagem web por Porta 80 Web Hosting
2012 - Todos os Direitos Reservados a web-03