Google Analytics

Monday, December 28, 2015

ADF bean property value set


<af:commandButton text="Cancel" id="cbCan" partialSubmit="true"
actionListener="#{pageFlowScope.XxxBean.cancelOrderAL}"
binding="#{pageFlowScope.XxxUIBean.cbCancelOrder}"
partialTriggers="cb1"
disabled="#{!pageFlowScope.XxxBean.isCancelBtnEnable}"/>

Above code button disable logic in XxxUIBean and cbCancelOrder field is encapsulated.

public void setIsCancelBtnEnable(boolean isCancelBtnEnable) {
this.isCancelBtnEnable = isCancelBtnEnable;
}

public boolean isIsCancelBtnEnable() {
return isCancelBtnEnable;
}

Always use setter methods to set values. If we assign values directly to the field, it shows abnormal behavior (In above case one time button disable and another time button enable). Presentation

Wednesday, December 9, 2015

Infinite loop/afrLoop when deploying ADF application


Infinite loop apper when running (intergrated weblogic) the ADF application in development environment. Presentation

Solution:
Clear the browser sessions.

More Details:
http://vtkrishn.com/tag/_afrloop/

Tuesday, December 8, 2015

ADF_FACES-60098 -- RENDER_RESPONSE 6


ADF 11.1.2.4.0 I have faced below errors when run the application

ADF ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6

he expression "#{bindings}" evaluates to "null". Now using an empty RegionModel

Solution:

When add libraries make sure to check the 'Deployed by Dfault' option. Otherwise it will not aviable in server application deployment folder to refer run time.




C:\MWH\system11.1.2.4.39.64.36.1\o.j2ee\drs\XXXApp\XXXWebApp.war\WEB-INF\lib

Monday, December 7, 2015

ADF: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1.

If error occured when deploy the ADF Application (11.1.2.4.0) put below tags in web.xml file.
 An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1.


<jsp-config>
        <jsp-property-group>
            <url-pattern>*.jsff</url-pattern>
            <is-xml>true</is-xml>
        </jsp-property-group>
</jsp-config>



For mor inforemation:
http://fortunefusionminds.blogspot.com/2014/07/error-unreported-error-occurred-in-appc.html

Wednesday, December 2, 2015

ADF button action not call to bean logics

This type of issue occurs when application logic maintain disable and enable front end field which is required (any) validation applied.

When the application is runs according to the logic disabled field fire with the required validation and runtime front end can't see the validation due to disability of the input field. But validation is already fired and button action not working. Presentation