Tag Archives: Managed bean

How to refresh the Iterator from the Managed Bean in ADF Mobile applciation.

When we want to programmatically refresh the Iterator “addressBookResultIterator” the was added in the AMX Page Bindings section from the Managed bean, we need to use the below code – //refresh the addressBookResultIterator to reflect the changes in the UI … Continue reading

Posted in ADF Mobile | Tagged , , , , | Leave a comment

How to Exit the application from the Managed bean in ADF Mobile.

When we want to exit the application programmatically from the Managed bean we need to use the below code – AdfmfContainerUtilities.invokeContainerJavaScriptFunction(“mobile.search.Customers“, “navigator.app.exitApp()“, new Object[] {}); “mobile.search.Customers” is the FeatureId in which we are using this code. You can get the … Continue reading

Posted in ADF Mobile | Tagged , , , | Leave a comment

How to execute the method that is added into the AMX page bindings section from the Managed bean.

We have a method “updatePocEmpView1” added in the AMX page bindings section and want to execute it from the Managed bean. We need to use the below code – AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext(); MethodExpression me = AdfmfJavaUtilities.getMethodExpression(“#{bindings.updatePocEmpView1.execute}”, Object.class, new Class[] … Continue reading

Posted in ADF Mobile | Tagged , , , | Leave a comment

How to get the loggedin Username from the Security context in AMX page and in the Managed bean in ADF Mobile application.

When we use the BasicAuth option for the Login page in ADF Mobile and when the User logged-in to the Mobile application – To displayed the logged-in user in the AMX page – <amx:outputText value=” #{securityContext.userName}” id=”ot1″ /> To get … Continue reading

Posted in ADF Mobile | Tagged , , , | Leave a comment

How to conditionally enable / disable the column contents in the ADF 11g table

Scenario: I have below contents in my table – In the “Remove Attachment” column have Delete Icon when clicked, it will deletes the record. I want to Enable this Delete Icon based on the Condition. Then it will look as … Continue reading

Posted in ADF (Application Development Framework) | Tagged , , , , , , , | 3 Comments

How to get the Current Date and Time in the Managed Bean?

In order to get the Current date and time in the managed bean, include the below method –   /**     * Get Current Date     * @return     */     public Date getCurrentDateTime()   {   return new Date(new … Continue reading

Posted in ADF (Application Development Framework) | Tagged , , , | Leave a comment

How to Create a Managed (Backing) Bean for any JSPX page in ADF 11g

We can create a Managed Bean in Two ways in ADF 11g – Approach 1: As shown below, While creating the JSF page, expand the “Page Implementation” section and select the radio button for “Automatically Expose UI Components in a … Continue reading

Posted in ADF (Application Development Framework) | Tagged , , , , , | 1 Comment