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

How to reuse a View Object (VO) for different search criteria in multiple pages in ADF

Scenario: We need to display data in multiple JSF pages based on the single View Object (VO) with different WHERE condition for each of the JSF page. For this to achieve usually we will create one View Object (with WHERE … Continue reading

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

How to show a popup in JSPX page from a Managed Bean method

Usecase: The scenario is to perform the validation in the Managed bean method and in cases when it does not satisfy few conditions, we need to show up message in the popup to the User. To achieve this follow the … Continue reading

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