<?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 on: About</title>
	<atom:link href="http://www.andygibson.net/blog/about/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andygibson.net/blog</link>
	<description>Open Source Projects &#38; Technical Writings</description>
	<lastBuildDate>Fri, 30 Jul 2010 20:20:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arnold</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14235</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Wed, 09 Sep 2009 17:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14235</guid>
		<description>You said that &quot;the bean fetch the data based on the 3 boolean values&quot;. So if I can fetch the data in backing bean through service or straight through dao layer (as I know the service layer should reach data with the help of dao layer to achive the business logic, that&#039;s straight for)  where should business logic &quot;live&quot;? In the service layer and backing beans? Or just in service layer? Or should I bother with service layer eventually? If the business logic in backing beans like that checkbox value holder above than how can I handle security questions(authorisation) and transaction management. DAO is getting closer to &quot;death&quot; thanks to JPA and the dao layer is migrating into service layer if I&#039;m right. Although I did not deal with the JPA a lot, since we have an own data access solution (you know some kind of homegrown framework), which is badder though, than JPA, but we have to use that.</description>
		<content:encoded><![CDATA[<p>You said that &#8220;the bean fetch the data based on the 3 boolean values&#8221;. So if I can fetch the data in backing bean through service or straight through dao layer (as I know the service layer should reach data with the help of dao layer to achive the business logic, that&#8217;s straight for)  where should business logic &#8220;live&#8221;? In the service layer and backing beans? Or just in service layer? Or should I bother with service layer eventually? If the business logic in backing beans like that checkbox value holder above than how can I handle security questions(authorisation) and transaction management. DAO is getting closer to &#8220;death&#8221; thanks to JPA and the dao layer is migrating into service layer if I&#8217;m right. Although I did not deal with the JPA a lot, since we have an own data access solution (you know some kind of homegrown framework), which is badder though, than JPA, but we have to use that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14234</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Wed, 09 Sep 2009 02:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14234</guid>
		<description>Yep, I think I got you, well, first off, I&#039;ve not really used Trinidad or it&#039;s partial page rendering so I&#039;m not much help there.  I would get the page working in full redisplay mode before working out the ajaxy partial updates.

You can implement the 3 checkboxes without any kind of state management. You hook the checkboxes to 3 boolean properties in a request scoped bean and have the bean fetch the data based on the 3 boolean values. Each time you post the form back the values are put into the bean, used to generate the sql, and the 3 values are rendered back to the page. So the values are held client side, posted back, validation is performed and the boolean values and error messages are sent back down to the client. While Ajax may only update part of the page, you would need to post back the whole form (all 3 boolean values) to be able to generate the sql. On the plus side, it would be completely stateless since the state is stored on the client.</description>
		<content:encoded><![CDATA[<p>Yep, I think I got you, well, first off, I&#8217;ve not really used Trinidad or it&#8217;s partial page rendering so I&#8217;m not much help there.  I would get the page working in full redisplay mode before working out the ajaxy partial updates.</p>
<p>You can implement the 3 checkboxes without any kind of state management. You hook the checkboxes to 3 boolean properties in a request scoped bean and have the bean fetch the data based on the 3 boolean values. Each time you post the form back the values are put into the bean, used to generate the sql, and the 3 values are rendered back to the page. So the values are held client side, posted back, validation is performed and the boolean values and error messages are sent back down to the client. While Ajax may only update part of the page, you would need to post back the whole form (all 3 boolean values) to be able to generate the sql. On the plus side, it would be completely stateless since the state is stored on the client.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14231</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Sat, 05 Sep 2009 17:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14231</guid>
		<description>Oops, that first sentence is very incomprehensible and maybe the others too, but I hope you got the point.</description>
		<content:encoded><![CDATA[<p>Oops, that first sentence is very incomprehensible and maybe the others too, but I hope you got the point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14230</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Sat, 05 Sep 2009 17:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14230</guid>
		<description>Hey Andy,

Could you advise to me for these problems:
I&#039;m using Trinidad components and just those, &#039;cause I have to. There is a form with some input components 
(combobox, inputtext etc.) and a send button. I have to enforce some form constraints without rerender the whole page like Ajax do I guess, but I must not use Ajax just Trinidad. It&#039;s like booking-faces sample application&#039;s client side validators for credit card number and name but it&#039;s more complicated &#039;cause it&#039;s server side and context aware if you know what I try to mean (e.g. input fields&#039; readonly value depends on another input fields&#039; values). As I see my only options are the value change listeners.

If I have 3 single checkbox on the page that change for example a SQL selection should I make a stateful backing bean to store these 3 values or may I just store them in scope variables?</description>
		<content:encoded><![CDATA[<p>Hey Andy,</p>
<p>Could you advise to me for these problems:<br />
I&#8217;m using Trinidad components and just those, &#8217;cause I have to. There is a form with some input components<br />
(combobox, inputtext etc.) and a send button. I have to enforce some form constraints without rerender the whole page like Ajax do I guess, but I must not use Ajax just Trinidad. It&#8217;s like booking-faces sample application&#8217;s client side validators for credit card number and name but it&#8217;s more complicated &#8217;cause it&#8217;s server side and context aware if you know what I try to mean (e.g. input fields&#8217; readonly value depends on another input fields&#8217; values). As I see my only options are the value change listeners.</p>
<p>If I have 3 single checkbox on the page that change for example a SQL selection should I make a stateful backing bean to store these 3 values or may I just store them in scope variables?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14228</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Thu, 03 Sep 2009 03:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14228</guid>
		<description>The SWF brings conversational pages to your applications, so for example, if you are writing a multi-page wizard, you can use a conversation to hold the state (beans, entities etc) from one page to the next.  It also lets you decouple navigation in such multi-page conversations and put it in the spring web flow.

You seem to be focused on using event listeners to handle form interaction when you really just need to worry about it when the form is posted. With spring web flow, the form is posted with an action string &lt;h:commandButton action=&quot;doSomething&quot;/&gt;, and any processing is invoked by the spring web flow in response to the &quot;doSomething&quot; action.

Take a look at my Seam versus Spring Web Flow / Wicket articles : 

http://www.andygibson.net/blog/index.php/2009/08/01/seam-versus-spring-web-flow-versus-wicket/

It includes a whole chapter on using Spring Web Flow in an application that lets you view/edit/list items and it uses JSF. That should give you an idea.

Cheers,

Andy</description>
		<content:encoded><![CDATA[<p>The SWF brings conversational pages to your applications, so for example, if you are writing a multi-page wizard, you can use a conversation to hold the state (beans, entities etc) from one page to the next.  It also lets you decouple navigation in such multi-page conversations and put it in the spring web flow.</p>
<p>You seem to be focused on using event listeners to handle form interaction when you really just need to worry about it when the form is posted. With spring web flow, the form is posted with an action string &lt;h:commandButton action=&#8221;doSomething&#8221;/&gt;, and any processing is invoked by the spring web flow in response to the &#8220;doSomething&#8221; action.</p>
<p>Take a look at my Seam versus Spring Web Flow / Wicket articles : </p>
<p><a href="http://www.andygibson.net/blog/index.php/2009/08/01/seam-versus-spring-web-flow-versus-wicket/" rel="nofollow">http://www.andygibson.net/blog/index.php/2009/08/01/seam-versus-spring-web-flow-versus-wicket/</a></p>
<p>It includes a whole chapter on using Spring Web Flow in an application that lets you view/edit/list items and it uses JSF. That should give you an idea.</p>
<p>Cheers,</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14226</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Wed, 02 Sep 2009 11:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14226</guid>
		<description>I found the answer for my last question....</description>
		<content:encoded><![CDATA[<p>I found the answer for my last question&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14225</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Wed, 02 Sep 2009 11:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14225</guid>
		<description>I guess i found the question for my last question. I think if I wanna to create a project based on Spring MVC and JSF I should just put the listeners code into a controller and inject the service beans into it. But now with SWF I have to put this code into the Spring JSF beans not into the flow definition namely the flow controller. I scatter the code.</description>
		<content:encoded><![CDATA[<p>I guess i found the question for my last question. I think if I wanna to create a project based on Spring MVC and JSF I should just put the listeners code into a controller and inject the service beans into it. But now with SWF I have to put this code into the Spring JSF beans not into the flow definition namely the flow controller. I scatter the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14224</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Wed, 02 Sep 2009 09:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14224</guid>
		<description>Hi,

First I&#039;m glad you answered me so soon. I guess my comments would be right place in your &quot;Creating A Spring Web Flow JSF Project From Scratch&quot; post. 

If I can reach the model layer from Spring JSF backing beans through injected service layer or DAO layer then what&#039;s the purpose of flow definition and the whole SWF? I think it breaks the Spring MVC concept. The Spring JSF Beans assume the responsibility or role of Spring controllers . Wouldn&#039;t be simplier to use just Spring JSF Beans which delegate to service layer etc. like before the SWF was. Nowadays it&#039;s simplier thanks to the fact now Spring has the ability to manage the JSF backing beans in it’s container.  It&#039;s not clear for me yet what SWF can do for me. It looks awesome theoretically but in practice there are problems without a clear answer given by SWF. I don&#039;t like mixing technologies this way. 

Here is another simple task. What if I have two inputtext component on a page and when I write into the first one some text such as &quot;blue&quot; the other one changes its color to blue. I think it&#039;s a too fine-grained problem, so the flow can&#039;t handle this. I have to put this code into a backing bean. How did you solve this with just the good old Spring MVC? What did you write into the controller to handle this task?

Regards,
Arnold</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First I&#8217;m glad you answered me so soon. I guess my comments would be right place in your &#8220;Creating A Spring Web Flow JSF Project From Scratch&#8221; post. </p>
<p>If I can reach the model layer from Spring JSF backing beans through injected service layer or DAO layer then what&#8217;s the purpose of flow definition and the whole SWF? I think it breaks the Spring MVC concept. The Spring JSF Beans assume the responsibility or role of Spring controllers . Wouldn&#8217;t be simplier to use just Spring JSF Beans which delegate to service layer etc. like before the SWF was. Nowadays it&#8217;s simplier thanks to the fact now Spring has the ability to manage the JSF backing beans in it’s container.  It&#8217;s not clear for me yet what SWF can do for me. It looks awesome theoretically but in practice there are problems without a clear answer given by SWF. I don&#8217;t like mixing technologies this way. </p>
<p>Here is another simple task. What if I have two inputtext component on a page and when I write into the first one some text such as &#8220;blue&#8221; the other one changes its color to blue. I think it&#8217;s a too fine-grained problem, so the flow can&#8217;t handle this. I have to put this code into a backing bean. How did you solve this with just the good old Spring MVC? What did you write into the controller to handle this task?</p>
<p>Regards,<br />
Arnold</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14223</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Wed, 02 Sep 2009 01:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14223</guid>
		<description>Hey Arnold, I&#039;m not sure which post you are commenting on, but if you let me know, I&#039;ll move it there. As for your questions : 

Typically, value change listeners would go on the backing bean, which in Seams case is the EJB/Seam POJO and for Spring it would be a spring bean. Since you mention Spring Web Flow, you could make it reference a backing bean that is part of the web flow and it would be a stateful backing bean. You would access data the same way you do in beans in other places.

With Spring, you should be putting your data access code into a service layer or a DAO layer that is injected into your spring JSF backing beans or Spring MVC controllers so they can use the data access features of those beans.

Hope this helps, 

Cheers,

Andy Gibson</description>
		<content:encoded><![CDATA[<p>Hey Arnold, I&#8217;m not sure which post you are commenting on, but if you let me know, I&#8217;ll move it there. As for your questions : </p>
<p>Typically, value change listeners would go on the backing bean, which in Seams case is the EJB/Seam POJO and for Spring it would be a spring bean. Since you mention Spring Web Flow, you could make it reference a backing bean that is part of the web flow and it would be a stateful backing bean. You would access data the same way you do in beans in other places.</p>
<p>With Spring, you should be putting your data access code into a service layer or a DAO layer that is injected into your spring JSF backing beans or Spring MVC controllers so they can use the data access features of those beans.</p>
<p>Hope this helps, </p>
<p>Cheers,</p>
<p>Andy Gibson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold</title>
		<link>http://www.andygibson.net/blog/about/comment-page-1/#comment-14222</link>
		<dc:creator>Arnold</dc:creator>
		<pubDate>Tue, 01 Sep 2009 18:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?page_id=2#comment-14222</guid>
		<description>I just noticed that I wrote maybe onto a wrong page. Sorry for that :S</description>
		<content:encoded><![CDATA[<p>I just noticed that I wrote maybe onto a wrong page. Sorry for that :S</p>
]]></content:encoded>
	</item>
</channel>
</rss>
