tag:blogger.com,1999:blog-5874979429188093780.post8655467401146418902..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: JDeveloper 11g - CRUD in ADF Form ComponentAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-5874979429188093780.post-33502146644885026092016-08-29T14:03:10.064+02:002016-08-29T14:03:10.064+02:00Google closed download service for very old sample...Google closed download service for very old sample apps. Sorry.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-26771344318830136372016-08-29T14:00:05.235+02:002016-08-29T14:00:05.235+02:00very nice post
But how can download Sample Applic...very nice post<br /><br />But how can download Sample Application.Online Storehttps://www.blogger.com/profile/01854698393464828880noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-25035276352511367912015-05-11T12:51:34.999+02:002015-05-11T12:51:34.999+02:00hello great job but i would like to ask how you se...hello great job but i would like to ask how you set the isNewRow value <br />to false at the first time Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-55361685608393656542015-03-25T22:55:16.822+01:002015-03-25T22:55:16.822+01:00There is a topic within ADF DataControls; Enabling...There is a topic within ADF DataControls; Enabling Custom CRUD Operations in a Bean Data Control.<br />Having gone through it I need some assistance; Have created a Simple class with Collection setter and getter. After creating datacontrol from it I was able to see all the operations. How can they be customized so as I can use jdbc to create and delete record from the database. Help with any sample will be highly welcomed.Unknownhttps://www.blogger.com/profile/09524109792534047716noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-25581739482927533532014-01-11T20:26:03.357+01:002014-01-11T20:26:03.357+01:00Yes, I have blog post about it: http://andrejusb.b...Yes, I have blog post about it: http://andrejusb.blogspot.com/2011/02/createwithparams-operation-for-oracle.html<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-35467739579407164362014-01-11T20:16:52.905+01:002014-01-11T20:16:52.905+01:00Hi All,
Can someone help me to implement createwit...Hi All,<br />Can someone help me to implement createwithparameter operation in ADF ?Anonymoushttps://www.blogger.com/profile/18093918205917237453noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-75745041927867049052011-03-14T18:06:08.086+01:002011-03-14T18:06:08.086+01:00Hi Andrejus, I'm faceing troubles when I'm...Hi Andrejus, I'm faceing troubles when I'm using refresh Row.REFRESH_UNDO_CHANGES, The problem presents when I have a view object with a base entity object and other entity objects working as references ... the framework always raise a validation about need the required fields of the referenced entities, but I dont understand this behavior, because I create the entities as reference usage ... Could you help me?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-90193514101198570012010-09-16T07:25:56.909+02:002010-09-16T07:25:56.909+02:00Hello,
You can contact me for Red Samurai advance...Hello,<br /><br />You can contact me for Red Samurai advanced ADF training/coaching... We can help to speed up your project and make sure all on right track.<br /><br />Let me know.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-62718576429285255352010-09-15T14:36:18.651+02:002010-09-15T14:36:18.651+02:00Hey Andrejus how did you hide your navigation butt...Hey Andrejus how did you hide your navigation buttons when you press create? Did you use rendered or some other property?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-4326520728029530742010-09-15T13:55:51.476+02:002010-09-15T13:55:51.476+02:00Andrejus when I press create and insert data for a...Andrejus when I press create and insert data for a new row. I press commit and the data commits. I then press commit again (as a test see) and I get an error message in firefox, but there is nothing in Jdeveloper, no error message. What could be causing this? The message is quite long so I won't be posting it at this time but if you want me to I will.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-86863903091104747522010-09-15T10:32:40.597+02:002010-09-15T10:32:40.597+02:00Hi,
I have double checked this app on last JDev v...Hi,<br /><br />I have double checked this app on last JDev version. Yes, it have incorrect Undo behavior as you describe. You can fix it by adding this code (Commit after Rollback invocation):<br /><br />BindingContainer bindings = getBindings();<br /> OperationBinding operationBinding = bindings.getOperationBinding("Commit");<br /> operationBinding.execute();<br /><br />You should add this code in undoButton_action function, first IF statement.<br /><br />Regarding EL expressions..., you cant user *.execute inside Rendered property. Because *.execute invokes action.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-71371618209346003982010-09-14T14:37:41.954+02:002010-09-14T14:37:41.954+02:00HeY Andrejus what el expression would you use for ...HeY Andrejus what el expression would you use for the rendered property of navigation buttons, so that when the user clicks Create, they aren't rendered (but only in that context)<br /><br />I seem to either render it all the time or not at all. Here is my code<br /><br />rendered=#{!bindings.CreateInsert.execute}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-56325382859968478152010-09-14T13:10:55.582+02:002010-09-14T13:10:55.582+02:00Thanks Andrejus, I downloaded it from this page so...Thanks Andrejus, I downloaded it from this page so if it works for you could you post me the version you have so that I can check it out, see if its my machineAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-36958862471725258122010-09-14T12:35:42.925+02:002010-09-14T12:35:42.925+02:00I believe it was working as you describe. But, I w...I believe it was working as you describe. But, I will check today with latest release. Will let you know.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-75179791696603469242010-09-14T12:33:48.441+02:002010-09-14T12:33:48.441+02:00Hello Andrejus.
The listener is mapped to the und...Hello Andrejus.<br /><br />The listener is mapped to the undo button and the action is the undo button method as defined in the main.java. From what I saw the action calls the rollback but the pop up still comes up. Does it work for you? I downloaded it from here, try doing that and then check if when you change something and then press undo, can you navigate without pressing save.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-40956389188474642102010-09-14T12:24:04.342+02:002010-09-14T12:24:04.342+02:00Hello,
It should work fine with Rollback operatio...Hello,<br /><br />It should work fine with Rollback operation and resetActionLister mapped to Undo button.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-86883182074827321432010-09-14T11:51:06.620+02:002010-09-14T11:51:06.620+02:00Ok I got somewhere but here is something that is d...Ok I got somewhere but here is something that is definetly a valid question. In your example, when you make a change and then press undo, the pop up will still come up if you try to navigate using the buttons. As if you didn't undo the changes at all. Could you adress this, maybe tell me what to change so that when undo is done it doesn't pop up anyomoreAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-39411476931854213882010-09-14T10:10:17.680+02:002010-09-14T10:10:17.680+02:00I think I actually found the code
public Stri...I think I actually found the code <br /><br />public String prviButton_action() {<br /> if(((Boolean)JSFUtils.getManagedBeanValue("bindings.Commit.enabled")) == false) {<br /> BindingContainer bindings = getBindings();<br /> OperationBinding operationBinding = bindings.getOperationBinding("Prvi");<br /> Object result = operationBinding.execute();<br /> if (!operationBinding.getErrors().isEmpty()) {<br /> return null;<br /> }<br /> } else {<br /> FacesContext context = FacesContext.getCurrentInstance();<br /> context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Save or Undo Changes First!", null));<br /> }<br /> <br /> return null;<br /> }<br /><br />But even when I copy it for my First button (just to test it out) it doesn't work. When I make changes and press the button nothing happens, there is no dialog that pops up. Even though I have the JSF Utils thing in my project (should it be in some particular folder in order to work?)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-60770198515175183482010-09-14T10:06:09.677+02:002010-09-14T10:06:09.677+02:00Hey Andreus I've been going over your project ...Hey Andreus I've been going over your project trying to recreate your functionality in my project but am having trouble. In your project the changes pending dialog opens up when I try to navigate away from the record which I changed but I can't see it anywhere in your web page. Is it automatically called from JSFUtils bean? If so I would guess you call it from your Main bean but what code is this? Could you point me to it? Thanks in advanceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-70113897955356747722010-09-13T13:05:03.182+02:002010-09-13T13:05:03.182+02:00Hi,
There is no need to create accessors for ever...Hi,<br /><br />There is no need to create accessors for every component. You can go to component properties screen and find Binding property, it will be one of the last properties. Define binding name and it will generate accessor.<br /><br />In Red Samurai, we are offering advanced ADF coaching, drop me an email, if you are interested.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-1124345551040488302010-09-13T11:53:08.576+02:002010-09-13T11:53:08.576+02:00I double clicked the next button on my page and in...I double clicked the next button on my page and in the dialog created a backing bean like in your example. I copied all the imports from your backing bean to mine. I then created the JSFUtil class and copied yours into it and then imported it into the main backing bean just like yours. The problem I am having is I can't generate accesors in my main backing bean. I have to double click everything in my page in order for it to happen and even then I don't get the <br />private richform Form1 like you do.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-90634826048474209802010-09-13T09:45:21.061+02:002010-09-13T09:45:21.061+02:00Hi Andreus I have a similar functionality needed a...Hi Andreus I have a similar functionality needed and downloaded your link but not sure how you did this. Any chance you could point me to a step by step tutorial or just guide me through it?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-3903409032461273662010-05-02T02:19:04.163+02:002010-05-02T02:19:04.163+02:00Hi Andrejus,
Is it possible to create a form to i...Hi Andrejus,<br /><br />Is it possible to create a form to insert a new record using only one submit button?<br /><br />Currently I add createInsert and Commit buttons from Data Controls' operations. I'd like to do that using just one button.<br /><br />Thanks, StewStewnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-63025601626313791032010-04-16T09:19:26.127+02:002010-04-16T09:19:26.127+02:00Thanks Andrejus
This blog article covers how ADF ...Thanks Andrejus<br /><br />This blog article covers how ADF 11g can be used for CRUD Operations.<br /><br />http://blogs.oracle.com/fusionmiddlewarereallife/adf_11g_crud_operations_on_a_master_detail_table.html<br /><br />My other ADF 11g related articles are at<br /><br />http://jamessmith73.wordpress.com/<br /><br />which covers basics of ADF like working with variables, task flows, creating portlets, publish and subscribe events etc<br /><br />Regards<br />James [ Madhu ]Madhusudhan Raohttps://www.blogger.com/profile/15431468495660901928noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-39002798043567350752010-04-13T09:37:53.395+02:002010-04-13T09:37:53.395+02:00Sure, thanks for asking - post a link here.
Andre...Sure, thanks for asking - post a link here.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.com