<?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#"
>
<channel>
<title>pretty faces | Muharrem Tığdemir</title>
<atom:link href="/tag/pretty-faces/feed/" rel="self" type="application/rss+xml" />
<link></link>
<description>Carpe Diem!!</description>
<lastBuildDate>Thu, 16 Jan 2014 17:59:26 +0000</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>
hourly </sy:updatePeriod>
<sy:updateFrequency>
1 </sy:updateFrequency>
<generator>https://wordpress.org/?v=6.2.2</generator>
<site xmlns="com-wordpress:feed-additions:1">120145533</site> <item>
<title>JSF, SEO ve PrettyFaces Hakkında</title>
<link>/jsf-seo-ve-prettyfaces-hakkinda/</link>
<comments>/jsf-seo-ve-prettyfaces-hakkinda/#respond</comments>
<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
<pubDate>Wed, 18 Sep 2013 18:21:10 +0000</pubDate>
<category><![CDATA[Java]]></category>
<category><![CDATA[JSF]]></category>
<category><![CDATA[jsf]]></category>
<category><![CDATA[pretty faces]]></category>
<category><![CDATA[seo]]></category>
<guid isPermaLink="false">https://muharremtigdemir.com/wordpress/?p=53</guid>
<description><![CDATA[<p>Merhaba Arkadaşlar ,   Bu yazımda size web sitelerinin en önemli ihtiyaçlarından SEO yu JSF üzerinde kullanmayı anlatacağım. Bunun için PrettyFaces isimli url-rewrite JSF kütüphanesini kullanacağız.   Öncelikle gerekli dosyaları ekleyelim. Kurulum için <dependency> <groupId>org.ocpsoft.rewrite</groupId> <artifactId>rewrite-servlet</artifactId> <version>2.0.7.Final</version> </dependency> <dependency> <groupId>org.ocpsoft.rewrite</groupId> <artifactId>rewrite-config-prettyfaces</artifactId> <version>2.0.7.Final</version> </dependency> pom.xml dosyamıza gerekli kütüphaneleri ekleyelim. Maven kullanımı hakkında daha ayrıntılı bilgi için Maven […]</p>
<p>The post <a href="/jsf-seo-ve-prettyfaces-hakkinda/">JSF, SEO ve PrettyFaces Hakkında</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p> </p>
<p>Bu yazımda size web sitelerinin en önemli ihtiyaçlarından SEO yu JSF üzerinde kullanmayı anlatacağım. Bunun için <a title="PrettyFaces" href="http://ocpsoft.org/prettyfaces/" target="_blank">PrettyFaces</a> isimli url-rewrite JSF kütüphanesini kullanacağız.</p>
<p> </p>
<p>Öncelikle gerekli dosyaları ekleyelim. Kurulum için</p>
<ol>
<li>
<pre class="lang:xhtml decode:true crayon-selected"><dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-servlet</artifactId>
<version>2.0.7.Final</version>
</dependency>
<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-config-prettyfaces</artifactId>
<version>2.0.7.Final</version>
</dependency></pre>
<p>pom.xml dosyamıza gerekli kütüphaneleri ekleyelim. Maven kullanımı hakkında daha ayrıntılı bilgi için <a title="Maven WEb Site" href="http://maven.apache.org/guides/mini/guide-central-repository-upload.html" target="_blank">Maven Web Site</a> buraya bakabilirsiniz. <span id="more-53"></span></li>
<li>
<pre class="lang:default decode:true"><pretty-config xmlns="http://ocpsoft.org/schema/rewrite-config-prettyfaces"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces
http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd">
<url-mapping id="watch">
<pattern value="/watch" />
<view-id value="site/show_video.xhtml" />
</url-mapping>
<url-mapping id="home">
<pattern value="/home" />
<view-id value="site/index.xhtml" />
</url-mapping>
<url-mapping id="profile">
<pattern value="/Profile" />
<view-id value="site/profile.xhtml" />
</url-mapping>
</pretty-config></pre>
</li>
</ol>
<p>WEB-INF/pretty-config.xml isimli bir dosya oluşturarak içine yukarıdaki kod bloğunu ekleyin.</p>
<p> </p>
<p>Peki Kod bloğu ne iş yapıyor.</p>
<pre class="lang:xhtml decode:true crayon-selected"><url-mapping id="profile">
</url-mapping></pre>
<p>Yukarıdaki bölüm yönelendirmeniz için isim tanımlamanıza yarıyor. Örneğin ben Profil Sayfası için “profile” tagını belirledim.</p>
<pre class="lang:xhtml decode:true"> <pattern value="/Profile" />
<view-id value="site/profile.xhtml" /></pre>
<p>Yukarıdaki Kod bloğunda ise pattern ana dizin linkinizden sonra gelecek kısım ;</p>
<p>Örnek Link : localhost/Profile olarak gelirse bu link : localhost/site/profile.xhtml olarak işlem görecek.</p>
<p> </p>
<p> </p>
<p>Muharrem Tığdemir</p><p>The post <a href="/jsf-seo-ve-prettyfaces-hakkinda/">JSF, SEO ve PrettyFaces Hakkında</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
<wfw:commentRss>/jsf-seo-ve-prettyfaces-hakkinda/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">53</post-id> </item>
</channel>
</rss>