<?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/"
	>

<channel>
	<title>Martin Ahrer - Together we&#039;ll make IT &#187; MyFaces Trinidad</title>
	<atom:link href="http://www.martinahrer.at/tag/myfaces-trinidad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinahrer.at</link>
	<description>Java Enterprise Softwareentwicklung und Consulting</description>
	<lastBuildDate>Sun, 11 Dec 2011 16:19:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<meta name="generator" content="deSignum 0.8.1" />
		<item>
		<title>Implementing Logon Forms with JSF</title>
		<link>http://www.martinahrer.at/2008/03/10/implementing-logon-forms-with-jsf/</link>
		<comments>http://www.martinahrer.at/2008/03/10/implementing-logon-forms-with-jsf/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 09:55:19 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[JavaServer Faces]]></category>
		<category><![CDATA[MyFaces Trinidad]]></category>
		<category><![CDATA[Oracle ADF Faces]]></category>
		<category><![CDATA[Rich-Faces]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/2008/03/10/implementing-logon-forms-with-jsf/</guid>
		<description><![CDATA[Implementing a logon form with JSF has been alwys a bit troublesome. This requires form input elements with input names j_username and j_password. With the JSF RI this is hard to accomplish. So you typically end up with including the Apache MyFaces Tomahawk components which offer a forceId attribute. If you are using other popular [...]]]></description>
			<content:encoded><![CDATA[<p>Implementing a logon form with JSF has been alwys a bit troublesome. This requires form input elements with input names j_username and j_password. With the JSF RI this is hard to accomplish. So you typically end up with including the Apache MyFaces Tomahawk components which offer a forceId attribute.</p>
<pre lang="xml">
<h:outputText value="User" />
<t:inputText id="j_username" forceId="true"/>
<h:outputText value="Password" />
<t:inputSecret id="j_password" forceId="true" />
</pre>
<p>If you are using other popular JSF component libraries, things might get a bit more handy (you can avoid including tomahawk just for fully controlling the input ids!).</p>
<p>With Myfaces Trinidad (Oracle ADF Faces) it is pretty easy, ids are accepted as they are:</p>
<pre lang="xml">
<tr:outputLabel value="User" />
<tr:inputText id="j_username" />
<tr:outputLabel value="Password" />
<tr:inputText id="j_password" secret="true" />
</pre>
<p>With JBoss Rich-Faces use the a4j:form tag:</p>
<pre lang="xml">
<a4j:form prependId="false">
	<h:outputText value="User" />
	<h:inputText id="j_username" />
	<h:outputText value="Password" />
	<h:inputSecret id="j_password" />
</a4j:form>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2008/03/10/implementing-logon-forms-with-jsf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

