Tuesday, June 14, 2011

ADF, JSF 2.0 and Facelets

Release of Oracle JDeveloper 11.1.2.0 raised many questions on the support of JSF 2.0, Facelets, migration of existing ADF applications. Ofcourse there is no utility yet that could migrate current ADF application directly to the 11.1.2.0 platform but many questions can be answered by Franks article 'JavaServer Faces 2.0 Overview and Adoption Roadmap in Oracle ADF Faces and Oracle JDeveloper 11g'. If you are one interested to learn more on this, you can download the article here.

Saturday, June 11, 2011

How do I get an LOV / Select One Choice label / Display Attribute in bean?

This is one question that I see in forums all the time. You can find other solution of this issue in oracle forum along with my solution which goes as here:

1. Bind af:selectOneChoice to the bean say. testSOCbindings
2. Bind the f:selectItems to the bean say. testSOCSelectItems
3. Use below code:
Integer i = (Integer) getTestSOCbindings().getValue();
List silist = (List) getTestSOCSelectItems().getValue();

String val = silist.get(i.intValue()).getLabel();

How to access WSDL from weblogic server ?

This was one of the question that was posted a a use in Oracle Forum. If you are also looking for the similar one here is the solution:

In Weblogic server .. go to Home >Summary of Deployments
Expand your service application and go the webservice.. click on the web service link ..
You will be navigated to its details.. then click on Testing.. expand the service..

Here you should see WSDL link and Test Client link.. using test client you can even test your web service method.

oracle.jbo.NoDefException: JBO-25002: Definition .PageDef of type Form Binding Definition is not found.

ADF error stack is definetly not very user friendly and there are times when you solely get depenedend on forums or google to get some hint of the solution but one would also settle if you can figure the cause of it.

oracle.jbo.NoDefException: JBO-25002: Definition .PageDef of type Form Binding Definition is not found.
is one of those exceptions. There are couple of forum post post to it but solution is vague and its get hard to interpret what the solution was. Well, if you get into this issue here is the cause.

DataBinding.cpx is missing definitionFactories tags. So as a solution add below tag to the DataBinding.cpx inside Application Tag and before PageMap tag: