<?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: To Javascript or not to Javascript: Kaleidoscope &#8216;09 Report I</title>
	<atom:link href="http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/</link>
	<description>Tricks, Tips, Thoughts, and Rants About Java EE, Oracle ADF, and Web Application Development</description>
	<lastBuildDate>Wed, 25 Nov 2009 12:11:42 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Avrom&#8217;s Java EE and Oracle ADF Blog :: Oracle OpenWorld/Oracle Develop 2009: Day 1</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-9961</link>
		<dc:creator>Avrom&#8217;s Java EE and Oracle ADF Blog :: Oracle OpenWorld/Oracle Develop 2009: Day 1</dc:creator>
		<pubDate>Mon, 12 Oct 2009 01:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-9961</guid>
		<description>[...] advanced table/tree development, declarative components, Javascript programming (which I&#8217;ve talked about before), and the Active Data Service. That last one was the first time I&#8217;ve ever [...]</description>
		<content:encoded><![CDATA[<p>[...] advanced table/tree development, declarative components, Javascript programming (which I&#8217;ve talked about before), and the Active Data Service. That last one was the first time I&#8217;ve ever [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Logu</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-8158</link>
		<dc:creator>Logu</dc:creator>
		<pubDate>Tue, 18 Aug 2009 13:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-8158</guid>
		<description>Hi Avrom,

Thanks for your great hints and valuable time. I will be follow the instructions and try to get the bean obj in my backingbean java. Will update you once I did the same. Have a great day.

Logu</description>
		<content:encoded><![CDATA[<p>Hi Avrom,</p>
<p>Thanks for your great hints and valuable time. I will be follow the instructions and try to get the bean obj in my backingbean java. Will update you once I did the same. Have a great day.</p>
<p>Logu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avrom</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-8126</link>
		<dc:creator>Avrom</dc:creator>
		<pubDate>Mon, 17 Aug 2009 22:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-8126</guid>
		<description>Hi Logu,

I&#039;m very sorry about this, but I can&#039;t in good conscience provide exact code to do this. It strikes me as very like a homework problem, and I doubt your instructor would appreciate my handing out the answer.

That said, I&#039;m happy to provide a couple more hints:

1) The getter and setter for the  component need to go in a backing bean. You can use an option in the Property Inspector to automatically create the managed bean and its class, with the accessor methods there.

2) There are a number of places you could call the messages setMessage() from; it depends on the conditions under which you want to set the message. If you want it to be fired from a component, you&#039;ll need to do one of two things:
a) Use the &quot;action&quot; attribute of the component to call a method in either the same bean or another bean with the backing bean injected into it.
b) (Preferable if you can do it) don&#039;t call the method from Java code at all, instead use an  on the component to set the message value.

I&#039;m afraid that&#039;s all the help I can provide with this problem.</description>
		<content:encoded><![CDATA[<p>Hi Logu,</p>
<p>I&#8217;m very sorry about this, but I can&#8217;t in good conscience provide exact code to do this. It strikes me as very like a homework problem, and I doubt your instructor would appreciate my handing out the answer.</p>
<p>That said, I&#8217;m happy to provide a couple more hints:</p>
<p>1) The getter and setter for the  component need to go in a backing bean. You can use an option in the Property Inspector to automatically create the managed bean and its class, with the accessor methods there.</p>
<p>2) There are a number of places you could call the messages setMessage() from; it depends on the conditions under which you want to set the message. If you want it to be fired from a component, you&#8217;ll need to do one of two things:<br />
a) Use the &#8220;action&#8221; attribute of the component to call a method in either the same bean or another bean with the backing bean injected into it.<br />
b) (Preferable if you can do it) don&#8217;t call the method from Java code at all, instead use an  on the component to set the message value.</p>
<p>I&#8217;m afraid that&#8217;s all the help I can provide with this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Logu</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-8125</link>
		<dc:creator>Logu</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-8125</guid>
		<description>Hi Avrom,

Thanks for your earlier reply. 

Could you please send the piece of code how I can modify/set my ADF UI bean properties at run time. I got a af:Message bean item in my UI and suppose to set the message property at run time with help of setMessage(java.lang.String message) method. 

Please help me to get the same java code how to do this and where exactly I suppose to place that java code (In UI&#039;s backingBean.java??).

Thanks for your great help.
Logu</description>
		<content:encoded><![CDATA[<p>Hi Avrom,</p>
<p>Thanks for your earlier reply. </p>
<p>Could you please send the piece of code how I can modify/set my ADF UI bean properties at run time. I got a af:Message bean item in my UI and suppose to set the message property at run time with help of setMessage(java.lang.String message) method. </p>
<p>Please help me to get the same java code how to do this and where exactly I suppose to place that java code (In UI&#8217;s backingBean.java??).</p>
<p>Thanks for your great help.<br />
Logu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avrom</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-7895</link>
		<dc:creator>Avrom</dc:creator>
		<pubDate>Mon, 10 Aug 2009 18:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-7895</guid>
		<description>Logu--Have you looked at Parts &lt;a href=&quot;http://www.avromroyfaderman.com/2009/07/how-to-use-adf-client-side-components-kaleidoscope-09-report-iii/&quot; rel=&quot;nofollow&quot;&gt;III&lt;/a&gt; and &lt;a href=&quot;http://www.avromroyfaderman.com/2009/07/simple-adf-client-side-component-use-cases-kaleidoscope-09-report-iv/&quot; rel=&quot;nofollow&quot;&gt;IV&lt;/a&gt; of this series? They show how you can call custom Javascript code from just about any event (such as on value change for a field). By calling event.cancel(), you can prevent the actual event (such as the value change) from taking place.

In JDeveloper 11&lt;em&gt;g&lt;/em&gt;, I think this is an easier way to go than using getClientScript() and/or getClientValidation().

As a warning: Pay heed to the warnings I and others have given--don&#039;t implement validation solely in JavaScript if it&#039;s for anything other than the user&#039;s own convenience. JavaScript-only validation can be bypassed by a malicious user. Redundant validation in JavaScript is fine, of course.</description>
		<content:encoded><![CDATA[<p>Logu&#8211;Have you looked at Parts <a href="http://www.avromroyfaderman.com/2009/07/how-to-use-adf-client-side-components-kaleidoscope-09-report-iii/" rel="nofollow">III</a> and <a href="http://www.avromroyfaderman.com/2009/07/simple-adf-client-side-component-use-cases-kaleidoscope-09-report-iv/" rel="nofollow">IV</a> of this series? They show how you can call custom Javascript code from just about any event (such as on value change for a field). By calling event.cancel(), you can prevent the actual event (such as the value change) from taking place.</p>
<p>In JDeveloper 11<em>g</em>, I think this is an easier way to go than using getClientScript() and/or getClientValidation().</p>
<p>As a warning: Pay heed to the warnings I and others have given&#8211;don&#8217;t implement validation solely in JavaScript if it&#8217;s for anything other than the user&#8217;s own convenience. JavaScript-only validation can be bypassed by a malicious user. Redundant validation in JavaScript is fine, of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Logu</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-7894</link>
		<dc:creator>Logu</dc:creator>
		<pubDate>Mon, 10 Aug 2009 18:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-7894</guid>
		<description>Hi Adam,

I need you help. I am new to ADF, my present ADF application, I suppose to implement the clientside validations for which I suppose to wrote custom JavaScript and then invoke the same for validate again my UI item (textbox entry). 

Can you please suggest me or send me some same code, where exactly I suppose to place my java script and how should I map the function name with my ADF faces UI items. what is the use of getClientScript() &amp; getClientValidation() method and how to implement in my ADF application. 

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Adam,</p>
<p>I need you help. I am new to ADF, my present ADF application, I suppose to implement the clientside validations for which I suppose to wrote custom JavaScript and then invoke the same for validate again my UI item (textbox entry). </p>
<p>Can you please suggest me or send me some same code, where exactly I suppose to place my java script and how should I map the function name with my ADF faces UI items. what is the use of getClientScript() &amp; getClientValidation() method and how to implement in my ADF application. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avrom&#8217;s Java EE and Oracle ADF Blog :: Simple ADF Client-Side Component Use Cases: Kaleidoscope &#8216;09 Report IV</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-7874</link>
		<dc:creator>Avrom&#8217;s Java EE and Oracle ADF Blog :: Simple ADF Client-Side Component Use Cases: Kaleidoscope &#8216;09 Report IV</dc:creator>
		<pubDate>Mon, 10 Aug 2009 04:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-7874</guid>
		<description>[...] from last week. The third line calls the (alas completely undocumented&#8211;as I ranted about here) setter method for the &#8220;disclosed&#8221; property on the showDetail1 object. (How did Lucas [...]</description>
		<content:encoded><![CDATA[<p>[...] from last week. The third line calls the (alas completely undocumented&#8211;as I ranted about here) setter method for the &#8220;disclosed&#8221; property on the showDetail1 object. (How did Lucas [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avrom</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-6945</link>
		<dc:creator>Avrom</dc:creator>
		<pubDate>Tue, 30 Jun 2009 16:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-6945</guid>
		<description>Yes, I worded that badly. For critical validation (rules whose violation will actually harm people other than the current user), you should always implement on the server first, and only consider Javascript validation later. For validation provided solely for the current user&#039;s convenience and protection (like the shipping address case), where all malicious users can do is hurt themselves, you can, of course, skip server-side validation entirely; client-side validation is quite sufficient to guard against honest mistakes.</description>
		<content:encoded><![CDATA[<p>Yes, I worded that badly. For critical validation (rules whose violation will actually harm people other than the current user), you should always implement on the server first, and only consider Javascript validation later. For validation provided solely for the current user&#8217;s convenience and protection (like the shipping address case), where all malicious users can do is hurt themselves, you can, of course, skip server-side validation entirely; client-side validation is quite sufficient to guard against honest mistakes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Neumueller</title>
		<link>http://www.avromroyfaderman.com/2009/06/to-javascript-or-not-to-javascript-kaleidoscope-09-report-i/comment-page-1/#comment-6938</link>
		<dc:creator>Chris Neumueller</dc:creator>
		<pubDate>Tue, 30 Jun 2009 08:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.avromroyfaderman.com/?p=340#comment-6938</guid>
		<description>Hi!

&quot;...you can always duplicate validation you’ve implemented in Javascript on the server.&quot;

I&#039;d say it the other way around. First, code your business logic and data sanity rules on the server. Then, for the user&#039;s convenience, provide validation and rich interaction on the client. Users will be annoyed if the application is difficult to use, but they will truly hate it if the data is garbage.

Greetings,
Chris</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>&#8220;&#8230;you can always duplicate validation you’ve implemented in Javascript on the server.&#8221;</p>
<p>I&#8217;d say it the other way around. First, code your business logic and data sanity rules on the server. Then, for the user&#8217;s convenience, provide validation and rich interaction on the client. Users will be annoyed if the application is difficult to use, but they will truly hate it if the data is garbage.</p>
<p>Greetings,<br />
Chris</p>
]]></content:encoded>
	</item>
</channel>
</rss>
