<?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: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-7710152715178632961</id><updated>2011-11-27T16:09:23.056-08:00</updated><category term='JDeveloper 11G'/><category term='clientComponent'/><category term='intialFocusId'/><category term='focus'/><title type='text'>Jdeveloper ADF</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-5396546822769579677</id><published>2011-01-31T13:43:00.000-08:00</published><updated>2011-01-31T13:43:47.900-08:00</updated><title type='text'>Tip - Hiding unwanted display attributes in Control Hints</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;For Search Query Screens:&lt;br /&gt;&lt;br /&gt;At times we add transient attributes to the View Object maybe for some internal calculations and they are unwanted for display.&lt;br /&gt;These unwanted display attributes show up in the "Add Fields" option of the Query screen.&lt;br /&gt;Make sure you hide these attributes from Control Hints at the time of development. Edit Attribute --&amp;gt; Control Hints --&amp;gt;Display Hint. Change this to "Hide".&lt;br /&gt;&lt;br /&gt;This avoids user confusion for search criterion and certainly does not haunt you as bugs in development cycle :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-5396546822769579677?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/5396546822769579677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2011/01/tip-hiding-unwanted-display-attributes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/5396546822769579677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/5396546822769579677'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2011/01/tip-hiding-unwanted-display-attributes.html' title='Tip - Hiding unwanted display attributes in Control Hints'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-463923151081919045</id><published>2010-08-18T09:15:00.000-07:00</published><updated>2010-08-18T15:44:44.899-07:00</updated><title type='text'>Do you deal with Master-Child applications in your application?</title><content type='html'>Some tips if your ADF application has child applications included as jars to your Master application.&lt;br /&gt;1. Always have a defined directory structure for the model. Do not use the default provided by the framework.&lt;br /&gt;e.g. The Model.jpx of Master app should be&amp;nbsp;&amp;nbsp; orgName.appName.model&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whilel the Model.jpx for Child app should be orgName.appName.childappName.model&lt;br /&gt;&lt;br /&gt;2. There should also be a defined/different directory structure for DataBindings.cpx&lt;br /&gt;&amp;nbsp; e.g. The DataBindings.cpx of Master app should be under orgName.appName.view&lt;br /&gt;and that of Child app should be orgName.appName.childappName.view&lt;br /&gt;&lt;br /&gt;This helps avoiding the below warning &lt;br /&gt;WARNING: The commonly named resources listed below could cause reusability errors for your consumers.&lt;br /&gt;&lt;br /&gt;and eventually the Error&lt;br /&gt;oracle.jbo.JboException: JBO-34010: The "view/DataBindings.cpx" descriptor appears in the application classpath more than once:&lt;br /&gt;&lt;br /&gt;You might also want to do a clean build if you face this error or delete the remains of the application from &lt;br /&gt;JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs&amp;nbsp; folder.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-463923151081919045?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/463923151081919045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2010/08/do-you-deal-with-master-child.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/463923151081919045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/463923151081919045'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2010/08/do-you-deal-with-master-child.html' title='Do you deal with Master-Child applications in your application?'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-4471079802999283472</id><published>2010-06-18T12:27:00.000-07:00</published><updated>2010-06-18T12:27:00.027-07:00</updated><title type='text'>Custom Splash screen for ADF Faces</title><content type='html'>Do you want to get rid of the deafult oracle "O Loading..." splash screen to display your own message?&lt;br /&gt;&lt;br /&gt;I had to replace this logo to put my company logo.&lt;br /&gt;Here is what I did&lt;br /&gt;&lt;br /&gt;The blog from Frank Nimphius explains it &lt;br /&gt;&lt;a href="http://www.oracle.com/technology/products/jdev/tips/fnimphius/custom_splash_screen/index.html"&gt;http://www.oracle.com/technology/products/jdev/tips/fnimphius/custom_splash_screen/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;However to incorporate this into your&amp;nbsp;own application which includes n number of skins and css style sheets.&lt;br /&gt;1. You need to have the extended resourcce bundle name(&lt;bundle-name&gt;) under each &lt;skin&gt;that you have.&lt;br /&gt;2. yo uneed not change your trinidad-config.xml file since it is designed to retrieve whatever number of &lt;skins&gt;s you have.&lt;br /&gt;3. You need to insert the customized splash screen definition in each css sheet that you have.&lt;br /&gt;4. Make sure you insert your image under af|document::spalsh-screen-icon&lt;br /&gt;5. The text to displayed under the icon can be modified in the ResourceBundle provided in Frank's blog.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; af_document.LABEL_SPLASH_SCREEN is where you can put your custom message.&lt;br /&gt;Rest all the custom labels can be commented or used as required.&lt;br /&gt;&lt;br /&gt;Hope this helps. It helped me :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-4471079802999283472?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/4471079802999283472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2010/06/custom-splash-screen-for-adf-faces.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/4471079802999283472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/4471079802999283472'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2010/06/custom-splash-screen-for-adf-faces.html' title='Custom Splash screen for ADF Faces'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-5352874884717700496</id><published>2010-04-21T14:16:00.000-07:00</published><updated>2010-05-26T14:19:10.701-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JDeveloper 11G'/><title type='text'>Quick Debug watch - very useful</title><content type='html'>Just thought to sharing a feature of Jdeveloper 11G.&lt;br /&gt;while debugging Jdeveloper gives you an option of quick debug watch on your variable.&lt;br /&gt;For this just click on your variable in java file and you will see tiny tootip kinda popups.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_6qWx5yVppLg/S898Yh_ju2I/AAAAAAAAGro/AONpWlIfavM/s1600/QuickWatch.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5462721633907358562" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 235px" alt="" src="http://3.bp.blogspot.com/_6qWx5yVppLg/S898Yh_ju2I/AAAAAAAAGro/AONpWlIfavM/s320/QuickWatch.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;You certainly can add your variables to watch list in a traditional way but this is something thats just quick and handy :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-5352874884717700496?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/5352874884717700496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2010/04/quick-debug-watch-very-useful.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/5352874884717700496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/5352874884717700496'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2010/04/quick-debug-watch-very-useful.html' title='Quick Debug watch - very useful'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6qWx5yVppLg/S898Yh_ju2I/AAAAAAAAGro/AONpWlIfavM/s72-c/QuickWatch.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-2282588838295122111</id><published>2010-04-18T11:43:00.000-07:00</published><updated>2010-04-26T14:25:10.738-07:00</updated><title type='text'>Integrating XML BI Publisher using WebServices - Coming Soon--- Its here now</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;div&gt;Finally I am able to change the status of this article from COming Soon to actually writing it.&lt;br /&gt;Things have just been busy at work with integration of XML BI Publisher and related improvisations.&lt;br /&gt;I recently did a assignment of integrating BI publisher reports with the ADF application through webservices.&lt;br /&gt;Once you get the get the core of this functionality you can easily adapt it to your application specific needs.&lt;br /&gt;My need was to call bi publisher reports from commanLink on a table column.&lt;br /&gt;SO the core of the functionality starts below.&lt;br /&gt;1. Start with getting the WSDL for you projects Bi publisher :)&lt;br /&gt;usually it is : &lt;a href="http://xxxxx.xx/xmlpserver/services/PublicReportService?WSDL"&gt;http://XXXXX.XX/xmlpserver/services/PublicReportService?WSDL&lt;/a&gt;&lt;br /&gt;2. Now using this WSDL we need to generated the Webservice proxy in our project.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Right click on your Model - &gt;New - &gt;Web Service Proxy&lt;/div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_6qWx5yVppLg/S9X_JBe4C8I/AAAAAAAAGtg/ubZgQ5ApwNs/s1600/WebService.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5464554253365808066" style="WIDTH: 630px; CURSOR: hand; HEIGHT: 98px" alt="" src="http://4.bp.blogspot.com/_6qWx5yVppLg/S9X_JBe4C8I/AAAAAAAAGtg/ubZgQ5ApwNs/s320/WebService.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. Go through the setup of setting up proxy as in below screens&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5464554636610507794" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 465px; CURSOR: hand; HEIGHT: 81px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_6qWx5yVppLg/S9X_fVLiFBI/AAAAAAAAGto/ZQuNeZL3VPk/s320/WSDl.bmp" border="0" /&gt;&lt;br /&gt;&lt;div&gt;In the next steps mention your package name and finish creating the proxy.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;4. Next you need to set the necessary parameters to call your report and call necessary methods to run the reports. lets work with the generic report of world Sales.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;From the generated proxy open the PublicReportServiceClient.java. This class has the main method where we can do the quick testing of our report.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;You have to do 4 things to make this happen&lt;/div&gt;&lt;br /&gt;&lt;div&gt;1. Form the Request object&lt;/div&gt;&lt;div&gt;2. call runReport() with the request object.&lt;/div&gt;&lt;div&gt;3. return the response object&lt;/div&gt;&lt;div&gt;4. Write the report on the local drive or display the report on Fly.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Below code would write the report on local drive for us however I had to open the report on fly giving the user of saving the report. Just a small little java tweak in step 4 would give you that.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;public static void main(String [] args) { &lt;/div&gt;&lt;div&gt;try{ publicReportServiceService = new PublicReportServiceService(); &lt;/div&gt;&lt;div&gt;PublicReportService publicReportService = publicReportServiceService.getPublicReportService(); &lt;/div&gt;&lt;div&gt;PublicReportServiceClient myPort = new PublicReportServiceClient(); &lt;/div&gt;&lt;div&gt;String userName = "Admin"; String passWord = "Admin"; &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;ReportRequest repReq = new ReportRequest(); //request&lt;/div&gt;&lt;div&gt;ReportResponse repRes = new ReportResponse(); //reponse&lt;/div&gt;&lt;div&gt;// Setting the parameters&lt;/div&gt;&lt;div&gt;repReq.setAttributeFormat("pdf");&lt;/div&gt;&lt;div&gt;repReq.setAttributeLocale("en-US"); &lt;/div&gt;&lt;div&gt;repReq.setAttributeTemplate("World Sales"); &lt;/div&gt;&lt;div&gt;repReq.setReportAbsolutePath("/Sales Manager/World Sales/World Sales.xdo ");&lt;/div&gt;&lt;div&gt;repRes = publicReportService.runReport(repReq, userName, passWord); &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;byte[] binaryBytes = repRes.getReportBytes(); OutputStream out = new FileOutputStream("C:\\XXX\\BI_Reports\\report.pdf"); &lt;/div&gt;&lt;div&gt;out.write(binaryBytes); &lt;/div&gt;&lt;div&gt;out.close(); &lt;/div&gt;&lt;div&gt;}catch(Exception e){ &lt;/div&gt;&lt;div&gt;e.printStackTrace(); &lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Volla!!! and you get the report.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;You would have to play with ParamNameValue if you have any extra parameters to be set for the report e.g. report_number&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Run the code and see for yourself and tweak the code as per your project need.&lt;/div&gt;Post me questions if any. &lt;/div&gt;&lt;div&gt;Enjoy!!&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-2282588838295122111?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/2282588838295122111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2010/04/integrating-xml-bi-publisher-using.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/2282588838295122111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/2282588838295122111'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2010/04/integrating-xml-bi-publisher-using.html' title='Integrating XML BI Publisher using WebServices - Coming Soon--- Its here now'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6qWx5yVppLg/S9X_JBe4C8I/AAAAAAAAGtg/ubZgQ5ApwNs/s72-c/WebService.bmp' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-6393405901243056191</id><published>2010-04-16T13:44:00.000-07:00</published><updated>2010-04-16T14:14:15.583-07:00</updated><title type='text'>Simple SelectOnChoice tip</title><content type='html'>Taking a small time off this friday to blog.&lt;br /&gt;There is a simple selectOneChoice tip that I came across.&lt;br /&gt;In the JSp page if you have a selectOneChoice where a selectItems list comes from a java bean&lt;br /&gt;and if this list does not have a default null value to show as first element.&lt;br /&gt;Then you can specify the 1st value as blank with the following code.&lt;br /&gt;af:selectOneChoice id="soc7" value="#{java.xyz}"  autoSubmit="true"      binding="#{javaBean.list}"&lt;br /&gt; f:selectItem itemValue=" " itemLabel=" "/&lt;br /&gt;f:selectItems value="#{javaBean.list}"id="si8"&lt;br /&gt;af:selectOneChoice&lt;br /&gt;&lt;br /&gt;This functionality can be achieved easily through viewobject where attribute has associated LOV with it. But not alwasy we would have an attribute associated with LOV.. so this tip is just for those exceptions.&lt;br /&gt;Have a good Weekend!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-6393405901243056191?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/6393405901243056191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2010/04/simple-selectonchoice-tip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/6393405901243056191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/6393405901243056191'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2010/04/simple-selectonchoice-tip.html' title='Simple SelectOnChoice tip'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-5392185296776643769</id><published>2010-03-23T14:48:00.001-07:00</published><updated>2010-03-23T15:14:50.440-07:00</updated><title type='text'>How ridiculous is that??</title><content type='html'>Lately I have been facing some wierd problems with Jdeveloper.&lt;br /&gt;&lt;br /&gt;The first.....&lt;br /&gt;&lt;br /&gt;One of the viewObjects with a transient column stopped the application from running throwing a nullpointerException.&lt;br /&gt;&lt;br /&gt;After removing the viewobject from dataModel and removing the transient column everything works fine. I recreate the viewobject with transient column again. I get the same error nullpointerException. Ok so I think the problem is transient column. But I need it.&lt;br /&gt;Now I add back the transient column back to view object and try to run the application. And guess what It works. I am still wondering what the problem was.&lt;br /&gt;&lt;br /&gt;Any takes????&lt;br /&gt;&lt;br /&gt;Ok the second one is hilarious......&lt;br /&gt;&lt;br /&gt;I added some code to my jspx page and when I ran the page i got the error while clicking the &lt;commandlink&gt;&lt;br /&gt;java.net.ProtocolException: Didn't meet stated Content-Length .....blah blah blah...... &lt;connection&gt;....&lt;br /&gt;&lt;br /&gt;I made a trip all around the world to debug the error..&lt;br /&gt;Called in my colleague for debug... there was some commented piece of code lying around... since it was uncomfortable to look at that redundant commented code that he removed it....&lt;br /&gt;&lt;br /&gt;Guess what the page ran fine....&lt;br /&gt;Why on earth a commented code would cause me a &lt;connection&gt;&lt;br /&gt;Still wondering..&lt;br /&gt;Am I missing something ????&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-5392185296776643769?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/5392185296776643769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2010/03/how-ridiculous-is-that.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/5392185296776643769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/5392185296776643769'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2010/03/how-ridiculous-is-that.html' title='How ridiculous is that??'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-2128605179446601527</id><published>2010-02-09T14:50:00.000-08:00</published><updated>2010-02-10T07:32:55.759-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='focus'/><category scheme='http://www.blogger.com/atom/ns#' term='clientComponent'/><category scheme='http://www.blogger.com/atom/ns#' term='intialFocusId'/><title type='text'>Login Page : Default focus on UserName field and Login operation on Enter Key</title><content type='html'>Today my task demanded me to focus on username field&lt;br /&gt;Task : 1. Default focus on UserName field when page loads.&lt;br /&gt;2. Login operation when user hits Enter key&lt;br /&gt;&lt;br /&gt;Solution 1 : For a simple page the tasks becomes much easier&lt;br /&gt;You just need these 2 lines of code.&lt;br /&gt;af:document intialFocusId="inputText1" --- the intialFocusId property of af:document decides the focus of the field. It needs the id of the field in question.&lt;br /&gt;&lt;br /&gt;af:inputText label="User Name" id="inputText1" clientComponent="true" ----clientComponent property should be set to true.&lt;br /&gt;&lt;br /&gt;In my case there was a twist , where UserName field is on template and the af:document on home page that consumed the template.&lt;br /&gt;Now I need to pass in the id of the inputText from template to the Home page.&lt;br /&gt;I chose a backing bean way to do it.Luckily I had a backing bean associated with my template.&lt;br /&gt;&lt;br /&gt;test.java&lt;br /&gt;private String userNameId;&lt;br /&gt;public void setUserNameId (String onLoadId) {&lt;br /&gt;this.userNameId = userNameId; }&lt;br /&gt;public String getUserNameId() {&lt;br /&gt;FacesContext facesContext = FacesContext.getCurrentInstance();&lt;br /&gt;String id = username.getClientId(facesContext);&lt;br /&gt;this.setUserNameId(id);&lt;br /&gt;return userNameId; }&lt;br /&gt;&lt;br /&gt;The userNameId returns the Id of inputText from the template&lt;br /&gt;This can be passed to the Home page something like this&lt;br /&gt;af:document intialFocusId="#{test.userNameId}"&lt;br /&gt;&lt;br /&gt;Solution 2: When user hits the enter key we need the login operationt o happen this can be achieved by setting the defaultCommand with the login button id.&lt;br /&gt;something like this: af:form defaultCommand="loginButton"&lt;br /&gt;&lt;br /&gt;Task Completed!! Time for Coffee.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-2128605179446601527?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/2128605179446601527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2010/02/login-page-default-focus-on-username.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/2128605179446601527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/2128605179446601527'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2010/02/login-page-default-focus-on-username.html' title='Login Page : Default focus on UserName field and Login operation on Enter Key'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7710152715178632961.post-4424426004960018189</id><published>2009-10-28T06:51:00.000-07:00</published><updated>2009-10-28T12:16:46.791-07:00</updated><title type='text'>Using ADF Faces popup with partialSubmit</title><content type='html'>&lt;p&gt;Recently I had tiff with popup functionality. So I decided to blog it out. The functionality I was implementing seemed simple at first but when I digged into several issues and improvisations.&lt;br /&gt;Lets start with the basic popup functionality.&lt;br /&gt;The popup functionality works with 2 components and&lt;br /&gt;1. Using the popup Add component to the commandButton. e.g. af:commandButton id="id1" af:showPopupBehavior triggerType="click" popupId="feedbackPopup" align="afterStart" alignId="pt_cl6" af:commandToolbarButton&lt;/p&gt;&lt;p&gt;2. Defining the popup Below/above/anywhere on the page Add the component af:popup id="feedbackPopup" contentDelivery="lazyUncached" af:panelWindow modal="true" closeIconVisible="false" &lt;/p&gt;&lt;p&gt;You can add the required inputText / outputText fields and a Save button inside panelWindow. &lt;/p&gt;&lt;p&gt;3.Now we want a partilaSubmit functionality, by cliking the Save button data is committed to the database and the popup closes. For this we set partilaSubmit to true on Save button. e.g. af:commandButton text="Save" id="id2" partialSubmit="true" actionListener="#{testBean.onSaveActionListener}" af:commandButton&lt;/p&gt;&lt;p&gt;4. We add a backing bean testBean.java which processes the actionListener. The onSaveActionListener method performs 2 operations a. Commit the data by invoking commit() on Appmodule transaction b. actionListener does not close the popup in save action hence we need to close it with a javascript after commit(). e.g. FacesContext context = FacesContext.getCurrentInstance(); String popupId = popup.getClientId(context); StringBuilder jscript = new StringBuilder(); jscript.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append ("'); ").append("if (popup.isPopupVisible()==true) { ").append("popup.hide();}"); ExtendedRenderKitService erks = Service.getService(context.getRenderKit(), ExtendedRenderKitService.class); erks.addScript(context, jscript.toString()); &lt;/p&gt;&lt;p&gt;5. we also need to add following to take care of popup component binding. Add this to af:popup on page binding="#{testBean.popup}"&lt;br /&gt;Add this to testBean.java private RichPopup popup; public void setFeedbackpopup(RichPopup fpopup) { this.popup = popup; } public RichPopup getpopup() { return popup; } &lt;/p&gt;&lt;p&gt;Any other suggestions to implement the same are welcome. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7710152715178632961-4424426004960018189?l=raniadflearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raniadflearning.blogspot.com/feeds/4424426004960018189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raniadflearning.blogspot.com/2009/10/using-adf-faces-popup-with.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/4424426004960018189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7710152715178632961/posts/default/4424426004960018189'/><link rel='alternate' type='text/html' href='http://raniadflearning.blogspot.com/2009/10/using-adf-faces-popup-with.html' title='Using ADF Faces popup with partialSubmit'/><author><name>Rani Deshmukh</name><uri>http://www.blogger.com/profile/15100069051342135235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_6qWx5yVppLg/TUcqVJM0anI/AAAAAAAAHh8/ScxYaNjndiA/s220/168797_10150118565951934_729816933_7824496_7292580_n.jpg'/></author><thr:total>3</thr:total></entry></feed>
