In ADF development we face immediate attribute for a button quite frequently. Sometimes developers do not clearly understand what the meaning and impact for action behaviour it cause. Actually this attribute makes sense not just for UICommand (buttons), but for UIInput (input fields) as well. And by the way, its not an ADF invention, it comes from JSF (Apache MyFaces) framework.…
Category: ADF
How to populate View Object rows programmatically, without SQL?
I think that first thing beginner ADF developer gets familiar with is bussiness components (BC) and in particular View Objects. Thats the base and main axis of ADF BC. Most common usage is definately Entity or SQL Query based View Objects. But when facing a real world requirements, its not as rare case to build BC on some different kind…
How to add custom logging into ADF application?
Can’t imagine development without logging. Even in ADF 🙂 For some quick output into local WebLogic console – System.out.println is quite ok. But if we need to have it in more professional and persistent way – java logging tools come to action. In ADF we have ADFLogger class at our service. Naturally it is extended java.util.logging.Logger indeed. So here is…
How to deploy ADF application with different name using JDeveloper?
Sometimes there might be a case, when development team shares one WebLogic server instance and each developer needs to deploy and test the same application at the same time. Or whatever the reason it is, there are some simple steps needed to be accomplished in JDeveloper to have another instance of the same application just with different context root. Assuming…
How to execute bean method when switching tab in ADF?
Quite common requirement is to execute some logic when navigating between tabs in ADF application. Luckily in ADF there is a straight forward feature enabling you to do this easily. Its enough just to add disclosureListener to showDetailItem of panelTabbed component and point it to dedicated bean method. Like this: Listener method signature must contain DisclosureEvent parameter: Tiny sample application can be…
How to execute java expressions programmatically in ADF ?
Expression Language (EL) in java is powerful and convenient way to access necessary objects. In ADF it is commonly used as well. I suggest you a couple helper methods to execute methods and get values via EL: You may also need to pass parameters to method invoked by EL. Apparently EL does not support that. But there is a workaround,…
How to get LOV value instead of index when it is used in standalone ADF “selectOneChoice” component ?
Its a common issue in ADF to get a LOV value instead of index in ADF form. How to do that in collection context, for example – when we have “selectOneChoice” in table row cell, I’ve noted in another post. And that was really easy. Its more complicated when we need the same in “selectOneChoice” used in form, standalone component…
ADF How to access bind variable from view object row?
Problem I just faced a requirement to pass bind variable value to one of view object attributes LOV. It looks straight forward while we can provide view criteria and bind variable values to LOV’s view object via view accessor: I thought that it should be no problem just to write a groovy expression into parameters value field: adf.object.viewObject.myBindVariable But I’ve…
ADF application layout messed up after migration to 12.2.1 … What might be the reason ?
Problem: After migration of ADF application from 12.1.3 to 12.2.1 layout was messed up. In particular – component stretching was disordered. Reason: As ADF is going step by step to adaptive layouting, component stretching is optimized accordingly. In version 11.1.1.7 new context parameter was introduced: oracle.adf.view.rich.geometry.DEFAULT_DIMENSIONS. It basically tells what dimensions for stretchable components should be applied by default. For example…
JBO-26041: Failed to post data to database during “Update”… What might be the reason?
Problem: Exception during data save is thrown: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during “Update”: SQL Statement “UPDATE… It might be followed by similar to this one: java.sql.SQLException: Fail to construct descriptor: Unable to resolve type “NVARCHAR2″… Solution: Check if SQLType attribute of an entity/view object attribute being updated is correct. For example it can be set to…