My Oracle Support Banner

ADF Search Form does not Work when Portletized (Doc ID 469595.1)

Last updated on AUGUST 07, 2023

Applies to:

Oracle WebCenter Portal - Version 11.1.1.2.0 and later
Information in this document applies to any platform.
 

Symptoms

Sample Search form from Ajax Transactions Using ADF and JavaServer Faces does not work even without including the Ajax code to it.
The portlet cannot enter the Find mode, it keeps coming back in its original state.

Steps To Reproduce:
1. Create a new Application based on the template Web Application [JSF, ADF BC].
2. Create a new entity object based on Employees of the Oracle HR demo schema and call it Employees.
3. Create a new view object based on that entity object called AllEmployees. This view object will be used to create the query-by-example form and results table.
4. Create an application module EmployeeService, exposing AllEmployees as AllEmployees1 through the DataModel screen.
5. Create a new JSF Page employeeSearch.jsp, select the Do Not Automatically Expose UI Components in a Managed Bean option.
6. With the new page in the editor, open the Data Control Palette and drag and drop the AllEmployees1 collection onto the page as an ADF Search Form.
7. Delete all of the fields except the FirstName, LastName and Email, leaving the command buttons in place as well.
8. Drag and drop the AllEmployees1 collection again, dropping it beneath the search form as an ADF Read-Only table. Trim down the number of columns displayed in the table if you wish.
9. Run the JSP employeeSearch.jsp and confirm that the JSP works fine, for example with the following steps:

a. Click on Find to enter the Find Mode.
b. Enter King into the Last Name field.
c. Click on Execute the execute the query and notice that it returns all the records with the Last Name King.

10. Portletize the ADF Application with the following steps:

a. Add the Portlet Faces Bridge to your project
b. Create a new portlet.xml (Portlet Deployment Descriptor
c. Specify the following content in the portlet.xml:


11. Create a new WAR Deployment Profile.
12. Deploy the portlet to a WSRP enabled OC4J instance.
13. Register the Producer to a 10.1.4.0 Portal.
14. Add the portlet to a page.
15. Test the portlet and notice that it's not working:

a. Click on Find and notice that it does not enter the Find mode.
b. Clear the following fields:
     YourFirstName
     YourEmail
      and specify King to the YourLastName field.
c. Click on Execute and notice that the form comes back in its original state
d. The pagination seems to work ok, Clicking on Next 10 returns the next page correctly, however, the find does not work.



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.