No methodActions in a module of the App application and access of backing bean

USNG ADF 12 c on Windows 7.

I've inherited an application that does not have methodActions defined in the pageDefs and uses a custom method to get the instance of the app module (return (appModule) getDCBindingContainer () .getDataControl () .getDataProvider ()) by supporting beans.

The latest I can remember seeing in a document is a bad practice.

All the places where the app module instance is acquired should be changed to methodActions? Or am I worried for nothing here?

Thanks for your opinion!

Kind regards

Dave

^ Well, for me, this is a no go to use the code you provided. You should not use the application module in the bean because it tends to violate the MVC pattern. You may have to implement a method of the application module, add to the interface and use via the pageDef as an action method customer. This seems to be more work but allows to encapsulate the business logic in the view layer. The advantage of using methods defined in the pagedef, is that they are handling errors the same way. There is no need to handle the error yourself. The framework know dangels done in methods (if you do not use pl/sql to change the db directly and does not synchronize the frame later).

request module is the interface that everyone should use.

Timo

Tags: Java

Similar Questions

Maybe you are looking for

  • Satellite A210: Random Questions after several blue screens

    This morning at the College, I started my laptop (satellite A210)After entering the password started... after 5 seconds, I got a blue screen SHORT (3 seconds)... This can happen 5 times...then I was really p * ssed - I booted in safe mode... do you h

  • HP Stream: Stream HP keyboard does not

    My flow HP keyboard just stopped working or I'll slap a button and another letter will be displayed on the screen. I bought it at Best Buy, but I don't have that manufacturer's warranty. How can I fix it?

  • Simple problem with a square wave and a Boolean LED

    Look, this is the case, Im doing a test for PCBS, it has an emergency switch and a sound signal. the buzzer is connected to the emergency with a microcontroller switch Case 1: Emergency button is not pressed, vibrator makes no noise (material) and th

  • WVC80N - no e-mail, despite all the previous advice of this forum

    Hi all Like many on this forum, my WVC80N will not send notifications by e-mail.  I tried every piece of advice I can find and do always no chance – are there options on the left, or do I just a lemon?  Here's my current situation: -On the motion, re

  • How to restore the items that were removed by mistake in the trash?

    I emptied my trash and now I can't find one of my photos.  Looks like two questions.  I noticed that all empty my trash, he emptied more 2 000 elements?  I assume these are my photos.  How can I get these pictures?  Help, please!