This content has been marked as final. Show 11 replies
There's a good example using ejb3 + adf:
Hi..1 person found this helpful
Hope following links you may helpful accomplish your task
But the EJB3 is not a pojo ?
This example is not covering the update part
I don't know if it is supported by the jdev bindings tool. However, You are able to implement whatever you want using managed beans + your service layer programatically.
Hi,1 person found this helpful
However, You are able to implement whatever you want using managed beans your service layer programatically.+
Sorry, but this is a wrong statement in regards to ADF. You can use a POJO data control and this then solves a lot of programming problems you have with your proposed solution. The POJO data control behaves similar to the EJB / JPA control.
jsteenbe, if you do one of the EJB / JPA CRUD tutorials on OTN then you get a good idea of how to work with the POJO data control. Or, you try
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples sample 72, which is a hands-on showing you how to use the POJO DC to hook up to a WS proxy client
Thanks Frank, I really didn't know if it was possible. Great article on adf code corner.
Hi i have tried many of the tutorials and examples regarding pojo dc but i will look into the ones you mention.
I do already have a working example but i want it to have the behaviour as using adf bc. If i for example want a commit of the page and thereby also the table based on the pojo dc i do not know what to pass to the method exposed in the dc.
I want it to pass a list containing the data class. I found that i could pass a list of jbo.row but i prefer a list of my own class if possible. I know you can do it with iterator.currentrow.provider.
A quick question - if you want to get the behavior you get with ADF BC, why not use ADF BC? Why code everything by hand with a POJO?1 person found this helpful
In 11.1.2 when you create a data-control from a Java class you'll be prompted for the option to create transactional method - you'll then get a stub that you'll need to fill with whatever logic your commit it suppose to do.
Yes that is a good question and the answer is that I want to implement an adapter like pattern (i am not into patterns), but I want to be table to dynamic change the underlying data implementation. That could mean that I need to shift from web service invoke to plain jdbc or adf bc ....
What I meant about the adf bc behaviour was that I wanted to copy the behaviour adf faces has when it is binding to a adf bc datacontrol. Is the 11.1.2 feature just a wizard and can the resulting stud also work on 22.214.171.124 ?
Hi Frank, I tried the ws example, but I think a user would prefer to change the department name directly in the table at the first page instead of clicking edit and then change, the same way as you would be able to with a standard adf faces table based on a adf bc entity.