Monday, February 23, 2009

11G : How to create Declarative Component ?

Steps for creating Declarative Component in JDeveloper 11.1.1.0.1 ::

Step-1 : Create an Application(Ex, NeelApplication).

Step-2 : Select Project and choose NEW from the Context Menu.

Step-3 : Select JSF from Categories(Web Tier > JSF).

Step-4 : Select JSF Declarative Component than OK.

Step-5 : Put a Name(Ex, Neel_info) for Declarative Component in New windows.

Step-6 : Click on ADD TAG LIBRARY. A new Window will open.

Step-7 : Put the values for Tag_library_Name(ex,Neelmani), URL(ex, /Neelmani), Prefix(Ex, n)

Step-8 : Select + from facet Definitions.

Step-9 : put the value for Name(Ex, your_area).

Step-10: Click OK.

Step-11: Drag some UI component on Neel_info.jspx

Step-12: Go to Project Properties of the Application(select Project Properties from the context menu.))

Step-13: Select Deployment from Left side from the Project properties windows.

Step-14: Click NEW. than select ADF LIBRARY JAR FILE, than put a name. Click OK.

Step-15: Right click on the project than Deploy > Neelmani > to ADF Library JAR (wait for next few second)

Step-16: Copy the Path(where it deployed) from the LOG window.

Step-17: Open the Resource Palate(View > Resource Palate)

Step-18: In Resource palate (New Connection > File System).

Step-19: Put the Connection Name(Ex, Neelmaniconn).

Step-20: In Directory Path, paste the path(which you copied from the log window-in step16).

Step-21: Test Connection. Click OK.

Step-22: Explore the File system(In Resource palate).

Step-23: Right Click on the Jar file(Ex, Neelmani.jar) and Click on ADD TO PROJECT.

Step-24: If any warning cames, click on ADD JAR.

Step-25: Go to Component Palate. Declarative component(Neel_info) has been created under Neelmani(Tag lib).