<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Raphael Rodrigues</title>
	<atom:link href="http://www.raphaelrodrigues.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raphaelrodrigues.com</link>
	<description>Some thoughts on Java Platform</description>
	<lastBuildDate>Tue, 23 Aug 2011 10:31:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Comment on About me by raphaufrj</title>
		<link>http://www.raphaelrodrigues.com/about-me/#comment-54</link>
		<dc:creator>raphaufrj</dc:creator>
		<pubDate>Tue, 23 Aug 2011 10:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.raphaelrodrigues.com/?page_id=259#comment-54</guid>
		<description>Yes, sure! 

raphaufrj@gmail.com</description>
		<content:encoded><![CDATA[<p>Yes, sure! </p>
<p><a href="mailto:raphaufrj@gmail.com">raphaufrj@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to add parameters to ValueChangeListener in af:selectOneChoice by fetishcode</title>
		<link>http://www.raphaelrodrigues.com/2011/07/how-to-add-parameters-to-valuechangelistener-in-afselectonechoice/#comment-50</link>
		<dc:creator>fetishcode</dc:creator>
		<pubDate>Thu, 18 Aug 2011 08:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.raphaelrodrigues.com/?p=283#comment-50</guid>
		<description>Hi.
Good trick!
But you can also access the iterator from your bean and take the value of any attribute of your PageDef.

Regards.</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Good trick!<br />
But you can also access the iterator from your bean and take the value of any attribute of your PageDef.</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to add parameters to ValueChangeListener in af:selectOneChoice by ILya Cyclone</title>
		<link>http://www.raphaelrodrigues.com/2011/07/how-to-add-parameters-to-valuechangelistener-in-afselectonechoice/#comment-49</link>
		<dc:creator>ILya Cyclone</dc:creator>
		<pubDate>Thu, 18 Aug 2011 06:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.raphaelrodrigues.com/?p=283#comment-49</guid>
		<description>Hi,
Why not just adding af:clientAttribute to af:selectOneChoice?
In ValueChangeListener it would be  smth like:
Integer limiteMaximo = (Integer)evt.getComponent().getAttribute(&quot;limiteMaximo&quot;);

I know that IDE marks clientAttribute under selectOneChoice as an error, but you may add it in page source and it works perfectly.
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Why not just adding af:clientAttribute to af:selectOneChoice?<br />
In ValueChangeListener it would be  smth like:<br />
Integer limiteMaximo = (Integer)evt.getComponent().getAttribute(&#8220;limiteMaximo&#8221;);</p>
<p>I know that IDE marks clientAttribute under selectOneChoice as an error, but you may add it in page source and it works perfectly.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to add parameters to ValueChangeListener in af:selectOneChoice by Nicolas</title>
		<link>http://www.raphaelrodrigues.com/2011/07/how-to-add-parameters-to-valuechangelistener-in-afselectonechoice/#comment-48</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Thu, 18 Aug 2011 05:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.raphaelrodrigues.com/?p=283#comment-48</guid>
		<description>Hi, 
Personally I would use one of the 2 following approaches.

&lt;strong&gt; Approach 1 &lt;/strong&gt;

&lt;code&gt;
public void onChangePercentualRegular(ValueChangeEvent evt){
	if (evt.getNewValue() != null){
		Integer newValue = Integer.parseInt((String)evt.getNewValue());
		// Get the limitMaximo from the current Row
		Integer limiteMaximo = 
			(Integer)ADFUtils.findIterator(&quot;yourIteratorName&quot;).getCurrentRow().getAttribute(&quot;limiteMaximo&quot;);
		if (newValue &lt; limiteMaximo){
			//process what you want to do
		
		}	
	}
}
&lt;/code&gt;

ADUtils.java

&lt;code&gt;
/**
     * Find an iterator binding in the current binding container by name.
     * 
     * @param name iterator binding name
     * @return iterator binding
     */
    public static DCIteratorBinding findIterator(String name) {
        DCIteratorBinding iter = 
            getDCBindingContainer().findIteratorBinding(name);
        if (iter == null) {
            throw new RuntimeException(&quot;Iterator &#039;&quot; + name + &quot;&#039; not found&quot;);
        }
        return iter;
    }
&lt;/code&gt;

&lt;strong&gt; Approach 2 &lt;/strong&gt;
- First bind the &quot;af:table&quot; to the backing bean (private RichTable myTable;)
&lt;code&gt;
public void onChangePercentualRegular(ValueChangeEvent evt){
	if (evt.getNewValue() != null){
		Integer newValue = Integer.parseInt((String)evt.getNewValue());

        CollectionModel model = (CollectionModel)((UIXTable)myTable).getValue();
        JUCtrlHierBinding adfTreeBinding = (JUCtrlHierBinding)model.getWrappedData();
        Integer limiteMaximo = (Integer)adfTreeBinding.getAttribute(&quot;limiteMaximo&quot;);
		if (newValue &lt; limiteMaximo){
			//process what you want to do
		
		}	
	}
}
&lt;/code&gt;

Regards

Nicolas</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Personally I would use one of the 2 following approaches.</p>
<p><strong> Approach 1 </strong></p>
<p><code><br />
public void onChangePercentualRegular(ValueChangeEvent evt){<br />
	if (evt.getNewValue() != null){<br />
		Integer newValue = Integer.parseInt((String)evt.getNewValue());<br />
		// Get the limitMaximo from the current Row<br />
		Integer limiteMaximo =<br />
			(Integer)ADFUtils.findIterator("yourIteratorName").getCurrentRow().getAttribute("limiteMaximo");<br />
		if (newValue &lt; limiteMaximo){<br />
			//process what you want to do</p>
<p>		}<br />
	}<br />
}<br />
</code></p>
<p>ADUtils.java</p>
<p><code><br />
/**<br />
     * Find an iterator binding in the current binding container by name.<br />
     *<br />
     * @param name iterator binding name<br />
     * @return iterator binding<br />
     */<br />
    public static DCIteratorBinding findIterator(String name) {<br />
        DCIteratorBinding iter =<br />
            getDCBindingContainer().findIteratorBinding(name);<br />
        if (iter == null) {<br />
            throw new RuntimeException("Iterator '" + name + "' not found");<br />
        }<br />
        return iter;<br />
    }<br />
</code></p>
<p><strong> Approach 2 </strong><br />
- First bind the &#8220;af:table&#8221; to the backing bean (private RichTable myTable;)<br />
<code><br />
public void onChangePercentualRegular(ValueChangeEvent evt){<br />
	if (evt.getNewValue() != null){<br />
		Integer newValue = Integer.parseInt((String)evt.getNewValue());</p>
<p>        CollectionModel model = (CollectionModel)((UIXTable)myTable).getValue();<br />
        JUCtrlHierBinding adfTreeBinding = (JUCtrlHierBinding)model.getWrappedData();<br />
        Integer limiteMaximo = (Integer)adfTreeBinding.getAttribute("limiteMaximo");<br />
		if (newValue &lt; limiteMaximo){<br />
			//process what you want to do</p>
<p>		}<br />
	}<br />
}<br />
</code></p>
<p>Regards</p>
<p>Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About me by Ilias Tsagklis</title>
		<link>http://www.raphaelrodrigues.com/about-me/#comment-46</link>
		<dc:creator>Ilias Tsagklis</dc:creator>
		<pubDate>Tue, 09 Aug 2011 18:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.raphaelrodrigues.com/?page_id=259#comment-46</guid>
		<description>Hi Raphael,

Very nice blog! Is there an email address I can contact you in private?</description>
		<content:encoded><![CDATA[<p>Hi Raphael,</p>
<p>Very nice blog! Is there an email address I can contact you in private?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applying custom captcha on Jboss Seam by Daniel</title>
		<link>http://www.raphaelrodrigues.com/2011/04/applying-custom-captcha-on-jboss-seam/#comment-43</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 28 Jun 2011 19:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.raphaelrodrigues.com/?p=273#comment-43</guid>
		<description>Olá Rafael,
primeiramente, obrigado pelo ótimo post. 
Estou tendo um pequeno problema ao tentar utilizar essa sua implementação de captcha. O captcha é atualizado toda vez que o usuário digita um valor incorreto. No entanto se o usuário der um refresh (F5) na tela ou apenas alternar entre outras telas do sistema e voltar à tela que contém o captcha, este não está sendo atualizado para um novo valor. Isto acontece com você também? Estou fazendo essa navegação entre telas utilizando .
Qualquer ajuda é bem vinda, obrigado!</description>
		<content:encoded><![CDATA[<p>Olá Rafael,<br />
primeiramente, obrigado pelo ótimo post.<br />
Estou tendo um pequeno problema ao tentar utilizar essa sua implementação de captcha. O captcha é atualizado toda vez que o usuário digita um valor incorreto. No entanto se o usuário der um refresh (F5) na tela ou apenas alternar entre outras telas do sistema e voltar à tela que contém o captcha, este não está sendo atualizado para um novo valor. Isto acontece com você também? Estou fazendo essa navegação entre telas utilizando .<br />
Qualquer ajuda é bem vinda, obrigado!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About me by raphaufrj</title>
		<link>http://www.raphaelrodrigues.com/about-me/#comment-42</link>
		<dc:creator>raphaufrj</dc:creator>
		<pubDate>Tue, 28 Jun 2011 19:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.raphaelrodrigues.com/?page_id=259#comment-42</guid>
		<description>Olá Eduardo, deixe seu e-mail de contato.</description>
		<content:encoded><![CDATA[<p>Olá Eduardo, deixe seu e-mail de contato.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Activia Field Service &#8211; Projeto de Migração by raphaufrj</title>
		<link>http://www.raphaelrodrigues.com/2009/04/activia-field-service-projeto-de-migracao/#comment-41</link>
		<dc:creator>raphaufrj</dc:creator>
		<pubDate>Tue, 28 Jun 2011 18:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://raphaelrodrigues.wordpress.com/?p=101#comment-41</guid>
		<description>Não sou o criador. Apenas participei do projeto / produto. O Activia Field Service é desenvolvido pela iClass Consultoria: www.iclass.com.br.</description>
		<content:encoded><![CDATA[<p>Não sou o criador. Apenas participei do projeto / produto. O Activia Field Service é desenvolvido pela iClass Consultoria: <a href="http://www.iclass.com.br" rel="nofollow">http://www.iclass.com.br</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Activia Field Service &#8211; Projeto de Migração by raphaufrj</title>
		<link>http://www.raphaelrodrigues.com/2009/04/activia-field-service-projeto-de-migracao/#comment-40</link>
		<dc:creator>raphaufrj</dc:creator>
		<pubDate>Tue, 28 Jun 2011 18:58:07 +0000</pubDate>
		<guid isPermaLink="false">http://raphaelrodrigues.wordpress.com/?p=101#comment-40</guid>
		<description>Sim Jaison, a empresa que fabrica é a iclass: www.iclass.com.br</description>
		<content:encoded><![CDATA[<p>Sim Jaison, a empresa que fabrica é a iclass: <a href="http://www.iclass.com.br" rel="nofollow">http://www.iclass.com.br</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Activia Field Service &#8211; Projeto de Migração by jaison</title>
		<link>http://www.raphaelrodrigues.com/2009/04/activia-field-service-projeto-de-migracao/#comment-39</link>
		<dc:creator>jaison</dc:creator>
		<pubDate>Wed, 15 Jun 2011 21:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://raphaelrodrigues.wordpress.com/?p=101#comment-39</guid>
		<description>Olá Rafael gostaria de saber um pouco mais do aplicativo web ACTIVIA FIELD SERVICE , tem algum site da empresa que fabrica ou contato ?</description>
		<content:encoded><![CDATA[<p>Olá Rafael gostaria de saber um pouco mais do aplicativo web ACTIVIA FIELD SERVICE , tem algum site da empresa que fabrica ou contato ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

