<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>“Os Lábios da Sabedoria permanecem fechados, exceto para o ouvido capaz de compreender.”</title>
	<atom:link href="http://frankley.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://frankley.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 28 Jun 2011 03:03:52 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='frankley.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>“Os Lábios da Sabedoria permanecem fechados, exceto para o ouvido capaz de compreender.”</title>
		<link>http://frankley.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://frankley.wordpress.com/osd.xml" title="“Os Lábios da Sabedoria permanecem fechados, exceto para o ouvido capaz de compreender.”" />
	<atom:link rel='hub' href='http://frankley.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Exemplo descomplicado JSF2 + EJB3 + PRIMEFACES</title>
		<link>http://frankley.wordpress.com/2011/06/22/exemplo-descomplicado-jsf2-ejb3-primefaces/</link>
		<comments>http://frankley.wordpress.com/2011/06/22/exemplo-descomplicado-jsf2-ejb3-primefaces/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 12:00:10 +0000</pubDate>
		<dc:creator>frankley</dc:creator>
				<category><![CDATA[JSF2]]></category>

		<guid isPermaLink="false">http://frankley.wordpress.com/?p=16</guid>
		<description><![CDATA[Neste exemplo podemos encontrar: - Um sistema CRUDE completo JSF2; - Persistencia com EJB3; - Injeção de dependencia via anotação &#8230;<p><a href="http://frankley.wordpress.com/2011/06/22/exemplo-descomplicado-jsf2-ejb3-primefaces/">Continuar lendo &#187; </a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankley.wordpress.com&amp;blog=3666644&amp;post=16&amp;subd=frankley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Neste exemplo podemos encontrar:<br />
- Um sistema CRUDE completo JSF2;<br />
- Persistencia com EJB3;<br />
- Injeção de dependencia via anotação @EJB;<br />
- @ViewScope com @PostConstruct;<br />
- Validação e messagens JSF;<br />
- Utilização da tag &lt;f:ajax /&gt;;<br />
- Utilização de skins diferenciados via parametro de contexto &#8220;primefaces.THEME&#8221; no web.xml;<br />
- Utilização de templates via facelets;</p>
<p>Primeiro você deve ter um ambiente com JDK6, JBOSS 6.0, Eclipse J2EE WTP + JBOSS Tools Plugin &#8211; Breve farei um post ensinando como configurar este ambiente.</p>
<p>Baixo o exemplo completo aqui: <a href="http://www.4shared.com/file/3j1KJOc_/ejbjsf2.html">ejbjsf2.war</a></p>
<p>Use a opcao do eclipse Import-&gt;WAR file &#8230;<br />
<a href="http://frankley.files.wordpress.com/2011/06/import.png"><img class="alignnone size-medium wp-image-17" title="import" src="http://frankley.files.wordpress.com/2011/06/import.png?w=300&#038;h=237" alt="" width="300" height="237" /></a><a href="http://frankley.files.wordpress.com/2011/06/import2.png"><img class="alignnone size-medium wp-image-18" title="import2" src="http://frankley.files.wordpress.com/2011/06/import2.png?w=300&#038;h=208" alt="" width="300" height="208" /></a></p>
<p>Depois de clikar finish vc vai ter a aplicação pronta para analise.</p>
<p>Bom, vamos analizar alguns passos que foram utilizados para criar a aplicação:</p>
<p>1 &#8211; A aplicação foi criada como um &#8220;Dynamic Web Projec&#8221;, foi selecionado JBoss 6 comO Targe runtime, servlet 3.0, configuração custom para inserir o JSF2, foi marcada a opção para gerar o web.xml e escolhido a extensão *.xhtml para o JSF;<br />
<a href="http://frankley.files.wordpress.com/2011/06/dinamicweb.png"><img class="alignnone size-medium wp-image-19" title="dinamicweb" src="http://frankley.files.wordpress.com/2011/06/dinamicweb.png?w=300&#038;h=174" alt="" width="300" height="174" /></a><a href="http://frankley.files.wordpress.com/2011/06/dinamicweb2.png"><img class="alignnone size-medium wp-image-23" title="dinamicweb2" src="http://frankley.files.wordpress.com/2011/06/dinamicweb2.png?w=240&#038;h=300" alt="" width="240" height="300" /></a><a href="http://frankley.files.wordpress.com/2011/06/dinamicweb3.png"><img class="alignnone size-medium wp-image-20" title="dinamicweb3" src="http://frankley.files.wordpress.com/2011/06/dinamicweb3.png?w=300&#038;h=236" alt="" width="300" height="236" /></a><a href="http://frankley.files.wordpress.com/2011/06/dinamicweb4.png"><img class="alignnone size-medium wp-image-24" title="dinamicweb4" src="http://frankley.files.wordpress.com/2011/06/dinamicweb4.png?w=239&#038;h=300" alt="" width="239" height="300" /></a><a href="http://frankley.files.wordpress.com/2011/06/dinamicweb5.png"><img class="alignnone size-medium wp-image-21" title="dinamicweb5" src="http://frankley.files.wordpress.com/2011/06/dinamicweb5.png?w=239&#038;h=300" alt="" width="239" height="300" /></a></p>
<p>2 &#8211; Depois é montada a aplicação na seguinte estrutura:<br />
<a href="http://frankley.files.wordpress.com/2011/06/estrutura.png"><img class="alignnone size-medium wp-image-26" title="estrutura" src="http://frankley.files.wordpress.com/2011/06/estrutura.png?w=115&#038;h=300" alt="" width="115" height="300" /></a></p>
<p>2.1 &#8211; Dentro de src foi criado a pasta META-INF e um arquivo persistence.xml. Este é o arquivo responsavel pela conexão de bando de dados do JPA utilizado pelos EJB. No caso, inicialmente eu fiz uma configuração utilizando um data source Oracle chamado FrankleyDS que configurei dentro da pasta do JBOSS, mas comentei e fiz uma configuração utilizando o DefaultDS que já vem preconfigurado para melhor portabilidade do exemplo. Feito isso tá pronto a conexão com o banco;<br />
<a href="http://frankley.files.wordpress.com/2011/06/persistence.png"><img class="alignnone size-medium wp-image-27" title="persistence" src="http://frankley.files.wordpress.com/2011/06/persistence.png?w=300&#038;h=127" alt="" width="300" height="127" /></a></p>
<p>2.2 &#8211; Foi criado a classe &#8220;Contato.java&#8221; dentro do pacote &#8220;modelo&#8221;:<br />
-implementa Serializable;<br />
- tem a anotação <strong>@Entity</strong> para indicar que é uma entidade de persistencia;<br />
- tem a anotação <strong>@SequenceGenerator(name = &#8220;SEQ_CONTATO&#8221;, sequenceName = &#8220;SEQ_CONTATO&#8221;,allocationSize=0,initialValue=1)</strong> é para funcionamento em conjunto com oracle (Não é obrigatoria para o exemplo, mas não faz mau deixar);<br />
- temos a anotação <strong>@Id</strong>;<br />
- a anotação <strong>@GeneratedValue( generator = &#8220;SEQ_CONTATO&#8221; , strategy = GenerationType.SEQUENCE)</strong> tambem é para funcionamento em conjunto com oracle (basta por <strong>@GeneratedValue</strong> para funcionar o exemplo, tambem não faz mau deixar como está)<br />
<strong>Feito isto já temos o nosso Mapeamento Objeto Relacional;</strong><br />
<a href="http://frankley.files.wordpress.com/2011/06/contato.png"><img class="alignnone size-medium wp-image-29" title="contato" src="http://frankley.files.wordpress.com/2011/06/contato.png?w=300&#038;h=114" alt="" width="300" height="114" /></a></p>
<p>2.3 &#8211; Foi criado a Interface IContatoBO no pacote &#8220;negocio&#8221; que serve para especificar nosso EJB;<br />
<a href="http://frankley.files.wordpress.com/2011/06/icontatobo.png"><img class="alignnone size-medium wp-image-32" title="icontatobo" src="http://frankley.files.wordpress.com/2011/06/icontatobo.png?w=300&#038;h=187" alt="" width="300" height="187" /></a></p>
<p>2.4 &#8211; Foi criado a Classe ContatoBO que é nosso EJB:<br />
- vemos a anotação <strong>@Stateless</strong>, quer dizer que vai ser um bean que não guarda estado e por isso consome menos memoria;<br />
- vemos a anotação <strong>@Local</strong>, quer dizer que a comunicação com o EJB vai ser em modo local, os beans não serão serializados e nem vai ser possivel acessar remotamente este EJB;<br />
- a anotação <strong>@PersistenceContext</strong> é que faz nosso trabalho sujo. Ela indica que vai ser injetado nossa persistence-unit &#8220;sample&#8221;, que configuramos no nosso persistence.xml, no objeto EntityManager <strong>em</strong>. Isso vai acontecer porque nois temos apenas uma persistence-unit configurada no nosso projeto, caso tenhamos mais de uma somos obrigados a colocar por exemplo <strong>@PersistenceContext(name=&#8221;sample&#8221;)</strong>;<br />
Feito isto temos nosso EJB pronto para uso;<br />
<a href="http://frankley.files.wordpress.com/2011/06/contatobo.png"><img class="alignnone size-medium wp-image-33" title="contatobo" src="http://frankley.files.wordpress.com/2011/06/contatobo.png?w=266&#038;h=300" alt="" width="266" height="300" /></a></p>
<p>2.5 &#8211; Foi criado a classe ContatoBean que é o famoso Bean JSF:<br />
- No JSF2, eu não preciso mais configurar faces-config.xml basta por a anatação <strong>@ManagedBean</strong> para o bean ficar disponivel para o xhtml;<br />
- E colocar a anotation para representar o escopo do bean <strong>@ViewScoped</strong>, @RequestScoped, @SessionScoped ou @ApplicationScoped. No nosso caso colocamos @ViewScoped para indicar que o bean vai ter escopo de Visão (Novo no JSF2 &#8211; Enquanto não trocar de pagina o bean sera mantido na memoria, quase igual a @SessionScoped);<br />
(Ps.: Atentar para na hora de importar essas anotações utilizar o pacote <strong>javax.faces.bean.*</strong> );<br />
- Temos a anotação @EJB, que é o cora que vai dizer pro JBoss que o nosso objeto IContatoBO contatoBO é um EJB e vai injeta-lo no noss bean jsf. Porem esta injecão ocorre um pouco depois de nosso objeto ser criado na memoria e como estamos utilizando o <strong>view scope</strong>, não podemos colocar a linha <strong>listaContato = contatoBO.listar();</strong> no construtor do Bean JSF. Pois vai dar bilha e por isso existe a anotação @PostConstruct que deve ser colocada em um metodo qualquer sem retorno, exemplo <strong>public void construct()</strong> &#8211; Já tá bem esplicadinho no comentario do codigo.<br />
- Tambem vemos que as actions não precisam ter retorno String, podem ser void;<br />
<strong>Pronto temos nosso Bean JSF pronto.</strong><br />
<a href="http://frankley.files.wordpress.com/2011/06/contatobean.png"><img class="alignnone size-medium wp-image-36" title="contatoBean" src="http://frankley.files.wordpress.com/2011/06/contatobean.png?w=300&#038;h=254" alt="" width="300" height="254" /></a></p>
<p>2.6 &#8211; Não precisamos de muita configuração, já que o JBoss 6.0 já traz o mojara 2.0 configurado de cara, basta adicionar a biblioteca do primefaces (primefaces-2.2.1.jar) e os temas do primefaces que utilizei para teste bluesky (bluesky-1.0.1.jar) e hot-sneaks (hot-sneaks-1.0.1.jar) e jogar tudo detro do WEB-INF/lib da aplicação.<br />
A configuração do web.xml ficou bem simples, no caso as bobagem de sempre do JSF e nossa escolha do tema <strong>&#8220;bluesky&#8221;</strong> para o primefaces ficar com a cara do RichFaces. Caso queira pode por o &#8220;hot-sneaks&#8221; no lugar já que já tem o &#8220;.jar&#8221; dele dentro da lib. E a faces-config.xhtml foi criado só pra desencargo de consciencia.<br />
<a href="http://frankley.files.wordpress.com/2011/06/webxml.png"><img class="alignnone size-medium wp-image-38" title="webxml" src="http://frankley.files.wordpress.com/2011/06/webxml.png?w=300&#038;h=172" alt="" width="300" height="172" /></a></p>
<p>2.7 &#8211; foi criado uma pasta templates com os .xhtml: template.xhtml, header.xhtml e footer.xhtml que são os templates de facelet para nossa aplicação.<br />
<a href="http://frankley.files.wordpress.com/2011/06/templates.png"><img class="alignnone size-medium wp-image-39" title="templates" src="http://frankley.files.wordpress.com/2011/06/templates.png?w=300&#038;h=179" alt="" width="300" height="179" /></a></p>
<p>2.7 &#8211; Foi criado uma index.jsp, apenas para redirecionar para contato.xhtml, não sei pq carga dágua esse trem não funfou de forma direta se eu boto um index.xhtml.<br />
<a href="http://frankley.files.wordpress.com/2011/06/index.png"><img class="alignnone size-medium wp-image-40" title="index" src="http://frankley.files.wordpress.com/2011/06/index.png?w=300&#038;h=96" alt="" width="300" height="96" /></a></p>
<p>2.8 &#8211; E foi criado o contato.xhtml utilizando primefaces, primefaces não precisa de configuração no JSF2.<br />
achei interessante que não foi preciso utilizar mais o a4j, em vez diso utilizei o &lt;f:ajax &gt; do JSF2<br />
o resto foi mais pra enfeitar, como as mensagens, validação essas balelas todas.<br />
<a href="http://frankley.files.wordpress.com/2011/06/webxml1.png"><img class="alignnone size-medium wp-image-41" title="webxml" src="http://frankley.files.wordpress.com/2011/06/webxml1.png?w=300&#038;h=172" alt="" width="300" height="172" /></a></p>
<p>E Finalmente a Aplicação rodando, ficou biita pra caramba &#8211; meninim de papai &#8230;<br />
<a href="http://frankley.files.wordpress.com/2011/06/contatofunfando.png"><img class="alignnone size-full wp-image-42" title="contatofunfando" src="http://frankley.files.wordpress.com/2011/06/contatofunfando.png?w=529" alt=""   /></a></p>
<p>Tentei me ater a explicar mais a parte de background que foi o que mudou + no JSF2.<br />
Bom, espero que este exemplo ajude você que esta lendo este post.</p>
<p>Vai dando uma pesquisada ae,<br />
e espera o proximo post, que é como montar o ambiente.<br />
Sei que devia vir primeiro mais enfim &#8211; Jorge Lucas, lançou o Star War 4,5 e 6 antes do 1,2 e 3.<br />
Vlw, tou é com sono &#8230;<br />
 <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankley.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankley.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankley.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankley.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankley.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankley.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankley.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankley.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankley.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankley.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankley.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankley.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankley.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankley.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankley.wordpress.com&amp;blog=3666644&amp;post=16&amp;subd=frankley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankley.wordpress.com/2011/06/22/exemplo-descomplicado-jsf2-ejb3-primefaces/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/790d9b56dcf95726e826012dc672418f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankley</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/import.png?w=300" medium="image">
			<media:title type="html">import</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/import2.png?w=300" medium="image">
			<media:title type="html">import2</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/dinamicweb.png?w=300" medium="image">
			<media:title type="html">dinamicweb</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/dinamicweb2.png?w=240" medium="image">
			<media:title type="html">dinamicweb2</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/dinamicweb3.png?w=300" medium="image">
			<media:title type="html">dinamicweb3</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/dinamicweb4.png?w=239" medium="image">
			<media:title type="html">dinamicweb4</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/dinamicweb5.png?w=239" medium="image">
			<media:title type="html">dinamicweb5</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/estrutura.png?w=115" medium="image">
			<media:title type="html">estrutura</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/persistence.png?w=300" medium="image">
			<media:title type="html">persistence</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/contato.png?w=300" medium="image">
			<media:title type="html">contato</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/icontatobo.png?w=300" medium="image">
			<media:title type="html">icontatobo</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/contatobo.png?w=266" medium="image">
			<media:title type="html">contatobo</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/contatobean.png?w=300" medium="image">
			<media:title type="html">contatoBean</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/webxml.png?w=300" medium="image">
			<media:title type="html">webxml</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/templates.png?w=300" medium="image">
			<media:title type="html">templates</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/index.png?w=300" medium="image">
			<media:title type="html">index</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/webxml1.png?w=300" medium="image">
			<media:title type="html">webxml</media:title>
		</media:content>

		<media:content url="http://frankley.files.wordpress.com/2011/06/contatofunfando.png" medium="image">
			<media:title type="html">contatofunfando</media:title>
		</media:content>
	</item>
		<item>
		<title>O que você pode fazer com CSS?</title>
		<link>http://frankley.wordpress.com/2008/06/20/o-que-voce-pode-fazer-com-css/</link>
		<comments>http://frankley.wordpress.com/2008/06/20/o-que-voce-pode-fazer-com-css/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 05:35:50 +0000</pubDate>
		<dc:creator>frankley</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://frankley.wordpress.com/?p=5</guid>
		<description><![CDATA[Estou começando a me aventurar no mundo do design, inspirado por um amigo meu que tem um blog muito bom &#8230;<p><a href="http://frankley.wordpress.com/2008/06/20/o-que-voce-pode-fazer-com-css/">Continuar lendo &#187; </a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankley.wordpress.com&amp;blog=3666644&amp;post=5&amp;subd=frankley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Estou começando a me aventurar no mundo do design, inspirado por um amigo meu que tem um blog muito bom <a href="http://www.jf.eti.br">http://www.jf.eti.br</a>, me deparei com este site que &#8220;mostra como é possivel fazer um verdadeiro camaleão usando CSS&#8221; &#8211;&gt; <a href="http://www.csszengarden.com/">http://www.csszengarden.com/</a></p>
<p>Neste site você escolhe uma lista de estilos e o site, aparentemente, muda totalmente. Mas na verdade só o que muda é o CSS. Confira! Vôce pode até postar seu próprio estilo.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/frankley.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/frankley.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankley.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankley.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankley.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankley.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankley.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankley.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankley.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankley.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankley.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankley.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankley.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankley.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankley.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankley.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankley.wordpress.com&amp;blog=3666644&amp;post=5&amp;subd=frankley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankley.wordpress.com/2008/06/20/o-que-voce-pode-fazer-com-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/790d9b56dcf95726e826012dc672418f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankley</media:title>
		</media:content>
	</item>
		<item>
		<title>Mudar de UTF8 para ISO-8859-1 no Ubuntu</title>
		<link>http://frankley.wordpress.com/2008/06/04/mudar-de-utf8-para-iso-8859-1-no-ubuntu/</link>
		<comments>http://frankley.wordpress.com/2008/06/04/mudar-de-utf8-para-iso-8859-1-no-ubuntu/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 15:04:16 +0000</pubDate>
		<dc:creator>frankley</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://frankley.wordpress.com/?p=4</guid>
		<description><![CDATA[Para quem escolheu a linguagem Portugues Brasil faça como root: echo pt_BR.ISO-8859-1 ISO-8859-1 &#62; /var/lib/locales/supported.d/local echo LANG="pt_BR.ISO-8859-1" &#62; /etc/default/locale echo &#8230;<p><a href="http://frankley.wordpress.com/2008/06/04/mudar-de-utf8-para-iso-8859-1-no-ubuntu/">Continuar lendo &#187; </a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankley.wordpress.com&amp;blog=3666644&amp;post=4&amp;subd=frankley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Para quem escolheu a linguagem Portugues Brasil faça como root:</strong><br />
<code><br />
echo pt_BR.ISO-8859-1 ISO-8859-1 &gt; /var/lib/locales/supported.d/local<br />
echo LANG="pt_BR.ISO-8859-1" &gt; /etc/default/locale<br />
echo LANG="pt_BR.ISO-8859-1" &gt;&gt; /etc/environment<br />
locale-gen -purge<br />
dpkg-reconfigure locales<br />
</code><br />
<strong>Para quem escolheu a linguagem Inglês faça como root:</strong><br />
<code><br />
echo en_US.ISO-8859-1 ISO-8859-1 &gt; /var/lib/locales/supported.d/local<br />
echo LANG="en_US.ISO-8859-1" &gt; /etc/default/locale<br />
echo LANG="en_US.ISO-8859-1" &gt;&gt; /etc/environment<br />
locale-gen -purge<br />
dpkg-reconfigure locales<br />
</code><br />
<strong>no debian bastar rodar como root:</strong><br />
<code><br />
apt-get install locales<br />
dpkg-reconfigure locales<br />
</code></p>
<p><b>marcar pt_BR.ISO-8859-1 e escolher como padrao pt_BR.ISO-8859-1</b></p>
<p>Pronto mais complicado do que isso não tem! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/frankley.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/frankley.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankley.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankley.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankley.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankley.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankley.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankley.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankley.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankley.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankley.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankley.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankley.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankley.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankley.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankley.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankley.wordpress.com&amp;blog=3666644&amp;post=4&amp;subd=frankley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankley.wordpress.com/2008/06/04/mudar-de-utf8-para-iso-8859-1-no-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/790d9b56dcf95726e826012dc672418f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankley</media:title>
		</media:content>
	</item>
	</channel>
</rss>
