<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6789984272019836693</id><updated>2026-03-03T12:58:18.334-08:00</updated><category term="ADF"/><category term="ADF  Faces"/><category term="ADF Faces"/><category term="ADF Model"/><category term="AM"/><category term="AM Pooling"/><category term="Action"/><category term="Application Module"/><category term="BC4J"/><category term="Business Components"/><category term="Collection"/><category term="Custom Filter"/><category term="Custom Servlet"/><category term="Detail"/><category term="Download"/><category term="Export"/><category term="File"/><category term="File Download"/><category term="Filter"/><category term="Iterator"/><category term="JQuery"/><category term="JUNIT"/><category term="Javascript"/><category term="Listener"/><category term="Master"/><category term="Master Detail"/><category term="Pagination"/><category term="Popup"/><category term="Separate Database"/><category term="Servlet"/><category term="Setting Pool Parameters"/><category term="Show Pop up"/><category term="Testing"/><category term="fileDownloadActionListener"/><title type='text'>Oracle ADF Blog</title><subtitle type='html'>Oracle Fusion Middleware (OFM) 11g is the top most upcoming application infrastructure foundation.By maximizing the IT and full usage of modern hardware and software architectures, OFM enables businesses to create and run intelligent business link applications.&#xa;&#xa;We consistently innovate to empower our customers to be on par with the ever growing competition across the globe. We strive hard to make your business collaborative and agile.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SMC</name><uri>http://www.blogger.com/profile/01945453187714054371</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQmNRVW8xbQULoeCN50NB56i6rNTJgOMb4QCfbqnrRwU3W8cKbX3l7AfZGlSWc0aAwm0M_1bkij4nihLR2vQDdsuev-W3MwzfudvvmL1jd7D5Q_6h6pte4aGvy2pIpd6k/s220/S%26M+Logo+FB.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-2284679958346797870</id><published>2011-09-02T10:34:00.000-07:00</published><updated>2011-09-02T10:34:40.113-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="ADF  Faces"/><category scheme="http://www.blogger.com/atom/ns#" term="Detail"/><category scheme="http://www.blogger.com/atom/ns#" term="Master"/><category scheme="http://www.blogger.com/atom/ns#" term="Master Detail"/><title type='text'>Master Detail Relationship in ADF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span id=&quot;internal-source-marker_0.43510232699736706&quot; style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;internal-source-marker_0.43510232699736706&quot; style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;In real world we often need to build master detail application where we need to perform CRUD operation using Master to Detail. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;We can easily obtain this in ADF. How we can obtain this and what functionalities we can provide easily are described below.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;internal-source-marker_0.43510232699736706&quot; style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;As for every ADF Web application we build two projects one is Model and another is ViewController. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;We can build ADF application in both the approaches Model Design to UI Design as well as UI Design to Model Design. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;We have followed Model Design to UI Design.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;First we created the Business Components for this demo. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;I  created the Entity Objects first, then association between entities. I  then built View Objects and View Links between them. I then included the  View Objects in our Application Module. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;We must have the view links created for creating master detail relationship. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihNKyoXOvzWYK8f4Ecnd2qH5Wz7fDAbDlceWsBIsm1M8_iMFtubU2V03QocxgvxXn4unhgTmYMdXK6OXgScZ4Hax7HC-FxZrK2EwX0bVSY7TDHJPXJuzp0nYBwRiaIMf9cTr8ookYvIPc/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihNKyoXOvzWYK8f4Ecnd2qH5Wz7fDAbDlceWsBIsm1M8_iMFtubU2V03QocxgvxXn4unhgTmYMdXK6OXgScZ4Hax7HC-FxZrK2EwX0bVSY7TDHJPXJuzp0nYBwRiaIMf9cTr8ookYvIPc/s320/10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhavyL5pW4_9VG9yumKMc8NfDxzzZSY1TrLEQFG0DTDzgGJggxZCT3FdsyRNZ74XeFLRjItat3Vmo63v0HlW9obBQuKAAYuZAYAKlNj8mtmiORx2xYmQg17cGgfjoa7VUUWvvgeZcmFzqo/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhavyL5pW4_9VG9yumKMc8NfDxzzZSY1TrLEQFG0DTDzgGJggxZCT3FdsyRNZ74XeFLRjItat3Vmo63v0HlW9obBQuKAAYuZAYAKlNj8mtmiORx2xYmQg17cGgfjoa7VUUWvvgeZcmFzqo/s320/11.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVXcmFg2vMW4s3-hzp8MjG5HKRqUFW_lVd23upWBLHr8c0Yix-5kD0jxvuJRpz1pNQLTuDjdcLIykcqTked_YX_rKlMAhXGGhL0iWz_bW0hl0L80S4hRF_1fLae1lCAEH0Bfa1fNx4TAU/s1600/12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVXcmFg2vMW4s3-hzp8MjG5HKRqUFW_lVd23upWBLHr8c0Yix-5kD0jxvuJRpz1pNQLTuDjdcLIykcqTked_YX_rKlMAhXGGhL0iWz_bW0hl0L80S4hRF_1fLae1lCAEH0Bfa1fNx4TAU/s320/12.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;I then created our UI in ViewController project. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;I created ADF Table using master View Object for Departments. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Then I created our slave table using slave View Object Employees.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;We should be able to select rows in master table. Otherwise we will not be able to change the slave table. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Now  if we select any department in the master table then the employees  belonging to that department will be automatically populated in slave  table.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLEZ2OQErr2uhR084-9egl8NImh070sBD3LM_mjaoKAAEICcuAgbKDp3d6DPlMo4DLILJQ8Er7kUpl-uRuRCe_sb6bt29GbG7zIB1DA2TygUtsDGYEoXqIK7rVzgFoUSlsHTLcxHzVGoU/s1600/15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLEZ2OQErr2uhR084-9egl8NImh070sBD3LM_mjaoKAAEICcuAgbKDp3d6DPlMo4DLILJQ8Er7kUpl-uRuRCe_sb6bt29GbG7zIB1DA2TygUtsDGYEoXqIK7rVzgFoUSlsHTLcxHzVGoU/s320/15.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjdXBrYBKotJRv_LsW5mUJyR_H0DrZYVD0UhZDiDgepN3WsluBrc3_R2FaxhxLk9diU_do_R5jFC_LC_yoXAM301Jo4V7LGTntU4O4ivw5ayZECuHqpW25j4g8bchKXFFD-jcxI6y6o_E/s1600/16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjdXBrYBKotJRv_LsW5mUJyR_H0DrZYVD0UhZDiDgepN3WsluBrc3_R2FaxhxLk9diU_do_R5jFC_LC_yoXAM301Jo4V7LGTntU4O4ivw5ayZECuHqpW25j4g8bchKXFFD-jcxI6y6o_E/s320/16.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwodSSYn8bM9bg5gW40TVE1EllMt4cUpRrvYGBw8W9RMxUD9dNmG2ORxLfARcrREMSGEy3PotRwblcmIFh6XE6dfRvIRwjJ456GDl-J6Fv9BoxziUG2vHVJ1MjRFXR4J9N8t_AmZR4KOA/s1600/17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwodSSYn8bM9bg5gW40TVE1EllMt4cUpRrvYGBw8W9RMxUD9dNmG2ORxLfARcrREMSGEy3PotRwblcmIFh6XE6dfRvIRwjJ456GDl-J6Fv9BoxziUG2vHVJ1MjRFXR4J9N8t_AmZR4KOA/s320/17.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;We can perform CRUD operations on both the master and slave(s). &amp;nbsp;As shown in the below screenshots.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEA2KoxuvS8sDL_UwI6pTH_sLoQ-sU5iURq18Lyd8p0xRl9Gf-N5pSJuFfPsB2TJVrAL1aQ9sPP-yadlkPkbZatZSFaZHgNbySLwm6lGGsxZm0ABR-uPvsoXfdAahlVREyKzDTo_tnJvQ/s1600/20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEA2KoxuvS8sDL_UwI6pTH_sLoQ-sU5iURq18Lyd8p0xRl9Gf-N5pSJuFfPsB2TJVrAL1aQ9sPP-yadlkPkbZatZSFaZHgNbySLwm6lGGsxZm0ABR-uPvsoXfdAahlVREyKzDTo_tnJvQ/s320/20.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYk-Xvz51RHmFNAL7vL4gmfkrSWvtS8INkybgA_Bt1OGWHwrlOD_v-DAZp8kmVKtcAUDRVaiPG1BXmKgKu2WeWI0XntBhHFBzqVHdrGWuocJtuG_7_8o1FLXE8ZPAsm0gXYJocuaUzt4Y/s1600/21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYk-Xvz51RHmFNAL7vL4gmfkrSWvtS8INkybgA_Bt1OGWHwrlOD_v-DAZp8kmVKtcAUDRVaiPG1BXmKgKu2WeWI0XntBhHFBzqVHdrGWuocJtuG_7_8o1FLXE8ZPAsm0gXYJocuaUzt4Y/s320/21.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYVaP_Jq9EVXnbfiVV7W19QDyj1qZjQL9OK-QULjvCMoct-CA7nxVh7iNM66XFTnbnldqgTvWWMe8HCCNSMSOCusDTnK-CJlZHSzE50-BRvwDEcCwdxh4LzIpwvCJ5uco0_Xjc_qKvXro/s1600/22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYVaP_Jq9EVXnbfiVV7W19QDyj1qZjQL9OK-QULjvCMoct-CA7nxVh7iNM66XFTnbnldqgTvWWMe8HCCNSMSOCusDTnK-CJlZHSzE50-BRvwDEcCwdxh4LzIpwvCJ5uco0_Xjc_qKvXro/s320/22.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWHyUm4NpYDWcQpbMCZ41orOAWmFmzc4uYaWBxboopCOz15ZOGQvMBk5oyolqxmcKm0P63jknkT8Mj1Cpjqx4gqE7LAPfNBWK6uqcx3VPPv7NV_gjwPEPZnVZvKQNvs7XQ_bhEO3QFFT4/s1600/24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWHyUm4NpYDWcQpbMCZ41orOAWmFmzc4uYaWBxboopCOz15ZOGQvMBk5oyolqxmcKm0P63jknkT8Mj1Cpjqx4gqE7LAPfNBWK6uqcx3VPPv7NV_gjwPEPZnVZvKQNvs7XQ_bhEO3QFFT4/s320/24.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhElEcGXpoj181CmjWtF7vy4NIgZQnIn8MQqeJNglBS43tXVpSbde9IlAsC0hn4BEHuZK0BU15yvvkyIGb3t0_ZvdtwrhYo8PfbCuw7-AxS9A-OsbhhYDi4dsK_kcfvnnBomUgKxvEdPHw/s1600/25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhElEcGXpoj181CmjWtF7vy4NIgZQnIn8MQqeJNglBS43tXVpSbde9IlAsC0hn4BEHuZK0BU15yvvkyIGb3t0_ZvdtwrhYo8PfbCuw7-AxS9A-OsbhhYDi4dsK_kcfvnnBomUgKxvEdPHw/s320/25.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQJM1dcY-hPtjS3fa1hjdrgaXXG1cQTrkX2D9PS3rLhzvb8Vu45w0chcK3ZNKIGI2B59eXRCDhNwci-KjAK9QG-7SKEAGNNBjkl94hMNwNR0zqHVEHsZfK3UO8rEYLkgy7fAxFaHlhAkM/s1600/26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQJM1dcY-hPtjS3fa1hjdrgaXXG1cQTrkX2D9PS3rLhzvb8Vu45w0chcK3ZNKIGI2B59eXRCDhNwci-KjAK9QG-7SKEAGNNBjkl94hMNwNR0zqHVEHsZfK3UO8rEYLkgy7fAxFaHlhAkM/s320/26.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Times New Roman; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Hope this can help you ........... :) &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/2284679958346797870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/09/master-detail-relationship-in-adf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/2284679958346797870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/2284679958346797870'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/09/master-detail-relationship-in-adf.html' title='Master Detail Relationship in ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihNKyoXOvzWYK8f4Ecnd2qH5Wz7fDAbDlceWsBIsm1M8_iMFtubU2V03QocxgvxXn4unhgTmYMdXK6OXgScZ4Hax7HC-FxZrK2EwX0bVSY7TDHJPXJuzp0nYBwRiaIMf9cTr8ookYvIPc/s72-c/10.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-6681521861046594639</id><published>2011-05-02T11:06:00.000-07:00</published><updated>2011-05-02T11:06:07.098-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="BC4J"/><category scheme="http://www.blogger.com/atom/ns#" term="Business Components"/><category scheme="http://www.blogger.com/atom/ns#" term="JUNIT"/><category scheme="http://www.blogger.com/atom/ns#" term="Testing"/><title type='text'>Unit Testing Of ADF Business Components Using JUNIT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In every project it is required to do proper testing, such that every requirement is met. There are many type of testings done in projects like Unit testing, Regression testing, Alpha testing etc.. From developer perspective unit testing should be done properly. In java , j2ee projects we normally use JUNIT framework. There are other frameworks also to do testing.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In ADF application also we will use JUNIT to do unit testing. To use JUNIT we need JUNIT extension for JDeveloper. For testing BC4J components we need BC4J - Junit extension for JDeveloper.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the following application we have created one ADF model project using HR schema&#39;s Employee Table.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;We have created entities, views as well as AM (named HRDemoAppModule).&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM4rKgeKHrfpiFoQk4Qm2yglmx1h_sZoljwKuw_mTiWC3mG0_AwSoMdP9rbGRHlXFYAbmcCv9ypD9CLo9ljApRtF46qTqufMpLvQibkpZDj8I_ih6Vwy4Ee5ySunr4Y5nGX1JFreXA5uw/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM4rKgeKHrfpiFoQk4Qm2yglmx1h_sZoljwKuw_mTiWC3mG0_AwSoMdP9rbGRHlXFYAbmcCv9ypD9CLo9ljApRtF46qTqufMpLvQibkpZDj8I_ih6Vwy4Ee5ySunr4Y5nGX1JFreXA5uw/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
First I have selected Business Components Test Suite to generate all the test fixture, test cases and test suite.&lt;br /&gt;
To create the suite I have selected the configuration HRDemoAppModule&lt;br /&gt;
.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgatHMYC47RmA9CZslylkP-cA2uuFl6iE9v8oci69u8CRl5D75Xl8tZJ3ZvuCDbeJMc_8cGbQh94jqUXijmihGiO8B2RA62AxPABtjGgE2mzqF3ZKnUMVQIQx0dRD-6O_ZSsgttHSR_4dM/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgatHMYC47RmA9CZslylkP-cA2uuFl6iE9v8oci69u8CRl5D75Xl8tZJ3ZvuCDbeJMc_8cGbQh94jqUXijmihGiO8B2RA62AxPABtjGgE2mzqF3ZKnUMVQIQx0dRD-6O_ZSsgttHSR_4dM/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIiK9fy3RpYbusdf7FC3seSMf2roIO_X_OZg6X9WwY5JtN8gpyPA7ku_LGM1m4WpzCh1AyhUqbmCOTL3dIyBhTAwZJVyJOuwEkkaRjCB_Nxx6GncXDlhYzUZDh2lNl1P57q4Onv42ldaQ/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIiK9fy3RpYbusdf7FC3seSMf2roIO_X_OZg6X9WwY5JtN8gpyPA7ku_LGM1m4WpzCh1AyhUqbmCOTL3dIyBhTAwZJVyJOuwEkkaRjCB_Nxx6GncXDlhYzUZDh2lNl1P57q4Onv42ldaQ/s320/3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;It will create all the test cases. Now if we run the test suite we will see that all the tests were successful. Now I want to create my own test method . I want to test the data volume is correct or &amp;nbsp;not. &amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinOyt5-e4eVy0EW0ONOHO-ZS3PeSO-Kq9RHDUpbpjIIBxxiimbGBa-D16UAkAEYbCivJH5s94jQNKcuGAh2fnKxQBB4CD_OQOkASe1_H6sskrJYqWqK33ijicvx2dOg9M0MOiRYTkCBI8/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;105&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinOyt5-e4eVy0EW0ONOHO-ZS3PeSO-Kq9RHDUpbpjIIBxxiimbGBa-D16UAkAEYbCivJH5s94jQNKcuGAh2fnKxQBB4CD_OQOkASe1_H6sskrJYqWqK33ijicvx2dOg9M0MOiRYTkCBI8/s320/8.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7OSD9YBMcW8NID1SyDrj3NHTSKm22HXA2t_9e1releDXVgKedmnyKNdDQ9bMiUU3PFr_R7cmt70aziU5gExUrUFbIrOv2v4uvJCnjCsZT3Oy4vPCIpVd0M-63yCXd5_rFQARlFy-bxvs/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;102&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7OSD9YBMcW8NID1SyDrj3NHTSKm22HXA2t_9e1releDXVgKedmnyKNdDQ9bMiUU3PFr_R7cmt70aziU5gExUrUFbIrOv2v4uvJCnjCsZT3Oy4vPCIpVd0M-63yCXd5_rFQARlFy-bxvs/s320/4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8H0iqhZmRhtU5rVbUtKUclZdlCkyVktDvTWnSJrTFkOyWqSHn6hhcMJUkYMdaagfWPYwed3aMt_55C6hWaa6EnMSobgQjwGHPet_uIuK8yT2OSC-TjEE2N5MOo7GcFaNZNisZYBQNqQo/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;115&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8H0iqhZmRhtU5rVbUtKUclZdlCkyVktDvTWnSJrTFkOyWqSHn6hhcMJUkYMdaagfWPYwed3aMt_55C6hWaa6EnMSobgQjwGHPet_uIuK8yT2OSC-TjEE2N5MOo7GcFaNZNisZYBQNqQo/s320/5.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now as Oracle Database has 107 records. So I have added assertEquals. Do not forget to add @Test before the method under test.&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIj7cEQYJbU4g6STojoARZnr1W9xA8E7fPhKS__sMyRfboccrJK933nYpbub8VFT2GzbM0UrXYaksKByevEZotHD0SjM6TFeTMW6lK2B7PjhY_3E46ajv53t4YKNzzj3_fy5HPtgPSpZM/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIj7cEQYJbU4g6STojoARZnr1W9xA8E7fPhKS__sMyRfboccrJK933nYpbub8VFT2GzbM0UrXYaksKByevEZotHD0SjM6TFeTMW6lK2B7PjhY_3E46ajv53t4YKNzzj3_fy5HPtgPSpZM/s320/6.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-NPn_WuUr53d9T1nq84kzaHEMpYFidgcG-I0bfvRiPZxMTonT-ZXKiYlKVb0uqb-7S6dt1GdiTY80VPGypmIC1xyK7UWJG0AN_PI-a_31aY3v1Vk16uW9BqlJwyYydEZr6MXJ4dScL_g/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-NPn_WuUr53d9T1nq84kzaHEMpYFidgcG-I0bfvRiPZxMTonT-ZXKiYlKVb0uqb-7S6dt1GdiTY80VPGypmIC1xyK7UWJG0AN_PI-a_31aY3v1Vk16uW9BqlJwyYydEZr6MXJ4dScL_g/s320/7.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The test succeeded.&lt;br /&gt;
&lt;br /&gt;
In this way we can do unit testing of BC4J components such that code is bug free one.&lt;br /&gt;
&lt;br /&gt;
Please comment..&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/6681521861046594639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/05/unit-testing-of-adf-business-components.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/6681521861046594639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/6681521861046594639'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/05/unit-testing-of-adf-business-components.html' title='Unit Testing Of ADF Business Components Using JUNIT'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM4rKgeKHrfpiFoQk4Qm2yglmx1h_sZoljwKuw_mTiWC3mG0_AwSoMdP9rbGRHlXFYAbmcCv9ypD9CLo9ljApRtF46qTqufMpLvQibkpZDj8I_ih6Vwy4Ee5ySunr4Y5nGX1JFreXA5uw/s72-c/1.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-1311259889481446546</id><published>2011-04-27T00:13:00.000-07:00</published><updated>2011-05-05T11:52:34.686-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Action"/><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Export"/><category scheme="http://www.blogger.com/atom/ns#" term="Listener"/><title type='text'>Export Collection in ADF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In many report based or any other data related application export to excel feature is always required.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Export to excel feature can be achieved in ADF very easily, may be just in 10 minutes we can see the result excel sheet. To achieve this in this project I have first created ADF business components from HR.Employee table. Then I created one jspx page to display the employee details table. Now I want to export this &amp;nbsp;tabular data in one excel named Employee.xls. &amp;nbsp;want that the employee details data will be displayed under title &quot;List Of Employees &quot; title.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now as export to excel will be available on some action so I added one command button here named &quot;Export Collection&quot;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINk0j2feetTzE0A4Bbz7r0fcTzMyGSVXlzHgSIIi2TzCsEzWdzKeUk8SpV_oRlHKkVI792nbFsyzXpgm4sovO1cQeklG-p6Oe3CZcr0Mkl4HT1ODbEWZDf7yH_h19t7-6frMx4Eu_Xok/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINk0j2feetTzE0A4Bbz7r0fcTzMyGSVXlzHgSIIi2TzCsEzWdzKeUk8SpV_oRlHKkVI792nbFsyzXpgm4sovO1cQeklG-p6Oe3CZcr0Mkl4HT1ODbEWZDf7yH_h19t7-6frMx4Eu_Xok/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I have inserted one &lt;b&gt;exportCollectionActionListener &lt;/b&gt;inside the command button. This takes 5 parameters, 2 of them are mandatory.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Mandatory fields are:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;ExportedId:&lt;/b&gt; The table or collection id you want to export&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Type:&lt;/b&gt; The export type. As it is excel here it should be excelHTML&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I have provided values for other two optional &amp;nbsp;fields :&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;filename&lt;/b&gt;: I wanted that the file name should be Employee.xls&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;title:&lt;/b&gt; I wanted the title to be here &quot;List of Employees&quot;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8nw8sVIfHsVtzR2hwb1LxbPnRjTEwT8bfZ5ialYVmvy84y3l4nSIgwP32wlenok7N-Em_a3iugOG0yJyiw9cZp9lEixLeU2Rr0IHLepxwTqhi_xkPPRXBF7skb2_A5D9gQTTCMhT9Uy0/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8nw8sVIfHsVtzR2hwb1LxbPnRjTEwT8bfZ5ialYVmvy84y3l4nSIgwP32wlenok7N-Em_a3iugOG0yJyiw9cZp9lEixLeU2Rr0IHLepxwTqhi_xkPPRXBF7skb2_A5D9gQTTCMhT9Uy0/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now if I run the page and click the command button &quot;Export Collection&quot; it will export the table data in one Excel Sheet named &quot;Employee.xls&quot;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKsVTpSHmBYCDNZ1DKGCYj43uOtTOdaqee7J8k5l_MhrF1Q8Xl1NsYrrRVC_jE-J8RmAhRd46VW31hD93xtB6hdeY3R0GoD_7ebdaTKHjkXZ-_iUeEjd-Omn2jcF7ASu0q_a1R-mX_YwM/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKsVTpSHmBYCDNZ1DKGCYj43uOtTOdaqee7J8k5l_MhrF1Q8Xl1NsYrrRVC_jE-J8RmAhRd46VW31hD93xtB6hdeY3R0GoD_7ebdaTKHjkXZ-_iUeEjd-Omn2jcF7ASu0q_a1R-mX_YwM/s320/3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
The title of the sheet should be &quot;List of Employees &quot; as shown below.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixPnQ1VnF1EZ4MM9VdcoACDMTAurynl4fOyri8Kz4y0kbCpy_LEIHYLkSbdhlPFhRBdU9Hxfw2LU-0BJ6VpnMvAEFbM0f0YZVxkTl5pDXrkodDfA99ySpO7f1VTSXTclwlkEttoep4WNI/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixPnQ1VnF1EZ4MM9VdcoACDMTAurynl4fOyri8Kz4y0kbCpy_LEIHYLkSbdhlPFhRBdU9Hxfw2LU-0BJ6VpnMvAEFbM0f0YZVxkTl5pDXrkodDfA99ySpO7f1VTSXTclwlkEttoep4WNI/s320/4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Please comment .......&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;If source code is required please email me.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/1311259889481446546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/04/export-collection-in-adf.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/1311259889481446546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/1311259889481446546'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/04/export-collection-in-adf.html' title='Export Collection in ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgINk0j2feetTzE0A4Bbz7r0fcTzMyGSVXlzHgSIIi2TzCsEzWdzKeUk8SpV_oRlHKkVI792nbFsyzXpgm4sovO1cQeklG-p6Oe3CZcr0Mkl4HT1ODbEWZDf7yH_h19t7-6frMx4Eu_Xok/s72-c/1.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-8516873785264703217</id><published>2011-04-22T07:08:00.000-07:00</published><updated>2011-04-22T10:21:20.243-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="ADF Model"/><category scheme="http://www.blogger.com/atom/ns#" term="Application Module"/><category scheme="http://www.blogger.com/atom/ns#" term="Separate Database"/><title type='text'>Separate Database As Well As Table structure For Pages</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;It is some time required to use separate databases as well as separate table structure for separate pages. Or even in same page we can use separate databases.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In ADF it can be achieved very easily. I am discussing here the simplest one. ApplicationModule in ADF can be compared with persistence units of JPA, not exactly though as ApplicationModule has a lot of &amp;nbsp;features that persistence units do not. I have compared with persistence unit as in ApplicationModule configuration also we provide the database information.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In JPA we use different persistence units to define separate databases and use those persistence units when required.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Similarly here we will be defining to different application modules for two different connections. Now we will distribute the view objects accordingly.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Please see the pictures&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf5RdcVCYRZP2V7uiK31kTQFjDt9Lo8RV9We9FQ5lnSCkWJevTwNsbnHbVOVGMacZMXLuB2sz951cV1_PPsYMUhQqUytpN4aw-M6y-PJTWhWPoXYpKvqJdYGD-PlBkVYg6VJQIShR6oFo/s1600/Am.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf5RdcVCYRZP2V7uiK31kTQFjDt9Lo8RV9We9FQ5lnSCkWJevTwNsbnHbVOVGMacZMXLuB2sz951cV1_PPsYMUhQqUytpN4aw-M6y-PJTWhWPoXYpKvqJdYGD-PlBkVYg6VJQIShR6oFo/s320/Am.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;In the example I have used two databases MGR and HR&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I have configured MGR in &amp;nbsp;AppModule2 and HR in AppModule1&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Now the view objects using MGR database will be configured in AppModule2 and &amp;nbsp;view objects using HR database will &amp;nbsp;be configured in AppModule2.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc5-d1Ih5ZC2beCt48XAKmpLGLpr7EsuBqoSTQ4vysEmHEjIpK8rxPKahlwdTn1ELupMybTR6dfyxwseagoywLuR4hrQ9j3I5D7ckd_ym9IEqCHHXWM9hEnHVUSSbev9wM7RCaoTGqO88/s1600/Am1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc5-d1Ih5ZC2beCt48XAKmpLGLpr7EsuBqoSTQ4vysEmHEjIpK8rxPKahlwdTn1ELupMybTR6dfyxwseagoywLuR4hrQ9j3I5D7ckd_ym9IEqCHHXWM9hEnHVUSSbev9wM7RCaoTGqO88/s320/Am1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Now if you see the picture above you can see two separate data controls.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I have created two separate pages for separate data controls. untitled1.jspx uses AppModule1DataControl, untitled2.jspx uses AppModule2DataControl.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;I have created one button in each of the pages for navigation between two pages, and configured the navigation in unbounded task flow.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZV7QNRenvcBTrkC0QkBdvxQxLgxATP4WoDva7KT1mGBV1Anw1zSZLsVJBp6qbXykIZ4bILxXRjksnehV0Os9YQ2I0qRTsBUn2ClgaK7X7QMJlkUmnOeZS-fDxArNq0conVPKwalWIsFA/s1600/Am2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZV7QNRenvcBTrkC0QkBdvxQxLgxATP4WoDva7KT1mGBV1Anw1zSZLsVJBp6qbXykIZ4bILxXRjksnehV0Os9YQ2I0qRTsBUn2ClgaK7X7QMJlkUmnOeZS-fDxArNq0conVPKwalWIsFA/s320/Am2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Now if I run the pages you can see that In First Page Data from HR database is being displayed while navigating to second page through the button, displays data from MGR database.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6wp7QjJnY2XUOGuVy1Ud-3ogjmJyDUeDCKCL4fSeNBcWYPDxF3bbukH7XH4nAC5TDIiMmFdbiISa2ljUcsxYMq8OeBkHO-9_OuVzsOjS7cVRItP-U6jYkmjykjXMXYUr_IAU_J2dd-TM/s1600/Am3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6wp7QjJnY2XUOGuVy1Ud-3ogjmJyDUeDCKCL4fSeNBcWYPDxF3bbukH7XH4nAC5TDIiMmFdbiISa2ljUcsxYMq8OeBkHO-9_OuVzsOjS7cVRItP-U6jYkmjykjXMXYUr_IAU_J2dd-TM/s320/Am3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHjEMht9tR6wyZTxcqrav_uOvYEFb4gWfJ3s4hWmY0K6xEahY71FFKJFFbFWGPWYCqd361iIfHndlp1pWumRk_CbiVdlaNdZ_XnPS4LQUqZsrIspyMjdCZmNTKvrhz1lmCwGkDDjY_eo/s1600/Am4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHjEMht9tR6wyZTxcqrav_uOvYEFb4gWfJ3s4hWmY0K6xEahY71FFKJFFbFWGPWYCqd361iIfHndlp1pWumRk_CbiVdlaNdZ_XnPS4LQUqZsrIspyMjdCZmNTKvrhz1lmCwGkDDjY_eo/s320/Am4.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6wp7QjJnY2XUOGuVy1Ud-3ogjmJyDUeDCKCL4fSeNBcWYPDxF3bbukH7XH4nAC5TDIiMmFdbiISa2ljUcsxYMq8OeBkHO-9_OuVzsOjS7cVRItP-U6jYkmjykjXMXYUr_IAU_J2dd-TM/s1600/Am3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6wp7QjJnY2XUOGuVy1Ud-3ogjmJyDUeDCKCL4fSeNBcWYPDxF3bbukH7XH4nAC5TDIiMmFdbiISa2ljUcsxYMq8OeBkHO-9_OuVzsOjS7cVRItP-U6jYkmjykjXMXYUr_IAU_J2dd-TM/s320/Am3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;So you can easily achieve this using two different application modules for different databases.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;This feature can be achieved by different methods like using Factory Classes, setting &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: 13px; line-height: 18px; white-space: pre;&quot;&gt;JDBC_DS_NAME etc..&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: 13px; line-height: 18px; white-space: pre;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: 13px; line-height: 18px; white-space: pre;&quot;&gt;&lt;b&gt;But I wanted to use the simplest one. &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: 13px; line-height: 18px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: 13px; line-height: 18px; white-space: pre;&quot;&gt;&lt;b&gt;Please comment........ &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: 13px; line-height: 18px; white-space: pre;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: 13px; line-height: 18px; white-space: pre;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: monospace; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px; white-space: pre;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/8516873785264703217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/04/separate-database-as-well-as-table_22.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/8516873785264703217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/8516873785264703217'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/04/separate-database-as-well-as-table_22.html' title='Separate Database As Well As Table structure For Pages'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf5RdcVCYRZP2V7uiK31kTQFjDt9Lo8RV9We9FQ5lnSCkWJevTwNsbnHbVOVGMacZMXLuB2sz951cV1_PPsYMUhQqUytpN4aw-M6y-PJTWhWPoXYpKvqJdYGD-PlBkVYg6VJQIShR6oFo/s72-c/Am.PNG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-5545830532315723042</id><published>2011-04-11T17:36:00.000-07:00</published><updated>2011-04-11T17:41:49.732-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="Download"/><category scheme="http://www.blogger.com/atom/ns#" term="File"/><category scheme="http://www.blogger.com/atom/ns#" term="File Download"/><category scheme="http://www.blogger.com/atom/ns#" term="fileDownloadActionListener"/><title type='text'>File Download In ADF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;It is common requirement in many projects to have file download facility.&lt;br /&gt;
File download facility can be achieved by many means, but in 11g + versions we have one very good component &lt;br /&gt;
to handle file download facility very quickly.&lt;br /&gt;
&lt;br /&gt;
In 11g + versions we have one listener component called &lt;b&gt;fileDownloadActionListener. &lt;/b&gt;Which can be triggered from any command related components like commandButton , commandLink etc.&lt;br /&gt;
&lt;br /&gt;
It has three parameters filename, contentType, method.&lt;br /&gt;
&lt;br /&gt;
filename : It is used to display the file name in response&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTSREoF-vwuVYrt701pME1eZNG5ntii2NOQ_oDT4dg00Vr6wnuZhPPSS9V2E1CLPRo-FpwcMZ3oysB4IGloeRxHWkKfejTKA1rhnfBhKaUghtRE9JSHKB8pU31ZfCZEGMCkNhCUMPBzg/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTSREoF-vwuVYrt701pME1eZNG5ntii2NOQ_oDT4dg00Vr6wnuZhPPSS9V2E1CLPRo-FpwcMZ3oysB4IGloeRxHWkKfejTKA1rhnfBhKaUghtRE9JSHKB8pU31ZfCZEGMCkNhCUMPBzg/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
method: &amp;nbsp; The method will be present in managed bean. It is used to handle the file download related activities. Signature of this method is&lt;br /&gt;
&lt;br /&gt;
public void &amp;lt;method name&amp;gt;&amp;nbsp;(FacesContext context,&amp;nbsp;OutputStream out) throws IOException&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...... your code...&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
contentType: It is used to specify the content type.(like it is word document or pdf document etc.)&lt;br /&gt;
&lt;br /&gt;
In the below example I have used fileDownloadActionListener with commandLink.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;af:commandLink id=&quot;cl1&quot; text=&quot;#{row.fileName}&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;partialSubmit=&quot;true&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;binding=&quot;#{fileDownloadBean.downloadLink}&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:fileDownloadActionListener filename=&quot;#{row.fileName}&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; method=&quot;#{fileDownloadBean.download}&quot; &amp;gt;&amp;lt;/af:fileDownloadActionListener&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/af:commandLink&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The method referred is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;public void download(FacesContext context,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OutputStream out) throws IOException {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;File f =&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new File(this.directoryPath.getValue().toString() + &quot;/&quot; + downloadLink.getText());&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FileInputStream fis;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] b;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fis = new FileInputStream(f);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int n;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ((n = fis.available()) &amp;gt; 0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b = new byte[n];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int result = fis.read(b);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out.write(b, 0, b.length);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (result == -1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (IOException e) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; out.flush();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
So whatever file I want to download it will be downloaded using this listener. The coding type will be least one.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2diH4K1sv0sG3FbD_SdHC8Fd2KQVIffgDhdufHiWt-lw479JbhSyQ6I3UAFAlG8_NDV2g_UEWPik5v9OG4lkcGtJryyZ-nNa6LDkG2NUSQ-BJBaF1vWdZ_LG65DjSYox2WGSz0HOsPg4/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2diH4K1sv0sG3FbD_SdHC8Fd2KQVIffgDhdufHiWt-lw479JbhSyQ6I3UAFAlG8_NDV2g_UEWPik5v9OG4lkcGtJryyZ-nNa6LDkG2NUSQ-BJBaF1vWdZ_LG65DjSYox2WGSz0HOsPg4/s320/2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Please comment...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/5545830532315723042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/04/file-download-in-adf.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5545830532315723042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5545830532315723042'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/04/file-download-in-adf.html' title='File Download In ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTSREoF-vwuVYrt701pME1eZNG5ntii2NOQ_oDT4dg00Vr6wnuZhPPSS9V2E1CLPRo-FpwcMZ3oysB4IGloeRxHWkKfejTKA1rhnfBhKaUghtRE9JSHKB8pU31ZfCZEGMCkNhCUMPBzg/s72-c/1.PNG" height="72" width="72"/><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-1098662438582909805</id><published>2011-03-25T05:07:00.000-07:00</published><updated>2011-03-25T09:33:05.986-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="AM"/><category scheme="http://www.blogger.com/atom/ns#" term="AM Pooling"/><category scheme="http://www.blogger.com/atom/ns#" term="Setting Pool Parameters"/><title type='text'>Setting AM Parameters at Server Startup</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;It is always possible to set the am p[arameters like jbo.ampool.initpoolsize , jbo.dofailover etc while starting a weblogic server. It will be applicable for all the applications deployed in the server. To do this we must set the environ ment variable without tampering the default setDomainEnv.cmd or startWebLogic.cmd file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To do this I have created one custom script &lt;br /&gt;
&lt;br /&gt;
For my case the domain&#39;s bean location is D:\Oracle\Middleware\user_projects\domains\LoanDeliveryDomain\bin&lt;br /&gt;
&lt;br /&gt;
My script looks like below &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cd \&lt;br /&gt;
D:&lt;br /&gt;
cd Oracle\Middleware&lt;br /&gt;
cd user_projects\domains\LoanDeliveryDomain\bin&lt;br /&gt;
set JAVA_OPTIONS=%JAVA_OPTIONS% &lt;br /&gt;
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djbo.ampool.initpoolsize=110 &lt;br /&gt;
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djbo.ampool.minavailablesize=50 &lt;br /&gt;
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djbo.dofailover=true&lt;br /&gt;
startWebLogic.cmd&lt;br /&gt;
&lt;br /&gt;
as I am using windows environment. It should be almost same for unix environment also. &lt;br /&gt;
&lt;br /&gt;
Now if I start the server it will be automatically set during server startup &lt;br /&gt;
&lt;br /&gt;
Below is the screenshot &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi2J-chavqdNjL5zPNwatbhqCG5Scoj2uBCLDwisFPyuVMiJLthO5_vczy_jPaDkUSvVBghxRq1fuRj8xvjl_4GTz6tsbZ4JhyphenhypheniweTl39gzTRrsaEnBGrw7LtAFRbILvspyZAi8lC2JsM/s1600/server.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; r6=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi2J-chavqdNjL5zPNwatbhqCG5Scoj2uBCLDwisFPyuVMiJLthO5_vczy_jPaDkUSvVBghxRq1fuRj8xvjl_4GTz6tsbZ4JhyphenhypheniweTl39gzTRrsaEnBGrw7LtAFRbILvspyZAi8lC2JsM/s320/server.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Please add comments :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/1098662438582909805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/03/setting-am-parameters-at-server-startup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/1098662438582909805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/1098662438582909805'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/03/setting-am-parameters-at-server-startup.html' title='Setting AM Parameters at Server Startup'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi2J-chavqdNjL5zPNwatbhqCG5Scoj2uBCLDwisFPyuVMiJLthO5_vczy_jPaDkUSvVBghxRq1fuRj8xvjl_4GTz6tsbZ4JhyphenhypheniweTl39gzTRrsaEnBGrw7LtAFRbILvspyZAi8lC2JsM/s72-c/server.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-3160009549872132354</id><published>2011-03-07T18:50:00.000-08:00</published><updated>2011-03-07T23:57:18.478-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="Popup"/><category scheme="http://www.blogger.com/atom/ns#" term="Show Pop up"/><title type='text'>ADF Popup</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Like any web application it is required to show pop up window in certain cases in ADF also. In ADF it can be shown in&amp;nbsp; many ways. Like we can show popup using javascript, using taskflow using pop up component etc. Here I have discussed ADF&#39;s popup component for showing the pop up, the simplest one I think. To show popup I first made one web application with one test page. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH30OFOkE49TYBKSqfsobdifWFF9IkLJUBevUvPnhC7wSbgD1tkDFHYfQiGQsJ-fSWj490pSwzBOFu6tr9e2rtYoRtQQLKYDDYhMEr0Ea6QfLI9CWAKOiFFtvF1FY9dF4EuMpa_6ZGgFo/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH30OFOkE49TYBKSqfsobdifWFF9IkLJUBevUvPnhC7wSbgD1tkDFHYfQiGQsJ-fSWj490pSwzBOFu6tr9e2rtYoRtQQLKYDDYhMEr0Ea6QfLI9CWAKOiFFtvF1FY9dF4EuMpa_6ZGgFo/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I have added one command button. I will show the popup for buton action.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwutH9u5bXehUHJiCRO3FbonRAluyC6M02pfJA8ah4Hm9FyLEsF70cnymMuJoXezLTdqqMvGhoYkrlk9iK597kAx8knN7Ji_jAixMXafK13pdW3uC97MgqM5MD_Ti7kQ2NiOsmQBFLBog/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwutH9u5bXehUHJiCRO3FbonRAluyC6M02pfJA8ah4Hm9FyLEsF70cnymMuJoXezLTdqqMvGhoYkrlk9iK597kAx8knN7Ji_jAixMXafK13pdW3uC97MgqM5MD_Ti7kQ2NiOsmQBFLBog/s320/2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I have added one &amp;lt;af:popup&amp;gt; component in the page as shown below in the below page. Added one dialog in that popup window. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-s4siyjUdo5DVgQCIJtG0Y6dMxUu8w5d1gCcDm-epwZ05mqm2T3__rYTPC2h9Y2H5M9xpdczjghVEGKiLhgm_y0Gg4nQhvspyO19A92az9BRdCfrYuHzxLuv4G1vfIwgB4Hr-1TRqUXc/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-s4siyjUdo5DVgQCIJtG0Y6dMxUu8w5d1gCcDm-epwZ05mqm2T3__rYTPC2h9Y2H5M9xpdczjghVEGKiLhgm_y0Gg4nQhvspyO19A92az9BRdCfrYuHzxLuv4G1vfIwgB4Hr-1TRqUXc/s320/3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdVXMk1enqk4foW7RngI8dZlQL12BPqHyXq1eRCFoAkKvWEOjkfyX1Dzu4YXTAY2PQOymLFk5aKnYUsDlmW-99q2TnOcOb3AZQr6pZDvGStLd9lMyF_qv3FT-WwaiyN05VBAvgQj1aGb4/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdVXMk1enqk4foW7RngI8dZlQL12BPqHyXq1eRCFoAkKvWEOjkfyX1Dzu4YXTAY2PQOymLFk5aKnYUsDlmW-99q2TnOcOb3AZQr6pZDvGStLd9lMyF_qv3FT-WwaiyN05VBAvgQj1aGb4/s320/4.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTsipVgYx7q-DJXOewZQn-2HhmlJgDUEQQGpDzxmKVDN74UeZR6KoeqtmwNnkohJl_zIGrM1iKFKnUkGTYvOEssjx56aS2WsG429s_lBaPECvZckRs7HCA-nLqa24nsvUTyirXmsv04vo/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTsipVgYx7q-DJXOewZQn-2HhmlJgDUEQQGpDzxmKVDN74UeZR6KoeqtmwNnkohJl_zIGrM1iKFKnUkGTYvOEssjx56aS2WsG429s_lBaPECvZckRs7HCA-nLqa24nsvUTyirXmsv04vo/s320/5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now I want to show the popup window on button action so I have added &amp;lt;af:showPopupBehavior&amp;gt; inside the command button component. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6qrPLyJRpbXc2rtxzBAKhX246sLmREM0cTCg-cJ6zQvQOX4hYX3DmIHOQeT6aF6JX-R0512SaG8jCHJcljPbrK1zusYpf1ERbFmF0M8XLsP3iX02FaEbVYwv2Vxkp5QNgiyRso3BnRZ0/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6qrPLyJRpbXc2rtxzBAKhX246sLmREM0cTCg-cJ6zQvQOX4hYX3DmIHOQeT6aF6JX-R0512SaG8jCHJcljPbrK1zusYpf1ERbFmF0M8XLsP3iX02FaEbVYwv2Vxkp5QNgiyRso3BnRZ0/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBwR30UXAuMj8mOpSVkpsfulDfEPxGC_5YOEDgTkBYlO-_kejKl_mD-X5wyXF4RLNfvOGoOHhCuv3e7QD4WU2HFRoPP5oDZirV40fO4Bk2WqRiZ6j_ewxklb7XD1y8Yqpk-b0o1hmlhA0/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBwR30UXAuMj8mOpSVkpsfulDfEPxGC_5YOEDgTkBYlO-_kejKl_mD-X5wyXF4RLNfvOGoOHhCuv3e7QD4WU2HFRoPP5oDZirV40fO4Bk2WqRiZ6j_ewxklb7XD1y8Yqpk-b0o1hmlhA0/s320/7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In show popup behavior I have added the popup id and button action.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9r-Nevxc0pJJmDFF0mi9Dp9FT9Hyt3jvfQ5XYgqn2McX1gwbxrIpkk_nJu5J8CbilTc4LHUP7Kwt7hyJ9L0U2Jubq95OqIaJq6VvIyaxyTfBmPEjAAVQIDN-ixJldhQigaBYzH0bCIq4/s1600/8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;229&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9r-Nevxc0pJJmDFF0mi9Dp9FT9Hyt3jvfQ5XYgqn2McX1gwbxrIpkk_nJu5J8CbilTc4LHUP7Kwt7hyJ9L0U2Jubq95OqIaJq6VvIyaxyTfBmPEjAAVQIDN-ixJldhQigaBYzH0bCIq4/s320/8.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now if I run the page and click the button it will show the popup window. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-RyBp-N1conGlEpVruBzayIH4waNU0XDProFnhK1ZZ5XzmhAsaA79Kqtiama8j_Um_QCNvQN1OxLFDPgY5dscuKvauhyUfMN6E6VDM0_WhxXCHpMyk0QilAJsa5O0xFGV7n5e71Z2kQI/s1600/9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-RyBp-N1conGlEpVruBzayIH4waNU0XDProFnhK1ZZ5XzmhAsaA79Kqtiama8j_Um_QCNvQN1OxLFDPgY5dscuKvauhyUfMN6E6VDM0_WhxXCHpMyk0QilAJsa5O0xFGV7n5e71Z2kQI/s320/9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;This popup window can be shown from managed bean also.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/3160009549872132354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/03/adf-popup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/3160009549872132354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/3160009549872132354'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/03/adf-popup.html' title='ADF Popup'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH30OFOkE49TYBKSqfsobdifWFF9IkLJUBevUvPnhC7wSbgD1tkDFHYfQiGQsJ-fSWj490pSwzBOFu6tr9e2rtYoRtQQLKYDDYhMEr0Ea6QfLI9CWAKOiFFtvF1FY9dF4EuMpa_6ZGgFo/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-8924518941221015740</id><published>2011-03-07T04:40:00.000-08:00</published><updated>2011-03-07T07:02:43.121-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="Custom Filter"/><category scheme="http://www.blogger.com/atom/ns#" term="Custom Servlet"/><category scheme="http://www.blogger.com/atom/ns#" term="Filter"/><category scheme="http://www.blogger.com/atom/ns#" term="Servlet"/><title type='text'>Custom Filter/Servlet In ADF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Like any web application some time it is required to use custom filter/ servlet in ADF also. Here is the description of for my case. To use my custom filter I have created one Fusion Web application first.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij8vbMPtDdiQtGFNKmuds-jcCLlpdqBbi7ghPCbtzqXVxMcerR0eAnb0fl9jed0cARKyDjzNlKZMMYkjfSi731RBSe71CIQnLmJVYZVQuPRVYwsRujWvLMYux44Qut_8Bdps-8kL7sqsY/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij8vbMPtDdiQtGFNKmuds-jcCLlpdqBbi7ghPCbtzqXVxMcerR0eAnb0fl9jed0cARKyDjzNlKZMMYkjfSi731RBSe71CIQnLmJVYZVQuPRVYwsRujWvLMYux44Qut_8Bdps-8kL7sqsY/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Then I created my custom Filter named MyFilter.java. I have written my custom code in the overridden doFilter method of my custom filter. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I have used the below code in my doFilter method.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; long initialTime = (new Date()).getTime();&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filterChain.doFilter(servletRequest, servletResponse);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; long afterTime = (new Date()).getTime();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Time To Process Request:&quot;+ (afterTime-initialTime));&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBuIoydEAV6Wn4LyNRb-4SkuGKyxKc1nbpOAakDwttLM1Z0dcCoQSVUcsvRK5i0nmEfIjnWIty2UbGlRuw8D1X_l83Eh9vl732HjxPivD9zSUZW1gdmXVlD5YvnaaZGwApEnT8Lk6Criw/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBuIoydEAV6Wn4LyNRb-4SkuGKyxKc1nbpOAakDwttLM1Z0dcCoQSVUcsvRK5i0nmEfIjnWIty2UbGlRuw8D1X_l83Eh9vl732HjxPivD9zSUZW1gdmXVlD5YvnaaZGwApEnT8Lk6Criw/s320/2.PNG&quot; width=&quot;261&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here the filter is added in web.xml with filter name myCustomFilter. The screen shots are below. I want that every pages should pass through this filter. Any one can use directly &amp;lt;filter-mapping&amp;gt; also. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0w383TBLtYd_H7afo4bBb9HSwrN6vaVx7yJfglCgr0FhW84k0aQwVU2uwnhsA2Yi8QeE3eibLA7JwXmoV76WCfPdhUURvU60Pmv2-KEmJA-9cVtN36hmQj3To3RP78lJuROkAiDEdZLg/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0w383TBLtYd_H7afo4bBb9HSwrN6vaVx7yJfglCgr0FhW84k0aQwVU2uwnhsA2Yi8QeE3eibLA7JwXmoV76WCfPdhUURvU60Pmv2-KEmJA-9cVtN36hmQj3To3RP78lJuROkAiDEdZLg/s320/3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTkXBgvEeC-CRVJoMdwb0ncvjnaSNOJI6nZxY-M4RHIkVYbETsU2ubDVdku8dQaIsLJ3FOnenToIPkyCJmbhYJUdvo7uNLOE9gK4QMSuvpjibIqUb6RbMTqmVxc4AXW8Er_pO39e5oVh8/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTkXBgvEeC-CRVJoMdwb0ncvjnaSNOJI6nZxY-M4RHIkVYbETsU2ubDVdku8dQaIsLJ3FOnenToIPkyCJmbhYJUdvo7uNLOE9gK4QMSuvpjibIqUb6RbMTqmVxc4AXW8Er_pO39e5oVh8/s320/4.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now I have created one bounded task flow to design page flow from First Page to Second Page. I do not want to create the pages as page fragments. So I unselected this option. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfMkdT9GcEOVqQvkN5Ktk3WnVk3t2P59hoKNsl8Bs6tydZh92LGlH_GQ5cazsGuCz6ydDeO5viaCfabN-ztcyuYj6wknnPTQA_f9GJm-indFpcXZPKq0XcJAIqjqph_-oztz0aKbmduXI/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfMkdT9GcEOVqQvkN5Ktk3WnVk3t2P59hoKNsl8Bs6tydZh92LGlH_GQ5cazsGuCz6ydDeO5viaCfabN-ztcyuYj6wknnPTQA_f9GJm-indFpcXZPKq0XcJAIqjqph_-oztz0aKbmduXI/s320/5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
I created the pages as viewq.jspx and view2.jspx . In view1.jspx I have added one button whoose action will redirect me to second page. &lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAL5Utgw-jAhsy7r01o4HGF0Yk3K4YOf5opD28WiSoZOpqM6zEuNs-5gFp6MBlA6k9ErXtwvE9shTW3LbVwgPl_9nAVgPgxnaMtOa7VUMtQhQjBzZQsJDoQ9lDsLBpwLsBcHT-IYOpyQM/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAL5Utgw-jAhsy7r01o4HGF0Yk3K4YOf5opD28WiSoZOpqM6zEuNs-5gFp6MBlA6k9ErXtwvE9shTW3LbVwgPl_9nAVgPgxnaMtOa7VUMtQhQjBzZQsJDoQ9lDsLBpwLsBcHT-IYOpyQM/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0CMzUAYkReVFVs1mVzwG1NP9FvoQXW0hrjmhITikGCPwGzxMLSl6EhQkaflRs5BJQ6jbRyOzjVo5f2ORSE4CP-M5479YyoQIZ_jAvi-6hIVBi2QJyj3IbTQ64Pm61tqdfSq-_aLjNE5Y/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0CMzUAYkReVFVs1mVzwG1NP9FvoQXW0hrjmhITikGCPwGzxMLSl6EhQkaflRs5BJQ6jbRyOzjVo5f2ORSE4CP-M5479YyoQIZ_jAvi-6hIVBi2QJyj3IbTQ64Pm61tqdfSq-_aLjNE5Y/s320/7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilHnc4P8ggNFish_rnzlKHFUOwAQGL3MsELD0a5sB96kP6wbD6Xp7nvUOesRT4HJi5ClVuHeFcPm7L9P6TaOo76v16nYr8OSgEWRPZ00cTpX9NSobbQg8MmOTLvaVWO8Hwk-O7CyIKBpk/s1600/10.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; q6=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilHnc4P8ggNFish_rnzlKHFUOwAQGL3MsELD0a5sB96kP6wbD6Xp7nvUOesRT4HJi5ClVuHeFcPm7L9P6TaOo76v16nYr8OSgEWRPZ00cTpX9NSobbQg8MmOTLvaVWO8Hwk-O7CyIKBpk/s320/10.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvHQBnNJjYbZo41KofnVm1mUAwp8Ul9ph_bqQCi5whyphenhyphenccsU1xZpxqrXh2WkjbfxW19BudzYvlrH3yn0lKzxDm5fuKua2DJhHc7U_j9oUYwTKDmMLDC4xOFzeKqVU7AVcuG4okqagyirfs/s1600/9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; q6=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvHQBnNJjYbZo41KofnVm1mUAwp8Ul9ph_bqQCi5whyphenhyphenccsU1xZpxqrXh2WkjbfxW19BudzYvlrH3yn0lKzxDm5fuKua2DJhHc7U_j9oUYwTKDmMLDC4xOFzeKqVU7AVcuG4okqagyirfs/s320/9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Now if I run the taskflow then I can see from the console(sysout from my Custom Filter) that it is showing time to process the requests. &lt;br /&gt;
&lt;br /&gt;
The filters may be added in other ways also. This is just one example. &lt;br /&gt;
&lt;br /&gt;
Please comment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/8924518941221015740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/03/custom-filterservlet-in-adf.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/8924518941221015740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/8924518941221015740'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/03/custom-filterservlet-in-adf.html' title='Custom Filter/Servlet In ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij8vbMPtDdiQtGFNKmuds-jcCLlpdqBbi7ghPCbtzqXVxMcerR0eAnb0fl9jed0cARKyDjzNlKZMMYkjfSi731RBSe71CIQnLmJVYZVQuPRVYwsRujWvLMYux44Qut_8Bdps-8kL7sqsY/s72-c/1.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-164751979048169094</id><published>2011-02-23T01:29:00.000-08:00</published><updated>2011-03-12T10:14:50.715-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="Iterator"/><category scheme="http://www.blogger.com/atom/ns#" term="Pagination"/><title type='text'>Pagination In ADF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Pagination&amp;nbsp;is one common requirement in many projects. But in ADF 11g we have only scrollable facility available. So it becomes quiet tedious job to handle huge data.&lt;br /&gt;
&lt;br /&gt;
First create one Fusion Web Application. &lt;br /&gt;
&lt;br /&gt;
And create the ADF Business Components (I have used Employees Table of HR schema (Oracle XE))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvXdZ10JuwYdyY8iHIcU8Y_ACrKckZQXiXe79laPB3Y66mPT5I9Xmbem9YWCsUrT1eQrL-RGA8e3Ka-xGrEBphIY71N45TY4gKqnGP9w4XhDMrGLqVdaQOGTsXNXFMgzp9t8J4MwoYeJU/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvXdZ10JuwYdyY8iHIcU8Y_ACrKckZQXiXe79laPB3Y66mPT5I9Xmbem9YWCsUrT1eQrL-RGA8e3Ka-xGrEBphIY71N45TY4gKqnGP9w4XhDMrGLqVdaQOGTsXNXFMgzp9t8J4MwoYeJU/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvbUJ8mY-wMmI-iNSUcj4Bm_s-aq8ENKHgjvVTDSaLnKX0TRPCeAZEBmfYxOFRnKAvm7lRqhHLhM-2_5QCu5Gam0Gqn3g8FH9EYvdtc7W-qIIheYogpDgwcet_C8SoOvA8MTq7xqBujQU/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvbUJ8mY-wMmI-iNSUcj4Bm_s-aq8ENKHgjvVTDSaLnKX0TRPCeAZEBmfYxOFRnKAvm7lRqhHLhM-2_5QCu5Gam0Gqn3g8FH9EYvdtc7W-qIIheYogpDgwcet_C8SoOvA8MTq7xqBujQU/s320/3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now create your page. For saving time I have created One ADF Read Only Table by dragging EmployeesView1 from data control to the page.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxfrWmjQ30KD0ym82-sKhSVmHrCqGr7hJS02RCBcXha7vw6jPjejjLHh7uZ7Aptri9visK9OwvYona-A0FLwreP_RfnzFjK41gUz2Vx1YTnvn5_F108yocWFYWxNxwcpkauHhOO1U1SK0/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxfrWmjQ30KD0ym82-sKhSVmHrCqGr7hJS02RCBcXha7vw6jPjejjLHh7uZ7Aptri9visK9OwvYona-A0FLwreP_RfnzFjK41gUz2Vx1YTnvn5_F108yocWFYWxNxwcpkauHhOO1U1SK0/s320/5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOGP4yq88nquwiOnQ_MmQY4mL1CF9lUXhd04Gceh503dLVxFwQ5pANrU8JnpccXg6SlKEEnovn5f8ApU_DQYLkUYmKcCsGr968EOWP_CT-LFmtkH3Fp7GTtzbLQpko3YoVUm5jaNr8shU/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now create &amp;lt;af:iterator&amp;gt;﻿ where &amp;lt;af:table&amp;gt; tag was present . remove all the table related tags &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The complete code is below.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The iterator code is like below:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;lt;af:iterator id=&quot;i1&quot;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value=&quot;#{bindings.EmployeesView1.collectionModel}&quot;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var=&quot;row&quot;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; binding=&quot;#{pageFlowScope.testPageBean.myIterator}&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Now create one managed bean (TestPagebean.java here). I have created the bean in page flow scope.&lt;br /&gt;
&lt;br /&gt;
create the value change listener and action listener. &lt;br /&gt;
&lt;br /&gt;
The valuechange listener code will be like this :&lt;br /&gt;
&lt;br /&gt;
UIXIterator valueIterator = getMyIterator();&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!valueChangeEvent.getNewValue().equals(valueChangeEvent.getOldValue())) {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int newPage =&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Integer.parseInt(valueChangeEvent.getNewValue().toString());&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int pageStart = (newPage) * valueIterator.getRows();&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;valueIterator.setFirst(pageStart);&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AdfFacesContext.getCurrentInstance().addPartialTarget(valueIterator);&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUrfU04XkNmQahwLyft-UhmGmuJNduv6-JU1fHZ6iZoPX84ktcgVQblDGDGsIcoYnWqd6KkUefsKsLiNoRAP70Kg1dUhn_mA6Na0eL70QiUs0pRZ1Ez76hAmcEQv4q3jQaY4vlNigeKUI/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUrfU04XkNmQahwLyft-UhmGmuJNduv6-JU1fHZ6iZoPX84ktcgVQblDGDGsIcoYnWqd6KkUefsKsLiNoRAP70Kg1dUhn_mA6Na0eL70QiUs0pRZ1Ez76hAmcEQv4q3jQaY4vlNigeKUI/s320/7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivOGKo6UG3s8FXbRqApD8eLEWieKwgdGWbCCKAH4iWsJcQTMlUIa6594NI4uAd96mJmG8KbumnsdJ7F27fbNnnt08UcfJZTM0WnOg0FcBmRhNhF3vV-lZDKFYZxL0m6tbtnSEwFm5_4Q0/s1600/8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivOGKo6UG3s8FXbRqApD8eLEWieKwgdGWbCCKAH4iWsJcQTMlUIa6594NI4uAd96mJmG8KbumnsdJ7F27fbNnnt08UcfJZTM0WnOg0FcBmRhNhF3vV-lZDKFYZxL0m6tbtnSEwFm5_4Q0/s320/8.PNG&quot; width=&quot;260&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Now run the page you will get desired output. &lt;br /&gt;
&lt;br /&gt;
The complete code is below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV8d1-BKFT0DN94AZAbBD6uJRHmfH1f9oktSSLxLICHro61_xshKNn7pS3vM-t3w4nquf0c-1fIIad2_JhqysaPPCGUYORzRyDoifANSv4aElvCZhV-F9wjtMtoMJdCK4UYsYiQDMtLII/s1600/9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV8d1-BKFT0DN94AZAbBD6uJRHmfH1f9oktSSLxLICHro61_xshKNn7pS3vM-t3w4nquf0c-1fIIad2_JhqysaPPCGUYORzRyDoifANSv4aElvCZhV-F9wjtMtoMJdCK4UYsYiQDMtLII/s320/9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkVLcas3kHATlNPa3G-e-EtTn7609OzMAoYzyDNTafuO7L9JsmxEfMo-5L06bNFswk88b9k9sWFk4DVhF3LqVdIVJa0bK7YdR0UE9diDgM965y06DWjIMer6qkZjYDhZXcJBaYtgdWPBU/s1600/10.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkVLcas3kHATlNPa3G-e-EtTn7609OzMAoYzyDNTafuO7L9JsmxEfMo-5L06bNFswk88b9k9sWFk4DVhF3LqVdIVJa0bK7YdR0UE9diDgM965y06DWjIMer6qkZjYDhZXcJBaYtgdWPBU/s320/10.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje1ZYHcVo7HzlpP7BK-wMd2OQbihNWrklWhK_hLlQaY2b8NGwdsP_WwcfdrO12AvXZHLzMJmN-zk4cqa1blQ816KlAA5DSh_Ed0z4WyBpMxRPkSYbpsUbXMK4AOji0-AMfGg82vy_jE0w/s1600/11.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje1ZYHcVo7HzlpP7BK-wMd2OQbihNWrklWhK_hLlQaY2b8NGwdsP_WwcfdrO12AvXZHLzMJmN-zk4cqa1blQ816KlAA5DSh_Ed0z4WyBpMxRPkSYbpsUbXMK4AOji0-AMfGg82vy_jE0w/s320/11.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOJJod_AiI0t56wxQ-X7pnZDJY7n93YJ1cegWmNDxCnwrKYDDByqpWDTOp0ZdkAWKXRsfkPhGM9RMFf1IY0bqsI6JZ_e9uXxQ45szOidHLEkx7nPi-Wl8iBH3BqDqcc7wQQOR_8CQwxWA/s1600/12.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOJJod_AiI0t56wxQ-X7pnZDJY7n93YJ1cegWmNDxCnwrKYDDByqpWDTOp0ZdkAWKXRsfkPhGM9RMFf1IY0bqsI6JZ_e9uXxQ45szOidHLEkx7nPi-Wl8iBH3BqDqcc7wQQOR_8CQwxWA/s320/12.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiK-3bSAwJUuR32-r_FRzt-YYEGSN0ZgL0sWZMUzOHvnQRfEU5X5sXjK22MjwF5uqvDR8qMsp01yc9V0DuqsejliF4uA-eWuX2h4AZFHX3bBUhsCLjHdY8-BGUrK5LP5kaK77OgKHKhnI/s1600/13.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiK-3bSAwJUuR32-r_FRzt-YYEGSN0ZgL0sWZMUzOHvnQRfEU5X5sXjK22MjwF5uqvDR8qMsp01yc9V0DuqsejliF4uA-eWuX2h4AZFHX3bBUhsCLjHdY8-BGUrK5LP5kaK77OgKHKhnI/s320/13.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;Please add in comments for queries..............&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/164751979048169094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/02/pagination-in-adf.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/164751979048169094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/164751979048169094'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/02/pagination-in-adf.html' title='Pagination In ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvXdZ10JuwYdyY8iHIcU8Y_ACrKckZQXiXe79laPB3Y66mPT5I9Xmbem9YWCsUrT1eQrL-RGA8e3Ka-xGrEBphIY71N45TY4gKqnGP9w4XhDMrGLqVdaQOGTsXNXFMgzp9t8J4MwoYeJU/s72-c/1.PNG" height="72" width="72"/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-2399326264007137383</id><published>2011-02-17T20:11:00.000-08:00</published><updated>2011-02-17T20:12:21.504-08:00</updated><title type='text'>Executing Particular Method Before Page Loads</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Sometimes It is needed to Execute Some methods before page loads or component loads.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;These can be done in many ways like:&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;1&amp;gt;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;Using an ADF/JSF Page Phase Listener (oracle.adf.controller.v2.lifecycle.PagePhaseListener/&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; font-size: 13px;&quot;&gt;javax.faces.event.PhaseListener&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;2&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;Using a page backing bean superclass which provides an onLoad( ) method&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;3&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;Using a custom Page Controller (oracle.adf.controller.v2.lifecycle.PageController)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;4&amp;gt; Using managed bean for page&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;5&amp;gt; Using Page Def for particular page&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;6&amp;gt; Using Task Flow&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;and may be many more .. :)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma; font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;First start with simplest one : Using managed bean&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;First Create one Test Fusion Application then create the testPage.jspx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;I have created the backing bean (managed bean) at page creation time to save time for creating bindings needed. It does not matter if create managed bean and do not expose all the page components.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-_BLtNJLwg0I/TV3tui4P7NI/AAAAAAAAAFo/15CJN-5UegM/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;http://2.bp.blogspot.com/-_BLtNJLwg0I/TV3tui4P7NI/AAAAAAAAAFo/15CJN-5UegM/s320/1.PNG&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-G-RAgk1ozqw/TV3tvBYPf8I/AAAAAAAAAFs/comFOC5PTd8/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-G-RAgk1ozqw/TV3tvBYPf8I/AAAAAAAAAFs/comFOC5PTd8/s320/2.PNG&quot; style=&quot;cursor: move;&quot; width=&quot;298&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;&quot;&gt;I have written my test method which should be executed before components load.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-e6cHSbuCI3o/TV3twBjQ7fI/AAAAAAAAAFw/y9B91FyK1q4/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;http://4.bp.blogspot.com/-e6cHSbuCI3o/TV3twBjQ7fI/AAAAAAAAAFw/y9B91FyK1q4/s320/3.PNG&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;I want that the method should be executed before document loads and form loads.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;So I have called the method in both the components getter method.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-8AP1iBUclmM/TV3txEJKCKI/AAAAAAAAAF0/w_reEdQzCqE/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;http://2.bp.blogspot.com/-8AP1iBUclmM/TV3txEJKCKI/AAAAAAAAAF0/w_reEdQzCqE/s320/4.PNG&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-sS78VEhkP6c/TV3tx6LHPOI/AAAAAAAAAF4/LhFmAkKFZlk/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;http://4.bp.blogspot.com/-sS78VEhkP6c/TV3tx6LHPOI/AAAAAAAAAF4/LhFmAkKFZlk/s320/5.PNG&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Now if we run the page it will be executed before the document and form loads.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-d4rzeIBUUVs/TV3tylI2TtI/AAAAAAAAAF8/5dZTVkGuDis/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;http://2.bp.blogspot.com/-d4rzeIBUUVs/TV3tylI2TtI/AAAAAAAAAF8/5dZTVkGuDis/s320/6.PNG&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-d4rzeIBUUVs/TV3tylI2TtI/AAAAAAAAAF8/5dZTVkGuDis/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-ZDdFPHy3J2g/TV3tuF1GjxI/AAAAAAAAAFk/VYhUReybYJA/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;http://3.bp.blogspot.com/-ZDdFPHy3J2g/TV3tuF1GjxI/AAAAAAAAAFk/VYhUReybYJA/s320/7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;I will be updating the other ways also in my blog &amp;nbsp;in future.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;There may be specific scenarios where other ways should be followed (like: even before the page is hit some methods should be executed).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, verdana, arial, tahoma;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;Please comment for queries.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/2399326264007137383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/02/executing-particular-method-before-page.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/2399326264007137383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/2399326264007137383'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/02/executing-particular-method-before-page.html' title='Executing Particular Method Before Page Loads'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-_BLtNJLwg0I/TV3tui4P7NI/AAAAAAAAAFo/15CJN-5UegM/s72-c/1.PNG" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-9220566252705399171</id><published>2011-02-12T08:11:00.000-08:00</published><updated>2011-05-01T13:13:34.567-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADF"/><category scheme="http://www.blogger.com/atom/ns#" term="ADF Faces"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Using jQuery in ADF Pages</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;JQuery is one rich AJAX library. Which is very handy and very popular library used in modern web applications.&lt;br /&gt;
&lt;br /&gt;
It gives a very rich look and feel also. For detail study of JQuery you can refer the site&lt;br /&gt;
&lt;a href=&quot;http://jquery.com/&quot;&gt;JQuery&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
We can easily use JQuery in ADF pages also. But there is one problem regarding this is that for many ADF components we can&#39;t use components id to be used in JQuery as the ids are rendered like &amp;lt;id provided&amp;gt;::content and JQuery would not allow &quot;:&quot; like special characters in $(&quot;#id&quot;) statement.&lt;br /&gt;
&lt;br /&gt;
So I have taken a different approach here.&lt;br /&gt;
&lt;br /&gt;
First create one Fusion Web Project. In the Webcontent create one folder to put the jquery javscripts in the folder.You can download the jquery javascripts from JQuery website.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdBg7PBjEgumv9XGOdmgqHxIGtNyVXtuxauivHUO1qVc-fe5hARjLsmvKzjLhJ2pSW8d-lPMEYFjei9jQTNSxBkEaXGRHPgiqgPtRtRaEqchW0qJcP1IKeqkRiBMi3dsfBmH_MZCKFm0Q/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdBg7PBjEgumv9XGOdmgqHxIGtNyVXtuxauivHUO1qVc-fe5hARjLsmvKzjLhJ2pSW8d-lPMEYFjei9jQTNSxBkEaXGRHPgiqgPtRtRaEqchW0qJcP1IKeqkRiBMi3dsfBmH_MZCKFm0Q/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdPgQk_6GY558I_A3O-uuqcduh2JNAGJKPjRsCt9kNPbMxIq7K1f5Utg8Bc25Nin98MpfrcoQ3BlPm4cCXOzv63M8ZDKCKeNjYuVvwVnkA8fJrfIvDZCg_UkWUZ3RlsIysQMEeKCCvFHs/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;131&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdPgQk_6GY558I_A3O-uuqcduh2JNAGJKPjRsCt9kNPbMxIq7K1f5Utg8Bc25Nin98MpfrcoQ3BlPm4cCXOzv63M8ZDKCKeNjYuVvwVnkA8fJrfIvDZCg_UkWUZ3RlsIysQMEeKCCvFHs/s320/2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Now create one web page where to use the JQuery&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYkRZei3rjt1PddKHGWzzt3mIIJqIYOIYkNeTS3sqq4HsBrKTNFKjPg9BgaTeuf1BaGgx6P87PnJUKwY824cqk-UzTGpV32U1Id3qmxJ6Tzykf90eo5jF8Hus9SlCRy3ypNlUzCGDYr0s/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYkRZei3rjt1PddKHGWzzt3mIIJqIYOIYkNeTS3sqq4HsBrKTNFKjPg9BgaTeuf1BaGgx6P87PnJUKwY824cqk-UzTGpV32U1Id3qmxJ6Tzykf90eo5jF8Hus9SlCRy3ypNlUzCGDYr0s/s320/3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Add resource tag in the page &amp;lt;af:resource type=&quot;javascript&quot; source=&quot;/&amp;lt;directory name&amp;gt;/jquery-1.x.min.js&quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIBwLgkh80JvjSpKYr8wPti_vl0tzjH7-s5_VRH9aS_N8b6eqbFdeXT4wStZrPNWyowzEn9Us28BnxYfoUMWe8-vyqCkK-iOx_KXaKOt1UQ3vsNcFSfNgRA2ld5SzVdK_5tZbBOS0c3fk/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIBwLgkh80JvjSpKYr8wPti_vl0tzjH7-s5_VRH9aS_N8b6eqbFdeXT4wStZrPNWyowzEn9Us28BnxYfoUMWe8-vyqCkK-iOx_KXaKOt1UQ3vsNcFSfNgRA2ld5SzVdK_5tZbBOS0c3fk/s320/4.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEC_BivYc7w6N_HOglO7mX3IRHdol2ch6HlDC0ScwUdq2b1grxen6UCUXBEhyphenhyphenqkvZy9nnGavV4FfgyKw16KG7xl6sN6blCrAsb5bcPfPffvjIsRupRvYRaxECxwr1o9dtMI677mF1KYc0/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEC_BivYc7w6N_HOglO7mX3IRHdol2ch6HlDC0ScwUdq2b1grxen6UCUXBEhyphenhyphenqkvZy9nnGavV4FfgyKw16KG7xl6sN6blCrAsb5bcPfPffvjIsRupRvYRaxECxwr1o9dtMI677mF1KYc0/s320/5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuEUI1nnpFqGCeFpXK327VM3VxHBLxHydgcWm2qGqC_GOGZK42bKjVT8YmYwF94Sw61_LwRGOUcmTbpUMdQS7zS8rWP5GRD2Yl7fncut_i0Y0KAyEbLu8hwQpTiPblLW0kHQmej62HPdw/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuEUI1nnpFqGCeFpXK327VM3VxHBLxHydgcWm2qGqC_GOGZK42bKjVT8YmYwF94Sw61_LwRGOUcmTbpUMdQS7zS8rWP5GRD2Yl7fncut_i0Y0KAyEbLu8hwQpTiPblLW0kHQmej62HPdw/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now switch to the Source view instead of design view.&lt;br /&gt;
&lt;br /&gt;
and add your javascript code like below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;af:resource type=&quot;javascript&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;function showInput() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ($(&quot;input[name=it1]&quot;).val() != null) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (($(&quot;input[name=it1]&quot;).val().length &amp;amp;gt; 3) &amp;amp;&amp;amp; ($(&quot;input[name=it1]&quot;).val().length &amp;amp;lt; 6)) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(&quot;input[name=it1]&quot;).css(&quot;color&quot;, &quot;red&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (($(&quot;input[name=it1]&quot;).val().length &amp;gt;= 6) &amp;amp;&amp;amp; ($(&quot;input[name=it1]&quot;).val().length &amp;amp;lt; 9 )){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(&quot;input[name=it1]&quot;).css(&quot;color&quot;, &quot;blue&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(&quot;input[name=it1]&quot;).css(&quot;color&quot;, &quot;green&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/af:resource&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBQIT7tJymw5146m5bSuNsH67NZ_VTAL0PTIBtCahMS5Lp93bn-Ti2TaEom1BAVDCTbyywRGRzaPPs62um8OuMXSB8uqw2pIwMJokdjYFwam6xmLRFAbj8E-2UNJPuCRW5xSCQ3XfC9Uk/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBQIT7tJymw5146m5bSuNsH67NZ_VTAL0PTIBtCahMS5Lp93bn-Ti2TaEom1BAVDCTbyywRGRzaPPs62um8OuMXSB8uqw2pIwMJokdjYFwam6xmLRFAbj8E-2UNJPuCRW5xSCQ3XfC9Uk/s320/7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here in the above code if the length is below 4 or greater than or equal 9 then the text color will be green otherwise it will show red or blue according to condition.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The complete code is here&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;lt;jsp:root xmlns:jsp=&quot;http://java.sun.com/JSP/Page&quot; version=&quot;2.1&quot;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:f=&quot;http://java.sun.com/jsf/core&quot;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:h=&quot;http://java.sun.com/jsf/html&quot;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:af=&quot;http://xmlns.oracle.com/adf/faces/rich&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;jsp:directive.page contentType=&quot;text/html;charset=UTF-8&quot;/&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;f:view&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;af:document id=&quot;d1&quot; title=&quot;My JQuery Test Page&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:resource type=&quot;javascript&quot; source=&quot;/js/jquery-1.4.4.min.js&quot;/&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:resource type=&quot;javascript&quot;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source=&quot;/js/jquery-ui-1.8.9.custom.min.js&quot;/&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:resource type=&quot;javascript&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;function showInput() {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ($(&quot;input[name=it1]&quot;).val() != null) {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (($(&quot;input[name=it1]&quot;).val().length &amp;amp;gt; 3) &amp;amp;&amp;amp; ($(&quot;input[name=it1]&quot;).val().length &amp;amp;lt; 6)) {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(&quot;input[name=it1]&quot;).css(&quot;color&quot;, &quot;red&quot;);&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (($(&quot;input[name=it1]&quot;).val().length &amp;gt;= 6) &amp;amp;&amp;amp; ($(&quot;input[name=it1]&quot;).val().length &amp;amp;lt; 9 )){&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(&quot;input[name=it1]&quot;).css(&quot;color&quot;, &quot;blue&quot;);&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(&quot;input[name=it1]&quot;).css(&quot;color&quot;, &quot;green&quot;);&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/af:resource&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:form id=&quot;f1&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:panelStretchLayout id=&quot;psl1&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;f:facet name=&quot;top&quot;/&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;f:facet name=&quot;center&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- id=&quot;af_one_column_header_and_footer_scroll&quot; &amp;nbsp; --&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:panelGroupLayout layout=&quot;scroll&quot; id=&quot;pgl1&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:inputText label=&quot;Input Value&quot; id=&quot;it1&quot;&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;af:clientListener method=&quot;showInput&quot; type=&quot;keyPress&quot;/&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/af:inputText&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/af:panelGroupLayout&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/f:facet&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;f:facet name=&quot;bottom&quot;/&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/af:panelStretchLayout&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/af:form&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/af:document&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/f:view&amp;gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&amp;lt;/jsp:root&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now if you run the page you will see the text color change o entering value ,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;like below :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT3erVggld11YXYLWy4eWtls1SJMgHRDVELZi5RgqmgisCzRE7kZuDI6ndHX4KPlnX2CD84PSCYnbxu1lxDL3XFTgIHxqnTEDYvyVbhrbBPTGOt9t2dBw1HKaDgzzePtn8eB9hViIQG3s/s1600/11.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT3erVggld11YXYLWy4eWtls1SJMgHRDVELZi5RgqmgisCzRE7kZuDI6ndHX4KPlnX2CD84PSCYnbxu1lxDL3XFTgIHxqnTEDYvyVbhrbBPTGOt9t2dBw1HKaDgzzePtn8eB9hViIQG3s/s320/11.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDWp9PhhvmZua_AF1OLYHcdH7UAF8eWowJ7Ckmm_5lHG-HU-fCOGHZSlzybaAy0gjb0VXSxdJVQoLE15CTRJ3kplhPfcWzAQVa5EPQrwZLWOXOGRai_Jvb_HjGvW9SNrJIkao5GjogzWA/s1600/8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDWp9PhhvmZua_AF1OLYHcdH7UAF8eWowJ7Ckmm_5lHG-HU-fCOGHZSlzybaAy0gjb0VXSxdJVQoLE15CTRJ3kplhPfcWzAQVa5EPQrwZLWOXOGRai_Jvb_HjGvW9SNrJIkao5GjogzWA/s320/8.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj_vfsp-1cZYcohxV4sv4QdRx7EprdlcmBgxkETROz8MNp3baXUfwN7GIL_KKMp3mbQQzRFzamSw3bWCGu_xOHauC7Tl0_vWsWdf5QWZycDvAeYpY5ASEfgbvfjQPpAGMRbP9_AAK9lfM/s1600/9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj_vfsp-1cZYcohxV4sv4QdRx7EprdlcmBgxkETROz8MNp3baXUfwN7GIL_KKMp3mbQQzRFzamSw3bWCGu_xOHauC7Tl0_vWsWdf5QWZycDvAeYpY5ASEfgbvfjQPpAGMRbP9_AAK9lfM/s320/9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx70aStwqqw8DKjz1YpxhFSCStKOjldCSfacgeNbGRztd950yUuXh1mnyZ-_Qc7hJn3yQZQ1UGa7SPKfQ7Eof8txyeeoBc2zss6Vp8DWpEFl9Pf5Z89DuTllFEZBSHSJMVoqpZyuWObiA/s1600/10.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx70aStwqqw8DKjz1YpxhFSCStKOjldCSfacgeNbGRztd950yUuXh1mnyZ-_Qc7hJn3yQZQ1UGa7SPKfQ7Eof8txyeeoBc2zss6Vp8DWpEFl9Pf5Z89DuTllFEZBSHSJMVoqpZyuWObiA/s1600/10.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Please add comments for further queries .. :)&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/9220566252705399171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/02/using-jquery-in-adf-pages.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/9220566252705399171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/9220566252705399171'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/02/using-jquery-in-adf-pages.html' title='Using jQuery in ADF Pages'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdBg7PBjEgumv9XGOdmgqHxIGtNyVXtuxauivHUO1qVc-fe5hARjLsmvKzjLhJ2pSW8d-lPMEYFjei9jQTNSxBkEaXGRHPgiqgPtRtRaEqchW0qJcP1IKeqkRiBMi3dsfBmH_MZCKFm0Q/s72-c/1.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-1340295316700514114</id><published>2011-02-03T18:14:00.000-08:00</published><updated>2011-02-06T02:37:15.423-08:00</updated><title type='text'>Creating ADF Poll</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Creating ADF poll is one of the easiest thing in ADF.&lt;br /&gt;
&lt;div&gt;Here you have to just mention the poll interval just and it will call the poll in that interval continuously.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;To create ADF Poll (af:poll) just create one Fusion Web Application and Create one Fusion Web Project.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;In that project create one managed bean to create the poll listener method.&lt;/div&gt;&lt;div&gt;For me it is&amp;nbsp;CallPollBean.java.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPxGaIimnrO8wOsuSlFDX6z0_Q9Mi-V8DAH2F4USlatWVoTtiaEqf-CRtgWEjLlIhI-8bbDT84F_La-F7ilE51psmtEXaqMkjp8qN9GTatZHLKBtvIByxlldut7wN-Q5HSuGey7J9VIEM/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPxGaIimnrO8wOsuSlFDX6z0_Q9Mi-V8DAH2F4USlatWVoTtiaEqf-CRtgWEjLlIhI-8bbDT84F_La-F7ilE51psmtEXaqMkjp8qN9GTatZHLKBtvIByxlldut7wN-Q5HSuGey7J9VIEM/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now create one Poll Listener method,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;For me it is :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public void callPoll(PollEvent pollEvent) {&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Add event code here...&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println(&quot;Poll Called&quot;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DateFormat formatter = new SimpleDateFormat(&quot;dd/MM/yy HH:mm:SS&quot;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println(formatter.format(new Date()));&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now create one JSF page.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Create af:poll component in the page.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;For me the component is like below:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;&amp;lt;af:poll id=&quot;p1&quot; interval=&quot;60000&quot; pollListener=&quot;#{callPoll.callPoll}&quot;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; immediate=&quot;true&quot; rendered=&quot;true&quot;/&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now if you run the page you will see that the callPoll method is being called at an interval of 1 minute.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The interval is in milli second format.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
In&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, verdana, sans-serif;&quot;&gt;11.1.1.4 (JDev 11g PS3) release there is one extra property timeout which is set to default 10minutes (timeout=&quot;600000 &quot;),&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, verdana, sans-serif;&quot;&gt;you can change the timeout as per needed for infinite poll use timeout=&quot;-1&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, verdana, sans-serif; font-size: 11px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, verdana, sans-serif; font-size: 11px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/1340295316700514114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/02/creating-adf-poll.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/1340295316700514114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/1340295316700514114'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/02/creating-adf-poll.html' title='Creating ADF Poll'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPxGaIimnrO8wOsuSlFDX6z0_Q9Mi-V8DAH2F4USlatWVoTtiaEqf-CRtgWEjLlIhI-8bbDT84F_La-F7ilE51psmtEXaqMkjp8qN9GTatZHLKBtvIByxlldut7wN-Q5HSuGey7J9VIEM/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-5268276988502425802</id><published>2011-02-03T12:02:00.000-08:00</published><updated>2011-02-05T09:44:46.468-08:00</updated><title type='text'>Stop Execution Of View Object at First Load of Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This can be done in many ways.&lt;br /&gt;
&lt;br /&gt;
I am going through one simple way without creating managed bean or using task flow.&lt;br /&gt;
&lt;br /&gt;
First Create the Fusion Web Application.&lt;br /&gt;
Then create the ADF Business Components to create Entity Object, View Object and Application Module in &amp;nbsp;Model project&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2iFxKlCUwBzPwa85jy5mhs1rp1KAbNn0nOYlK9SrooMP3AiTtYBy_YOgqn8Zrr0GeAGd2icw5Ji4cQ_f0xeQef-Js0tSRFrq8NuVy7zDVRjmP0a3xto8oeBKXwOt4vN5DPtiMfZ8LxQc/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2iFxKlCUwBzPwa85jy5mhs1rp1KAbNn0nOYlK9SrooMP3AiTtYBy_YOgqn8Zrr0GeAGd2icw5Ji4cQ_f0xeQef-Js0tSRFrq8NuVy7zDVRjmP0a3xto8oeBKXwOt4vN5DPtiMfZ8LxQc/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP0XN1hjmXjwXMq0X4HME9l4E3Y1NzCjrP1BqTkQN2NUywXXMxxOU7FsAylnNY_7WGd3d-ICW-UD74ifG_6eRYDPP_BKpvkY5PMqYj1Mib_Kq3rcLZ0N3d4EmW0GAkXPXp2pIoqP3BO6Y/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP0XN1hjmXjwXMq0X4HME9l4E3Y1NzCjrP1BqTkQN2NUywXXMxxOU7FsAylnNY_7WGd3d-ICW-UD74ifG_6eRYDPP_BKpvkY5PMqYj1Mib_Kq3rcLZ0N3d4EmW0GAkXPXp2pIoqP3BO6Y/s320/2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now create the page to show the table data.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmsTmT9K4OTOR-irWhLxrBHYWdRcjKJWVc96dVl2tbj1BB6-GSZtE9nKTXBP9Bhb6W897PSSlY3BFFYCfRU6zH_45gZVoCH5j6d_ghDj4T5mtWTTYkuWpRwWUX5DSapXceJfZgRstFd74/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmsTmT9K4OTOR-irWhLxrBHYWdRcjKJWVc96dVl2tbj1BB6-GSZtE9nKTXBP9Bhb6W897PSSlY3BFFYCfRU6zH_45gZVoCH5j6d_ghDj4T5mtWTTYkuWpRwWUX5DSapXceJfZgRstFd74/s320/4.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVOn1jLDX3jAAjyQMFDuRoGzjyJ_44g-eTg8zzD5aPqOz449ZJDBHmQJ0yKz_YffUTmLuy-X1XXNRVQWf8bf82F-LhyphenhyphenDIxFfIXfPY6Y1Y2580lBKZHWPVwYNDQ4Oq8tvWmtCHeiceMM-c/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVOn1jLDX3jAAjyQMFDuRoGzjyJ_44g-eTg8zzD5aPqOz449ZJDBHmQJ0yKz_YffUTmLuy-X1XXNRVQWf8bf82F-LhyphenhyphenDIxFfIXfPY6Y1Y2580lBKZHWPVwYNDQ4Oq8tvWmtCHeiceMM-c/s320/5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Now if you run the page you will see that the VO is executed on First Page Load and it is showing data in table.&lt;br /&gt;
&lt;br /&gt;
To stop that first create the &amp;lt;VOName&amp;gt;ViewObjectImpl class for me it is&amp;nbsp;EmployeesViewObjectImpl.java&lt;br /&gt;
&lt;br /&gt;
in this class override the method&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;b&gt;&amp;nbsp;protected void executeQueryForCollection(Object object, Object[] object2,&amp;nbsp;int i)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
use the below code to override.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;@Override&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void executeQueryForCollection(Object object, Object[] object2,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (counter &amp;gt; 0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super.executeQueryForCollection(object, object2, i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;counter = counter + 1;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR2BAiRv9TqzVuWaWYmag3uT2WR8Hktwsqg31uetSSWgQ1SIVARz9X3w-eQ0Q528EuxpmXCoCCKYzXpGCg9BR_M94awEfBYzqO2WCfQbFQfrmBAVeffkdAHfKrAlx8ivglrzpTpElCdp0/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR2BAiRv9TqzVuWaWYmag3uT2WR8Hktwsqg31uetSSWgQ1SIVARz9X3w-eQ0Q528EuxpmXCoCCKYzXpGCg9BR_M94awEfBYzqO2WCfQbFQfrmBAVeffkdAHfKrAlx8ivglrzpTpElCdp0/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR2BAiRv9TqzVuWaWYmag3uT2WR8Hktwsqg31uetSSWgQ1SIVARz9X3w-eQ0Q528EuxpmXCoCCKYzXpGCg9BR_M94awEfBYzqO2WCfQbFQfrmBAVeffkdAHfKrAlx8ivglrzpTpElCdp0/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR2BAiRv9TqzVuWaWYmag3uT2WR8Hktwsqg31uetSSWgQ1SIVARz9X3w-eQ0Q528EuxpmXCoCCKYzXpGCg9BR_M94awEfBYzqO2WCfQbFQfrmBAVeffkdAHfKrAlx8ivglrzpTpElCdp0/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6T2E-mURXP0NJRI8qt9N9JmOlT4IIjHxlEiO9ZoUdmUVN7W9cudEbmjPYfJHwGRV3ayJ5wYjLrNE2cDTR0XM7JffAX34iM9xUCOa2nQS3dqBdXtqyNhVwpzcWmGZx_mU7FVNI5xvAqnI/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6T2E-mURXP0NJRI8qt9N9JmOlT4IIjHxlEiO9ZoUdmUVN7W9cudEbmjPYfJHwGRV3ayJ5wYjLrNE2cDTR0XM7JffAX34iM9xUCOa2nQS3dqBdXtqyNhVwpzcWmGZx_mU7FVNI5xvAqnI/s320/7.PNG&quot; width=&quot;281&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4MBAh4KhyphenhyphenLG3yqn87BEr1w2az3m612eZQtSzBl7IYC4U7jV-NR3cW8TNZ7fj_vJLzrT5XpacakI8CMNtFYxoOLLRdACe3OBQCWoc7lVRZfcVYELWmYoOgEaM_thlpSctYvLIBPDQHqzw/s1600/hi.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4MBAh4KhyphenhyphenLG3yqn87BEr1w2az3m612eZQtSzBl7IYC4U7jV-NR3cW8TNZ7fj_vJLzrT5XpacakI8CMNtFYxoOLLRdACe3OBQCWoc7lVRZfcVYELWmYoOgEaM_thlpSctYvLIBPDQHqzw/s320/hi.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now if you run the page you will not be able to see the data. On Execute Button Click the data can be shown.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdxDCyE0W6WW7psDjC52dsAqvYQ_f7cGujbH9qRuQoFzaiaKRh-9dyG9jbfMjN075Z-WoRAk3ucANlKNfKIyGQp4DNoPwDw80ls5h8sETQExd_tCDbZA_FcmQl9v8K22nNdrn2_FJHQ38/s1600/10.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdxDCyE0W6WW7psDjC52dsAqvYQ_f7cGujbH9qRuQoFzaiaKRh-9dyG9jbfMjN075Z-WoRAk3ucANlKNfKIyGQp4DNoPwDw80ls5h8sETQExd_tCDbZA_FcmQl9v8K22nNdrn2_FJHQ38/s320/10.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO1dvfj8WhhQRrQBq8NQIkNOTeDEbkM3gEO7qP0V8L7lk1l_lA6LhxjGnGCwLDPyehLMTS8-xOOViE1JBtCv3mgZWBgHGURoIvhC0nMaNz1Ymoa63sn8Ncz2taey1OSXA_fl3EXlO90c4/s1600/11.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO1dvfj8WhhQRrQBq8NQIkNOTeDEbkM3gEO7qP0V8L7lk1l_lA6LhxjGnGCwLDPyehLMTS8-xOOViE1JBtCv3mgZWBgHGURoIvhC0nMaNz1Ymoa63sn8Ncz2taey1OSXA_fl3EXlO90c4/s320/11.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsCJSMqZWkQsKEpjYDP0MpWxhqzR15VSJJUH4qNBZbxqECpOY9ea9K5wSsU5cm6j14CfjpfdHi2zuBRDxtZZqpHhd32Re9ZqJqgXmtFaOgD3ETttI0rsTfwr1tRIFS5OwglcJqXMUc1nY/s1600/12.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsCJSMqZWkQsKEpjYDP0MpWxhqzR15VSJJUH4qNBZbxqECpOY9ea9K5wSsU5cm6j14CfjpfdHi2zuBRDxtZZqpHhd32Re9ZqJqgXmtFaOgD3ETttI0rsTfwr1tRIFS5OwglcJqXMUc1nY/s320/12.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;&quot;&gt;For further queries you can add comment on this blog.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/5268276988502425802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/02/stop-execution-of-view-object-at-first.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5268276988502425802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5268276988502425802'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/02/stop-execution-of-view-object-at-first.html' title='Stop Execution Of View Object at First Load of Page'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2iFxKlCUwBzPwa85jy5mhs1rp1KAbNn0nOYlK9SrooMP3AiTtYBy_YOgqn8Zrr0GeAGd2icw5Ji4cQ_f0xeQef-Js0tSRFrq8NuVy7zDVRjmP0a3xto8oeBKXwOt4vN5DPtiMfZ8LxQc/s72-c/1.PNG" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-8871062798231263153</id><published>2011-02-01T21:04:00.000-08:00</published><updated>2011-02-01T21:09:43.772-08:00</updated><title type='text'>Favicon Icon In ADF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;To create Favicon Icon for Your ADF application without changing context root, you can follow the following steps.&lt;br /&gt;
&lt;br /&gt;
Place the favicon.ico in your Webcontent root. &lt;br /&gt;
&lt;br /&gt;
For me it is like FaviconViewController\public_html&lt;br /&gt;
&lt;br /&gt;
Refresh Your ViewController project it will show favicon.ico in WebContent section as shown in picture.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwtQIlO5l2QgzcMUS7B9cW0cwqyBawDglZRxALs1eWIV_Jvo3KSc2SI1OC0Iq5RRD79o4IpAPmnxl5nrbFsUc168hziwV_75y7ZOh68La2c1GjFTJtx_HTJGjlQUg15BYX0hBQXJUB5SM/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwtQIlO5l2QgzcMUS7B9cW0cwqyBawDglZRxALs1eWIV_Jvo3KSc2SI1OC0Iq5RRD79o4IpAPmnxl5nrbFsUc168hziwV_75y7ZOh68La2c1GjFTJtx_HTJGjlQUg15BYX0hBQXJUB5SM/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Now create one jspx page that will use the favicon.ico&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2O2J_sedw4qOWgAsyNanES0uxCFnamnjlly4KMFE-Vgv6Y0ttrXdVSGKYzxC19nn_MkFP24i86fayXD6n3Z2fo9gTxCq6ypbBIt3JLr76kFqODjqW17lKGCS8ZfR-fiJYKDODfX8x7b4/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2O2J_sedw4qOWgAsyNanES0uxCFnamnjlly4KMFE-Vgv6Y0ttrXdVSGKYzxC19nn_MkFP24i86fayXD6n3Z2fo9gTxCq6ypbBIt3JLr76kFqODjqW17lKGCS8ZfR-fiJYKDODfX8x7b4/s320/2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Right Click the af:document in structure window and enable the metaContainer facet as shown in the picture.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR_3V-shtBND1Np1BVQuRyF9kkM05Bw_wWOy4xUdGD6DwKgKx3H0NwSfgpwZocqZdTJ8o3m9Lz4gzRlUVczKrAb3i0sCgMAFlUXpaALJbWodFkr0nOnUYMuLhXufiSD7bthH8YmMQ0Yoc/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR_3V-shtBND1Np1BVQuRyF9kkM05Bw_wWOy4xUdGD6DwKgKx3H0NwSfgpwZocqZdTJ8o3m9Lz4gzRlUVczKrAb3i0sCgMAFlUXpaALJbWodFkr0nOnUYMuLhXufiSD7bthH8YmMQ0Yoc/s320/3.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Inside metaContainer facet create one af:outputText as shown in picture.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK7QNEbOqol62uBZl05b0x9OtMjvCDc5mfQ7X2LeAHhndKra525XQXVFTEcUhgKAF05f99-7iW_6lBGrYkRjwuD1eFYcPrX0BoLyz9agVK27ud4ssAtRc0j-cyny3zGJKHuhXhtC7WLwg/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK7QNEbOqol62uBZl05b0x9OtMjvCDc5mfQ7X2LeAHhndKra525XQXVFTEcUhgKAF05f99-7iW_6lBGrYkRjwuD1eFYcPrX0BoLyz9agVK27ud4ssAtRc0j-cyny3zGJKHuhXhtC7WLwg/s320/4.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAbEK0tR6_Hu-q4qUf6jMlZJ2rMZqqeuKeXf0QxkBtDFLXf5PZZquB9ojRpru5yB0By_UhSBYxX7N-RWzTe5nbP1RmKEPK4YPBoLFiRck1gmTHINOH0p5XJulLkiEg9iS9IlvAn_iYVHY/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAbEK0tR6_Hu-q4qUf6jMlZJ2rMZqqeuKeXf0QxkBtDFLXf5PZZquB9ojRpru5yB0By_UhSBYxX7N-RWzTe5nbP1RmKEPK4YPBoLFiRck1gmTHINOH0p5XJulLkiEg9iS9IlvAn_iYVHY/s320/5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Put the value of the outputText&lt;br /&gt;
as &lt;br /&gt;
&amp;lt;link rel=&#39;SHORTCUT ICON&#39; href=&#39;#{facesContext.externalContext.requestContextPath}/favicon.ico&#39;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyqCWQp35Sd_EHHyrGt2ME2Dz08MbUUYx8A5XlXGoydQhbtHqMH0v16or5PLXWUU6-bkfwh5kwpjPq_IsHTcCny9o47d_jYEGs_YO7aOPlmqM8I3WgumAy4MHHvwHT231xtClTt7qiQ98/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyqCWQp35Sd_EHHyrGt2ME2Dz08MbUUYx8A5XlXGoydQhbtHqMH0v16or5PLXWUU6-bkfwh5kwpjPq_IsHTcCny9o47d_jYEGs_YO7aOPlmqM8I3WgumAy4MHHvwHT231xtClTt7qiQ98/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwEen_0RJet9dR_0EPAyjg_tdiRSSwgmpM3hM1Ko98Y8rBbaY2eI4IOJcn0bU-Vohxv8YjMjPacB3nb4sk3Yn0mwBTUCo-r2mAaMi4YcRGYP-ym0Me2gYH5rdCLIgzrhYMZ0A-6Y9nxro/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;39&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwEen_0RJet9dR_0EPAyjg_tdiRSSwgmpM3hM1Ko98Y8rBbaY2eI4IOJcn0bU-Vohxv8YjMjPacB3nb4sk3Yn0mwBTUCo-r2mAaMi4YcRGYP-ym0Me2gYH5rdCLIgzrhYMZ0A-6Y9nxro/s320/7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
set the escape property of the outputText to false. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVaMS4Dx3N0J05BsDJ993B1hmW00tRvL4IEQmCi_nr5YdAPz7ukqlTXkavUJZ2mAQARv69uzfKRUEUow0smYWtdgHx_FjvzWwF_F097isVwTG-VoIMuxhYlbQczt3jKd1m_wSKXCgEU8Y/s1600/8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;231&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVaMS4Dx3N0J05BsDJ993B1hmW00tRvL4IEQmCi_nr5YdAPz7ukqlTXkavUJZ2mAQARv69uzfKRUEUow0smYWtdgHx_FjvzWwF_F097isVwTG-VoIMuxhYlbQczt3jKd1m_wSKXCgEU8Y/s320/8.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Now run your page you will be able to see the favicon in supported browsers.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmiAXl04fVenkMd-WonNcVf7Ja1sc7KInRLuwZw5zZxQOeCZQG94IF_E-XZ2332KZG9stzQF8xlLqzjnZlIajnvt8Al-e4uNq9qw1V4MpQHEbYR9wS_99Jzo3KE_-uXr6EwIqcjQaX8SM/s1600/9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmiAXl04fVenkMd-WonNcVf7Ja1sc7KInRLuwZw5zZxQOeCZQG94IF_E-XZ2332KZG9stzQF8xlLqzjnZlIajnvt8Al-e4uNq9qw1V4MpQHEbYR9wS_99Jzo3KE_-uXr6EwIqcjQaX8SM/s320/9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Please comment in comment section for any queries or suggestion.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Favicon can be added in other ways also..&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/8871062798231263153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/02/favicon-icon-in-adf.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/8871062798231263153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/8871062798231263153'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/02/favicon-icon-in-adf.html' title='Favicon Icon In ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwtQIlO5l2QgzcMUS7B9cW0cwqyBawDglZRxALs1eWIV_Jvo3KSc2SI1OC0Iq5RRD79o4IpAPmnxl5nrbFsUc168hziwV_75y7ZOh68La2c1GjFTJtx_HTJGjlQUg15BYX0hBQXJUB5SM/s72-c/1.PNG" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-407497904632622451</id><published>2011-02-01T11:03:00.000-08:00</published><updated>2011-02-01T12:06:54.443-08:00</updated><title type='text'>Showing Data Based on List Of Values And Bind Variables</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;Create one Fusion Web Application with Model and View Controller projects.&lt;br /&gt;
&lt;br /&gt;
Create ADF Businesss Components. &lt;br /&gt;
&lt;br /&gt;
Like below I have created, &lt;br /&gt;
&lt;br /&gt;
One HRApplication is created with HRModel and HRViewController projects. &lt;br /&gt;
&lt;br /&gt;
Then created the entities(Employees, Departments) from Employees and Departments tables.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihZyltyq3UPpY6XsN71cgYE6CG1AX_qx1I8N2boSaTwOeVZVmTc4sTspEmilqg4r2-3GTBIWCOvwSXN8Gq1rc2UTCViRzWqgE8Z8nPlxknJVXrQ99Iw1Ry3bGvHn8KgOCLtmzjYMVSZi8/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihZyltyq3UPpY6XsN71cgYE6CG1AX_qx1I8N2boSaTwOeVZVmTc4sTspEmilqg4r2-3GTBIWCOvwSXN8Gq1rc2UTCViRzWqgE8Z8nPlxknJVXrQ99Iw1Ry3bGvHn8KgOCLtmzjYMVSZi8/s320/1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Then created the updatable view objects.(EmployeesViewObject,DepartmentsViewObject).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-OQCEodoE0x3viFTXaBery5fBRQfpTbmccPChDEhIrcNDMnW9Px3G_h4dQ0wlmlLfBOiCtBBfQoVXGUxUVdowK8SHWs1sYYnmo-mTnzZRF7JBR4IcRMrCKbpj61ppVT0EONUuRY0sJ8M/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-OQCEodoE0x3viFTXaBery5fBRQfpTbmccPChDEhIrcNDMnW9Px3G_h4dQ0wlmlLfBOiCtBBfQoVXGUxUVdowK8SHWs1sYYnmo-mTnzZRF7JBR4IcRMrCKbpj61ppVT0EONUuRY0sJ8M/s320/2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Then created the Application Module (HRAppModule)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ1laWc9AGEG4mhAUXWRJ4nnIZ02qbRagaqxhVBuysUmUbJXSLbOAs_YqLVmNZGEQJq-w350pamHU7Bx34umtujbHLBDeY5CWQR6tSVAu4OJ1U6doqAdyTd4GXZR9kF4YY1wKy6CoRRTg/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ1laWc9AGEG4mhAUXWRJ4nnIZ02qbRagaqxhVBuysUmUbJXSLbOAs_YqLVmNZGEQJq-w350pamHU7Bx34umtujbHLBDeY5CWQR6tSVAu4OJ1U6doqAdyTd4GXZR9kF4YY1wKy6CoRRTg/s320/4.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Now click finish to complete the Business components.&lt;br /&gt;
&lt;br /&gt;
Now I should create the view criteria to create the criteria and create the bind variable to pass the selected data from list of values.&lt;br /&gt;
&lt;br /&gt;
First Create the List Of Values to be displayed in criteria.&lt;br /&gt;
&lt;br /&gt;
I am creating it to show employees present in one department.&lt;br /&gt;
&lt;br /&gt;
To do that &lt;br /&gt;
&lt;br /&gt;
First open the EmployeesViewObject.xml in &quot;&lt;strong&gt;Overview&lt;/strong&gt;&quot; mode.&lt;br /&gt;
&lt;br /&gt;
Go to the Attributes page.&lt;br /&gt;
&lt;br /&gt;
Only Employees entity&#39;s attributes are being shown there.&lt;br /&gt;
&lt;br /&gt;
To display the Departments entity&#39;s attribute . Go to &quot;Entity Objects&quot; option. Add the Departments entity object on right side.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPGhr82Kz7-JbeRDUhCkSx0bTxImrAqHvhvdJwYLdmWRk3KZDIhgU5E3GQ6Le1MsCX0FsOBm7Zr8wp7YnBnvbeZpgm9rBDbDgeCOkQie2RxDP0gb6ofS_IRcFjPRB1FY_9kKt7rr-QdUI/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPGhr82Kz7-JbeRDUhCkSx0bTxImrAqHvhvdJwYLdmWRk3KZDIhgU5E3GQ6Le1MsCX0FsOBm7Zr8wp7YnBnvbeZpgm9rBDbDgeCOkQie2RxDP0gb6ofS_IRcFjPRB1FY_9kKt7rr-QdUI/s320/5.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now come to &quot;Attributes&quot; section again.&lt;br /&gt;
&lt;br /&gt;
Right click the down arrow beside the green add button as shown in the picture.&lt;br /&gt;
&lt;br /&gt;
Choose option Add Attribute From Entity&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrSD3DHjg24aizXCK9WWXLtIAmhyphenhyphenR178z5rdPgYy_GEIU-Rhd7SwtkP4hyphenhyphensNpkQpNGoMqUa4VHsnaMvWYOmV1KouhNRHcQk7gePF1C0KtuIhdc97TMgoO6iVKdIvbZVHwonAItZmjNx0E/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrSD3DHjg24aizXCK9WWXLtIAmhyphenhyphenR178z5rdPgYy_GEIU-Rhd7SwtkP4hyphenhyphensNpkQpNGoMqUa4VHsnaMvWYOmV1KouhNRHcQk7gePF1C0KtuIhdc97TMgoO6iVKdIvbZVHwonAItZmjNx0E/s320/6.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Chhose all the Deaprtments&#39; Attributes.&lt;br /&gt;
&lt;br /&gt;
Now Select the DepartmentName attribute.&lt;br /&gt;
&lt;br /&gt;
Click the Green Add Button related to List Of Values:DepartmentName as shown in picture.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWdlEin8_lAu2Uv9HpckoZY70rpSAFnZWLt-bzcN5vJgdWb6ptoJkerIiRnAQC9D2Qr52-PsuRuNAAiq0ztqoem1VbIzVURk9BC7VzKnHotowO0o55sKuJnFHqpieiBOWcw0DQuuDTDbE/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWdlEin8_lAu2Uv9HpckoZY70rpSAFnZWLt-bzcN5vJgdWb6ptoJkerIiRnAQC9D2Qr52-PsuRuNAAiq0ztqoem1VbIzVURk9BC7VzKnHotowO0o55sKuJnFHqpieiBOWcw0DQuuDTDbE/s320/7.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Choose the List Of Values properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBbGlIy7PYP43imD0MM0f8bMLDfPV6BVEsFZS2S8X39K85NhLuQpIi9SrBGGijhWUsjCBnmt95MSWVD6beRMkGM0V3cPiVO6KH0ahHy2gC14ejuoZXoSKNxJcD6L1LXn_WZQYwn0qpaVE/s1600/8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBbGlIy7PYP43imD0MM0f8bMLDfPV6BVEsFZS2S8X39K85NhLuQpIi9SrBGGijhWUsjCBnmt95MSWVD6beRMkGM0V3cPiVO6KH0ahHy2gC14ejuoZXoSKNxJcD6L1LXn_WZQYwn0qpaVE/s320/8.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now go to &quot;Query&quot; portion to create the view criteria. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlzF5pLN7qxBTtngZqep_LjvDfHb4_MwvooUllWISw-LGAHZzeaCJ0XF7cPGkAbV5MREwprbirN5IK4VQYiG7dTNNd-XSyYRwl5XjD46EfRxWOckYvX-VTZlTQ68ckwij5OSozfL3bYSE/s1600/10.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlzF5pLN7qxBTtngZqep_LjvDfHb4_MwvooUllWISw-LGAHZzeaCJ0XF7cPGkAbV5MREwprbirN5IK4VQYiG7dTNNd-XSyYRwl5XjD46EfRxWOckYvX-VTZlTQ68ckwij5OSozfL3bYSE/s320/10.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4fAPrlM7ZeqijylStjzQzG0m9H2kIU8PAjiVut-RMrQuze4Pbno3YtgDCK9xoKN3MlIDVk5eP8d-kvA74ZWIOwC3S7jOGZqECJKvDlgsFgFTju92IcKSOfm_f6agjxxESQA427mcFqCQ/s1600/9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4fAPrlM7ZeqijylStjzQzG0m9H2kIU8PAjiVut-RMrQuze4Pbno3YtgDCK9xoKN3MlIDVk5eP8d-kvA74ZWIOwC3S7jOGZqECJKvDlgsFgFTju92IcKSOfm_f6agjxxESQA427mcFqCQ/s320/9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now your business components are ready&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4fAPrlM7ZeqijylStjzQzG0m9H2kIU8PAjiVut-RMrQuze4Pbno3YtgDCK9xoKN3MlIDVk5eP8d-kvA74ZWIOwC3S7jOGZqECJKvDlgsFgFTju92IcKSOfm_f6agjxxESQA427mcFqCQ/s1600/9.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4fAPrlM7ZeqijylStjzQzG0m9H2kIU8PAjiVut-RMrQuze4Pbno3YtgDCK9xoKN3MlIDVk5eP8d-kvA74ZWIOwC3S7jOGZqECJKvDlgsFgFTju92IcKSOfm_f6agjxxESQA427mcFqCQ/s320/9.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd_7Hlw0qy5j7XMb4u79r-vosWTkciAO-4orpWD3clYxn0GwX5xMbncKmHszMQ8qtvs2bj5BCsOGQHBFtPOWCI_FYQTtLc8DnpNXjX_rXIDZBxN8Qnn305TQSBuX7yFajEP9WqVVBjV9w/s1600/11.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd_7Hlw0qy5j7XMb4u79r-vosWTkciAO-4orpWD3clYxn0GwX5xMbncKmHszMQ8qtvs2bj5BCsOGQHBFtPOWCI_FYQTtLc8DnpNXjX_rXIDZBxN8Qnn305TQSBuX7yFajEP9WqVVBjV9w/s320/11.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Now Go to HRViewController project.&lt;br /&gt;
&lt;br /&gt;
Create one jspx page from JSF&amp;gt; JSF Page&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDbB-LOf2dBRKrwZ-FtPKFSp1siKYXMd6zc7U-6w4v_3gipA40PoUFdi1FF_kADLW4gpZYYRMbE8fW8na8DGI8TiyyZr0KKblgcRzAAe5ZVVm1f9mTU8b5vuumcBFNEgmENEbx6fnilTo/s1600/12.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDbB-LOf2dBRKrwZ-FtPKFSp1siKYXMd6zc7U-6w4v_3gipA40PoUFdi1FF_kADLW4gpZYYRMbE8fW8na8DGI8TiyyZr0KKblgcRzAAe5ZVVm1f9mTU8b5vuumcBFNEgmENEbx6fnilTo/s320/12.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now refresh the Data Control Pane.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHzTVG1lU584zDJBdlZqOZsWkdTCmi0ATuTSqJufMesQXQ4bANtWBBoCJWPp57S-hnNB1DubSp26aFbCxOHtNf-fCvbhgyxSGZ2R85iUEEbhmvWoCqR21hjFDZo_Yh6emGmOqcstKp9wA/s1600/13.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHzTVG1lU584zDJBdlZqOZsWkdTCmi0ATuTSqJufMesQXQ4bANtWBBoCJWPp57S-hnNB1DubSp26aFbCxOHtNf-fCvbhgyxSGZ2R85iUEEbhmvWoCqR21hjFDZo_Yh6emGmOqcstKp9wA/s320/13.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Drag the EmployeesViewObjectCriteria in page&#39;s center region. &lt;br /&gt;
&lt;br /&gt;
Choose Query&amp;gt; ADF Query Panel With Table&lt;br /&gt;
&lt;br /&gt;
Now create the table with suitable attributes.&lt;br /&gt;
&lt;br /&gt;
You will be able to see the page with LOV.&lt;br /&gt;
&amp;nbsp;The value selected in LOV is being passed to the Bind Variable created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOmhzm3mvXJomtmfCDqS4doJgVIrui7UUcSWF80KKJeCyxL-7gmQM_ZHu3lMW4epFT0AkozmVIlLVyfZUDjaXOnvQDx38r2xreoHQUCN2HHDhtHfczoT7PdFttnomb5LV_y83JXgxsDiM/s1600/15.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOmhzm3mvXJomtmfCDqS4doJgVIrui7UUcSWF80KKJeCyxL-7gmQM_ZHu3lMW4epFT0AkozmVIlLVyfZUDjaXOnvQDx38r2xreoHQUCN2HHDhtHfczoT7PdFttnomb5LV_y83JXgxsDiM/s320/15.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
In this way List Of Values with input text can also be created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/407497904632622451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/02/showing-data-based-on-list-of-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/407497904632622451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/407497904632622451'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/02/showing-data-based-on-list-of-values.html' title='Showing Data Based on List Of Values And Bind Variables'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihZyltyq3UPpY6XsN71cgYE6CG1AX_qx1I8N2boSaTwOeVZVmTc4sTspEmilqg4r2-3GTBIWCOvwSXN8Gq1rc2UTCViRzWqgE8Z8nPlxknJVXrQ99Iw1Ry3bGvHn8KgOCLtmzjYMVSZi8/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-2232464997004269454</id><published>2011-01-21T05:45:00.000-08:00</published><updated>2011-01-27T07:44:58.216-08:00</updated><title type='text'>Application Module  - Optimistic Lock vs  Pessimistic Lock</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;In Application Module the locking is by default pessimistic lock. &lt;br /&gt;
&lt;br /&gt;
jbo.locking.mode is pessimistic by default.&lt;br /&gt;
&lt;br /&gt;
But the practice should be optimistic locking. &lt;br /&gt;
&lt;br /&gt;
How to change the locking mode.&lt;br /&gt;
&lt;br /&gt;
We can easily change the locking mode by opening &lt;br /&gt;
&quot;EDIT BUSINESS COMPONENT CONFIGURATION&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghgEw1O5jePERoOQqi5VSf2A8Yc-d8hPEE2gCHKN7T6n25bH2BgDzePLvAQiG22f9SgOndy7g5sIp24e1sMu2KqvzpukT6m2cY5TEhCm67STVzuV-hfLNLuqL_abbK3jbr4lJPpJARAro/s1600/pessimisticlock.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; s5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghgEw1O5jePERoOQqi5VSf2A8Yc-d8hPEE2gCHKN7T6n25bH2BgDzePLvAQiG22f9SgOndy7g5sIp24e1sMu2KqvzpukT6m2cY5TEhCm67STVzuV-hfLNLuqL_abbK3jbr4lJPpJARAro/s320/pessimisticlock.JPG&quot; width=&quot;292&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
change the value to optimistic.&lt;br /&gt;
&lt;br /&gt;
The pessimistic locking holds lock on database but optimistic does not hold lock on database.&lt;br /&gt;
&lt;br /&gt;
So in case concurrent update&lt;br /&gt;
&lt;br /&gt;
1&amp;gt; pessimistic locking - The second user for concurrent data update will stuck with error until first user saves or undo data change. &lt;br /&gt;
The second user will be forced to wait until first user will Save or Undo his changes in order to proceed with data commit. Another option for the second user - Undo his change in the current row and proceed with other rows editing. When the first user will close his transaction, the second one will be able to save his changes for previously locked record as well.&lt;br /&gt;
&lt;br /&gt;
2&amp;gt; optimistic locking - The first user will not hold database lock and second user will be able to continue his work. At the same time, first user will be able to press Save button second time, and his data will be committed.&lt;br /&gt;
&lt;br /&gt;
So for&amp;nbsp;general optimistic locking is better to use.&lt;br /&gt;
&lt;br /&gt;
By the way &lt;br /&gt;
&lt;br /&gt;
There are three types of locking:&lt;br /&gt;
1. normal&lt;br /&gt;
2.optimistic&lt;br /&gt;
3.pessimistic&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/2232464997004269454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/01/application-module-optimistic-lock-vs.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/2232464997004269454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/2232464997004269454'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/01/application-module-optimistic-lock-vs.html' title='Application Module  - Optimistic Lock vs  Pessimistic Lock'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghgEw1O5jePERoOQqi5VSf2A8Yc-d8hPEE2gCHKN7T6n25bH2BgDzePLvAQiG22f9SgOndy7g5sIp24e1sMu2KqvzpukT6m2cY5TEhCm67STVzuV-hfLNLuqL_abbK3jbr4lJPpJARAro/s72-c/pessimisticlock.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-5424278013292493345</id><published>2011-01-20T13:19:00.000-08:00</published><updated>2011-01-20T13:19:50.371-08:00</updated><title type='text'>Handling Stale Data</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;While using ADF one internal feature of ADF model is Data Caching. So for neseted application modules sometimes it makes problems like RowInconsistentException.&lt;br /&gt;
&lt;br /&gt;
To remove that we can use setClearCacheOnCommit.&lt;br /&gt;
By default its value is false.&lt;br /&gt;
&lt;br /&gt;
But if we make it true it will clear the previous cache on every commit. So the data updated by other users always get updated.&lt;br /&gt;
&lt;br /&gt;
It can be done by two ways.&lt;br /&gt;
&lt;br /&gt;
1. Open the ApplicationModule.xml in source mode. and set the&amp;nbsp;ClearCacheOnCommit=&quot;true&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEievwPdXmpqXy_JROIwKJNBpiW8RBuqNXwWBVh4-YAEBkE6v-xgHLtX5VNOcReILdCX1pB-mWMnmBo6LkNxx9hU0baVQh_2QuCgWNxBWHY0K0T4odIx_jzUP0SKZBcYmqw7uDM08cLcsKE/s1600/adasd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEievwPdXmpqXy_JROIwKJNBpiW8RBuqNXwWBVh4-YAEBkE6v-xgHLtX5VNOcReILdCX1pB-mWMnmBo6LkNxx9hU0baVQh_2QuCgWNxBWHY0K0T4odIx_jzUP0SKZBcYmqw7uDM08cLcsKE/s320/adasd.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
or&lt;br /&gt;
2. If&amp;nbsp;AppModuleImpl.java is created use the following code there.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;this.getDBTransaction().setClearCacheOnCommit(true); in constructor.&lt;br /&gt;
&lt;br /&gt;
This should solve the problems like Stale Data.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/5424278013292493345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/01/handling-stale-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5424278013292493345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5424278013292493345'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/01/handling-stale-data.html' title='Handling Stale Data'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEievwPdXmpqXy_JROIwKJNBpiW8RBuqNXwWBVh4-YAEBkE6v-xgHLtX5VNOcReILdCX1pB-mWMnmBo6LkNxx9hU0baVQh_2QuCgWNxBWHY0K0T4odIx_jzUP0SKZBcYmqw7uDM08cLcsKE/s72-c/adasd.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-7509253467561558442</id><published>2011-01-20T13:09:00.000-08:00</published><updated>2011-01-24T19:58:26.792-08:00</updated><title type='text'>Use Server&#39;s Data Source In AM Instead Of Application Connection DataSource</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Using Data Source instead of normal JDBC connection has lot of advantages. Major one is Data Source behaves dynamically. One can change the Data Source&#39;s Configurations also. While the deployed application will not be affected if Data Base Objects do not get altered.&lt;br /&gt;
&lt;br /&gt;
But one problem I have found in industry is that how to configure different data sources in application module(Root Application Module) .&lt;br /&gt;
&lt;br /&gt;
Normally for testing purpose we do not use Data Sources we use application modules jdbc connection.&lt;br /&gt;
&lt;br /&gt;
To configure data sources we can choose two types of Data Sources(Based on Authentication)&lt;br /&gt;
&lt;br /&gt;
1. Application&lt;br /&gt;
2. Container&lt;br /&gt;
&lt;br /&gt;
As we are discussing here about using server&#39;s Data Source I will be going with Container based one.&lt;br /&gt;
&lt;br /&gt;
To configure this I suppose I will be using &quot;HRDataSource&quot; as Data Source Name.&lt;br /&gt;
&lt;br /&gt;
First I shall edit the Application Module Configuration to refer&amp;nbsp;HRDataSource.&lt;br /&gt;
&lt;br /&gt;
To do that I should follow these steps:&lt;br /&gt;
&lt;br /&gt;
1. Right Click On AppliationModule.xml(MSService.xml in picture).&lt;br /&gt;
2. Click Configurations - It will open Manage Configurations wizard.&lt;br /&gt;
3. Now click on edit - and edit the DataSource as java:comp/env/jdbc/DataSourceName&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU1YVzy0WrG3cnadh6aAnk6CEMVUc8qojgfVl04BjdtfZGGSYBgjCmt8xlqQ8ONHjylPaN5GEtwotTRDh-Q0-EeNNXKOLPMJmBoXABKwgeqym_N8pRr1HBSc4V_QxZqxlI0_o1Dln7rQg/s1600/aM.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;288&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU1YVzy0WrG3cnadh6aAnk6CEMVUc8qojgfVl04BjdtfZGGSYBgjCmt8xlqQ8ONHjylPaN5GEtwotTRDh-Q0-EeNNXKOLPMJmBoXABKwgeqym_N8pRr1HBSc4V_QxZqxlI0_o1Dln7rQg/s320/aM.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Click save all&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu6jqTb_EIXDBCOCGvQKpsXjl3KoN4Dv_OjFya-kQ-gD9hj8u6mmlj4wfs57oEkxsJjLZpjV93y7qoYbtNO4vx4ufTdyEYmIZF24w_tFiKGn32Gfmz5dAU6E2mnqWV_uT3iyo2wb38vD0/s1600/fdf.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu6jqTb_EIXDBCOCGvQKpsXjl3KoN4Dv_OjFya-kQ-gD9hj8u6mmlj4wfs57oEkxsJjLZpjV93y7qoYbtNO4vx4ufTdyEYmIZF24w_tFiKGn32Gfmz5dAU6E2mnqWV_uT3iyo2wb38vD0/s320/fdf.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF3kTzNo4sFEajXODWuLrh4wicftLPn5EON0iqMMjB5v0AXI91jwjOKV9NGBnH9__Kaeb2O75ldZOhzRFXOrcILJZFo_sKDzxn-ZLrPgkzuOy3gJC2i7wDbyeyq_9jrOgV1Zw_abR_0oE/s1600/sgvzd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF3kTzNo4sFEajXODWuLrh4wicftLPn5EON0iqMMjB5v0AXI91jwjOKV9NGBnH9__Kaeb2O75ldZOhzRFXOrcILJZFo_sKDzxn-ZLrPgkzuOy3gJC2i7wDbyeyq_9jrOgV1Zw_abR_0oE/s320/sgvzd.JPG&quot; width=&quot;292&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now we have added the DataSource in AM. But if we deploy the application in server we may still get errors though jdbc/HRDataSource exists in server.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;We have to configure the authentication to be of Container.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;To do that we should edit the web.xml of View Controller project.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;We should one Data Source Reference there of Authentication Container.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The configuration should be like below image. Data Source is of javax.sql.DataSource type.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-aVX1LG-le7NExH263A_fijdbZ0DYsjU3BasGYn5aHWdB5O-egGA9TSUkQmmVe_rvfUngDrsPGvQje3sZQ1E-AylHWRGd77W3KY-KdTCbNH60JJ3ar12yzxk58o3Pb4T93DwqZXy-lnc/s1600/fdfwe.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-aVX1LG-le7NExH263A_fijdbZ0DYsjU3BasGYn5aHWdB5O-egGA9TSUkQmmVe_rvfUngDrsPGvQje3sZQ1E-AylHWRGd77W3KY-KdTCbNH60JJ3ar12yzxk58o3Pb4T93DwqZXy-lnc/s320/fdfwe.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Now if we deploy the application it should take HRDataSource for Data Base connection.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;So If you need to modify the DataSource name , just modify bc4j.xcfg located in common folder and web.xml located within WEB-INF folder.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here the Data Source is found out using context lookup.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;as like below.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Context envCtx = (Context) initCtx.lookup(&quot;java:comp/env&quot;);&lt;br /&gt;
&lt;br /&gt;
// Look up our data source&lt;br /&gt;
DataSource ds = (DataSource)envCtx.lookup(&quot;jdbc/HRDataSource&quot;);&lt;br /&gt;
&lt;br /&gt;
// Allocate and use a connection from the pool&lt;br /&gt;
Connection conn = ds.getConnection();&lt;br /&gt;
... use this connection to access the database ...&lt;br /&gt;
conn.close();&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;-------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The Data Source can be configured by directly and only in bc4j.xcfg file only. Without mentioning any reference in web.xml&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;just put the jndi name of the Servers Data Source in &#39;Custom JDBCDataSource=&quot;jdbc/HRDataSource&quot; /&amp;gt;&#39; in bc4j.xcfg file deploy it in server. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;It will run as expected.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;--------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/7509253467561558442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2011/01/use-servers-data-source-in-am-instead.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/7509253467561558442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/7509253467561558442'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2011/01/use-servers-data-source-in-am-instead.html' title='Use Server&#39;s Data Source In AM Instead Of Application Connection DataSource'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU1YVzy0WrG3cnadh6aAnk6CEMVUc8qojgfVl04BjdtfZGGSYBgjCmt8xlqQ8ONHjylPaN5GEtwotTRDh-Q0-EeNNXKOLPMJmBoXABKwgeqym_N8pRr1HBSc4V_QxZqxlI0_o1Dln7rQg/s72-c/aM.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-5551994908732200745</id><published>2010-12-24T21:20:00.000-08:00</published><updated>2010-12-24T21:20:28.061-08:00</updated><title type='text'>Installing Oracle JDeveloper with ADF</title><content type='html'>To install the JDeveloper you must have the JDeveloper with ADF studio for your operating system.&lt;br /&gt;
You can download the software from the link(&lt;a href=&quot;http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html&quot;&gt;Download from here&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
After download is complete launch the software to install JDeveloper in your machine.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwdVJU4IXKyPv4p4WLfs7stLMvkFtjWLexInip530JszOnSwskMeNiyGO4RFmgN8ptfzp_ZyJkyYFM3vRV728IFUybJ-zYfMzZnQKAoRwbuiCvxEeDhlPIpPDW4ithzl8hOhgVhkz7wJs/s1600/untitled.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;172&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwdVJU4IXKyPv4p4WLfs7stLMvkFtjWLexInip530JszOnSwskMeNiyGO4RFmgN8ptfzp_ZyJkyYFM3vRV728IFUybJ-zYfMzZnQKAoRwbuiCvxEeDhlPIpPDW4ithzl8hOhgVhkz7wJs/s200/untitled.JPG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt;First Screen&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxMEH4W3a3XxrT-Nvlj4sH-40dlU5HIHocV0yEyTXsPvYr03lOgNqz9WzXvA4ZdAQ6LKBR212gMtGaE2uz0PNisRPNTEyZCpH3-WVdtmPDq39Wrdp3cew0dtcFmbXsYQ-ONiekloL9ucM/s1600/untitled.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;143&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxMEH4W3a3XxrT-Nvlj4sH-40dlU5HIHocV0yEyTXsPvYr03lOgNqz9WzXvA4ZdAQ6LKBR212gMtGaE2uz0PNisRPNTEyZCpH3-WVdtmPDq39Wrdp3cew0dtcFmbXsYQ-ONiekloL9ucM/s200/untitled.JPG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt;Second Screen&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxisjsB0uyrLc0NpiyIarWY3U2AnKg7JxUcya_1PPSvSWYRi9z3VRTDcVrLGtPx39m8CvCJHULBYtPCj26HxLjalJLCMAGUZ6-qxV6PyWPro1h4RO9ltU83nE_Wrse4IpWUnyXcFCG3OM/s1600/untitled.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;143&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxisjsB0uyrLc0NpiyIarWY3U2AnKg7JxUcya_1PPSvSWYRi9z3VRTDcVrLGtPx39m8CvCJHULBYtPCj26HxLjalJLCMAGUZ6-qxV6PyWPro1h4RO9ltU83nE_Wrse4IpWUnyXcFCG3OM/s200/untitled.JPG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt;Third Screen&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Choose to create a new middleware home. Mention the location where you want to install the software.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Click next and accept all in coming screens to install the software.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;You will find that JDeveloper is installed in specified directory.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Launch installed Jdeveloper to verify the installation.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/5551994908732200745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2010/12/installing-oracle-jdeveloper-with-adf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5551994908732200745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/5551994908732200745'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2010/12/installing-oracle-jdeveloper-with-adf.html' title='Installing Oracle JDeveloper with ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwdVJU4IXKyPv4p4WLfs7stLMvkFtjWLexInip530JszOnSwskMeNiyGO4RFmgN8ptfzp_ZyJkyYFM3vRV728IFUybJ-zYfMzZnQKAoRwbuiCvxEeDhlPIpPDW4ithzl8hOhgVhkz7wJs/s72-c/untitled.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6789984272019836693.post-9123281027793352723</id><published>2010-12-24T07:38:00.000-08:00</published><updated>2010-12-24T21:22:21.880-08:00</updated><title type='text'>Start Voyage With ADF</title><content type='html'>&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;strong&gt;ADF&lt;/strong&gt;&lt;/span&gt; - Stands for Application Development Framework.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Oracle ADF mainly provides a rich commercial java framework for developing enterprise application, though it has many other features also.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #660000;&quot;&gt;License:&lt;/span&gt;&lt;/strong&gt; &lt;br /&gt;
The Oracle Application Server licence includes a component for a licence fee for Oracle ADF. This means that all users who have purchased an Oracle Application Server licence may use Oracle ADF for free. Users who want to deploy ADF to a third-party application-server can purchase an ADF runtime licence at their local Oracle sales office. users can develop and test Oracle ADF applications free of charge declaratively within Oracle JDeveloper.&lt;br /&gt;
Oracle Corporation purchased Weblogic in June 2008, and thus no longer regards it as a third-party application-server, so ADF is included in every Weblogic license&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&lt;strong&gt;Knowledge Required:&lt;/strong&gt;&lt;/span&gt; To start with ADF one must have conceptual knowledge of JAVA. If not with JAVA at least concept of Object Oriented Programming is required.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Start Wit&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;color: #660000;&quot;&gt;h ADF:&lt;/span&gt;&lt;/strong&gt;To start with Oracle ADF one must download latest version of JDeveloper from Oracle Technology Network. The link is &lt;a href=&quot;http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html&quot;&gt;http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html&lt;/a&gt;. The user should choose JDeveloper with ADF here. &lt;br /&gt;
&lt;br /&gt;
The latest versions of JDeveloper come with Integrated Weblogic Server also. So the application developed with Jdeveloper can be tested here also.&lt;br /&gt;
&lt;br /&gt;
The ADF developer guide can be found in the Documentation Tab of above link.</content><link rel='replies' type='application/atom+xml' href='http://saumoinak.blogspot.com/feeds/9123281027793352723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saumoinak.blogspot.com/2010/12/start-with-adf.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/9123281027793352723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6789984272019836693/posts/default/9123281027793352723'/><link rel='alternate' type='text/html' href='http://saumoinak.blogspot.com/2010/12/start-with-adf.html' title='Start Voyage With ADF'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>