<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Últimas mensagens do tópico " .resolverVariable"]]></title>
		<link>http://www.guj.com.br/posts/list/6.java</link>
		<description><![CDATA[Últimas mensagens enviadas no tópico " .resolverVariable"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title> .resolverVariable</title>
				<description><![CDATA[ Pessoal estou tentando fazer uma classe Pessoa entrar em contato com a classe Pagamento de MEnsalidades, na hora que eu rodo da este erro: no codigo abaixo ,,<br /> <br /> alguém tem ideia o que e isso ?<br /> <br /> [code]<br /> Created dir: /home/junior/Menino/nbbuild/web/WEB-INF/classes<br /> Copying 145 files to /home/junior/Menino/nbbuild/web<br /> library-inclusion-in-archive:<br /> library-inclusion-in-manifest:<br /> Created dir: /home/junior/Menino/nbbuild/empty<br /> Compiling 16 source files to /home/junior/Menino/nbbuild/web/WEB-INF/classes<br /> /home/junior/Menino/src/br/gov/nutec/mb/MensalidadeMB.java:58: cannot find symbol<br /> symbol  : method resolverVariable(javax.faces.context.FacesContext,java.lang.String)<br /> location: class javax.faces.el.VariableResolver<br />                     .resolverVariable<br /> Note: /home/junior/Menino/src/br/gov/nutec/mb/MensalidadeMB.java uses or overrides a deprecated API.<br /> Note: Recompile with -Xlint:deprecation for details.<br /> 1 error<br /> /home/junior/Menino/nbproject/build-impl.xml:412: The following error occurred while executing this line:<br /> /home/junior/Menino/nbproject/build-impl.xml:231: Compile failed; see the compiler error output for details.<br /> FALHA NA CONSTRUÇÃO (tempo total: 1 segundo)<br /> [/code]<br /> <br /> [code]<br /> <br />         private PessoaMB pegaPessoaMB() {<br />         FacesContext facesContext = FacesContext.getCurrentInstance();<br />         PessoaMB mb = (PessoaMB) facesContext.getApplication()<br />                 .getVariableResolver()<br />                     .resolverVariable<br />                         (facesContext,"PessoaMB");<br /> <br />            return mb;<br /> }<br /> <br /> <br />     public List&lt;SelectItem&gt; GetPessoaParaComboBox(){<br />                 List&lt;SelectItem&gt; lista = new ArrayList&lt;SelectItem&gt;();<br />                 PessoaMB mb = pegaPessoaMB();<br />                 for (Pessoa p: mb.getPessoas()){<br />                 boolean add = lista.add(new SelectItem(p.getId().toString(), p.getNome()));<br /> }<br /> return lista;<br /> }<br /> [/code]]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200645/1010857/-resolvervariable
</guid>
				<link>http://www.guj.com.br/prepost/200645/1010857/-resolvervariable
</link>
				<pubDate><![CDATA[Thu, 11 Mar 2010 15:34:01]]> GMT</pubDate>
				<author><![CDATA[ juniorsatanas]]></author>
			</item>
			<item>
				<title>Re: .resolverVariable</title>
				<description><![CDATA[ Resolvi assim pessoal:<br /> <br /> [code]<br />  // select para cargoHandler<br />     private PessoaMB pegaPessoaMB() {<br />         FacesContext facesContext = FacesContext.getCurrentInstance();<br />         ELContext elContext = facesContext.getELContext();<br />         ELResolver resolver = facesContext.getApplication().getELResolver();<br />         Object c = resolver.getValue(elContext, null, "pessoaMB");<br /> <br />         return (PessoaMB) c;<br />     }<br /> <br /> <br />     public List&lt;SelectItem&gt; GetPessoaParaComboBox(){<br />                 List&lt;SelectItem&gt; lista = new ArrayList&lt;SelectItem&gt;();<br />                 PessoaMB mb = pegaPessoaMB();<br />                 for (Pessoa p: mb.getPessoas()){<br />                 boolean add = lista.add(new SelectItem(p.getId().toString(), p.getNome()));<br /> }<br /> return lista;<br /> }<br /> [/code]<br /> <br /> <br /> <br /> Obrigado pelo email Fabio !]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200645/1010864/re-resolvervariable
</guid>
				<link>http://www.guj.com.br/prepost/200645/1010864/re-resolvervariable
</link>
				<pubDate><![CDATA[Thu, 11 Mar 2010 15:40:23]]> GMT</pubDate>
				<author><![CDATA[ juniorsatanas]]></author>
			</item>
	</channel>
</rss>
