Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 5a55599

Browse files
committed
initial version of rh:methodListener.
Javadoc still needs some work
1 parent 37ceba3 commit 5a55599

21 files changed

+1405
-0
lines changed

.adf/META-INF/adf-config.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<adf-config xmlns="http://xmlns.oracle.com/adf/config" xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
3+
xmlns:config="http://xmlns.oracle.com/bc4j/configuration">
4+
<adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
5+
<adf-property name="adfAppUID" value="MultiActionListner.com.redheap.multiaction"/>
6+
</adf:adf-properties-child>
7+
<adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">
8+
<defaults changeEventPolicy="ppr" useBindVarsForViewCriteriaLiterals="true" useBindValuesInFindByKey="true"/>
9+
<startup>
10+
<amconfig-overrides>
11+
<config:Database jbo.locking.mode="optimistic"/>
12+
</amconfig-overrides>
13+
</startup>
14+
</adf-adfm-config>
15+
</adf-config>

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.data/
2+
**/classes/
3+
**/deploy/

Listener/Listener.jpr

+278
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
<?xml version = '1.0' encoding = 'UTF-8'?>
2+
<jpr:project xmlns:jpr="http://xmlns.oracle.com/ide/project">
3+
<hash n="component-versions">
4+
<value n="oracle.adfdt.controller.adfc.source.migration.AdfControllerSchemaMigrator" v="11.1.1.1.0"/>
5+
<value n="oracle.adfdt.controller.common.migrator.ProjectMigrator" v="11.1.1.1.0"/>
6+
<value n="oracle.adfdt.controller.jsf2.diagram.migrate.JsfNodeMigratorHelper" v="11.1.1.1.0"/>
7+
<value n="oracle.adfdt.controller.migrate.TrinidadDatabindingsProjectMigrator" v="11.1.2.0.0"/>
8+
<value n="oracle.adfdtinternal.dvt.datapresdt.migration.DVTDataMapMigrator" v="11.1.1.1.0.3"/>
9+
<value n="oracle.adfdtinternal.dvt.datapresdt.migration.DVTWebAppConfigurationMigrator" v="12.1.3.0.0"/>
10+
<value n="oracle.adfdtinternal.model.ide.migration.ProjectMigrator" v="11.1.1.1.0.11.1.1"/>
11+
<value n="oracle.adfdtinternal.model.ide.security.wizard.FormPageMigrator" v="11.1.1.0.0"/>
12+
<value n="oracle.adfdtinternal.model.ide.security.wizard.JpsFilterMigrator" v="11.1.1.1.0"/>
13+
<value n="oracle.adfdtinternal.model.ide.xmled.migration.ADFNodeMigrator" v="11.1.1.1.0.5"/>
14+
<value n="oracle.adfdtinternal.model.ide.xmled.migration.PageDefinitionParameterValueMigrator" v="11.1.1.1.0.5"/>
15+
<value n="oracle.adfdtinternal.model.ide.xmled.migration.WebXmlMigrator" v="11.1.1.1.0"/>
16+
<value n="oracle.adfdtinternal.view.common.migration.wizards.MigrationHelper" v="11.1.1.1.0.3"/>
17+
<value n="oracle.adfdtinternal.view.rich.binding.migration.JarResourceMigrator" v="11.1.1.1.0"/>
18+
<value n="oracle.adfdtinternal.view.rich.migration.ComponentIdNodeMigratorHelper" v="11.1.1.1.0.01"/>
19+
<value n="oracle.adfdtinternal.view.rich.migration.FacesLibraryVersionMigrator" v="11.1.1.1.0.1"/>
20+
<value n="oracle.ide.model.Project" v="12.1.3.0.0"/>
21+
<value n="oracle.ide.model.ResourcePathsMigrator" v="11.1.1.1.0"/>
22+
<value n="oracle.ideimpl.model.TechnologyScopeUpdateMigrator" v="11.1.2.0.0.5"/>
23+
<value n="oracle.jbo.dt.jclient.migrator.JCProjectMigrator" v="11.1.1.1.0"/>
24+
<value n="oracle.jbo.dt.jdevx.deployment.JbdProjectMigrator" v="11.1.2.0.0"/>
25+
<value n="oracle.jbo.dt.jdevx.ui.appnav.APAdfConfigMigrator" v="11.1.2.0.0"/>
26+
<value n="oracle.jbo.dt.jdevx.ui.appnav.APProjectMigrator" v="11.1.1.0.1.5"/>
27+
<value n="oracle.jbo.dt.migrate.ResourceBundlePathMigrator" v="11.1.1.0.1.5"/>
28+
<value n="oracle.jbo.dt.migration.ServiceInterfaceMigrator" v="11.1.1.1.0"/>
29+
<value n="oracle.jdeveloper.dbmodeler.Migration" v="12.1.1.0.0"/>
30+
<value n="oracle.jdeveloper.ejb.EjbMigrator" v="11.1.1.1.0"/>
31+
<value n="oracle.jdeveloper.library.ProjectLibraryMigrator" v="11.1.1.1.0"/>
32+
<value n="oracle.jdeveloper.model.OutputDirectoryMigrator" v="11.1.1.1.0"/>
33+
<value n="oracle.jdevimpl.deploy.jps.JpsDataMigrator" v="11.1.1.1.0"/>
34+
<value n="oracle.jdevimpl.deploy.migrators.DeploymentMigrator" v="12.1.2.0.1"/>
35+
<value n="oracle.jdevimpl.jsp.JspMigrator" v="11.1.1"/>
36+
<value n="oracle.jdevimpl.offlinedb.migration.OfflineDBProjectMigrator" v="12.1.1.0.0"/>
37+
<value n="oracle.jdevimpl.resourcebundle.XliffAddin$XliffMigratorHelper" v="11.1.1.1.0"/>
38+
<value n="oracle.jdevimpl.webapp.jsp.libraries.JspLibraryMigrator" v="11.1.1.1.4"/>
39+
<value n="oracle.jdevimpl.webapp.jsp.taglibraries.trinidad.migration.TrinidadLibraryVersionMigrator" v="11.1.1.1.0.1"/>
40+
<value n="oracle.jdevimpl.webapp.WebAppContentSetNodeMigratorHelper" v="11.1.1"/>
41+
<value n="oracle.jdevimpl.webapp.WebAppProjectNodeMigratorHelper" v="12.1.2.0.0"/>
42+
<value n="oracle.jdevimpl.webservices.rest.migration.RestLibraryMigrator" v="12.1.1.0.0"/>
43+
<value n="oracle.jdevimpl.webservices.rest.migration.RestPathMigrator" v="11.1.2.0.0"/>
44+
<value n="oracle.jdevimpl.webservices.WebServicesMigratorHelper" v="11.1.1.1.0"/>
45+
<value n="oracle.jdevimpl.xml.wl.WeblogicMigratorHelper" v="11.1.1.1.0"/>
46+
<value n="oracle.modeler.bmmigrate.management.Migration" v="11.1.1.1.0"/>
47+
<value n="oracle.toplink.workbench.addin.migration.PersistenceProjectMigrator" v="11.1.1.1.0"/>
48+
<value n="oracle.toplink.workbench.addin.migration.TopLinkProjectMigrator" v="11.1.1.1.0"/>
49+
</hash>
50+
<list n="contentSets">
51+
<string v="oracle.jdeveloper.model.J2eeSettings/webContentSet"/>
52+
<string v="oracle.mds.internal.dt.ide.MDSLibraryCustCSProvider/mdsContentSet"/>
53+
<string v="oracle.mds.internal.dt.ide.MDSADFLibVirtualNodeCSProvider/mdsLibVirtualNodeContentSet"/>
54+
<string v="oracle.jdeveloper.model.PathsConfiguration/javaContentSet"/>
55+
<string v="oracle.ide.model.ResourcePaths/resourcesContentSet"/>
56+
<string v="oracle.jdeveloper.offlinedb.model.OfflineDBProjectSettings/offlineDBContentSet"/>
57+
<string v="oracle.bm.commonIde.data.project.ModelerProjectSettings/modelersContentSet"/>
58+
<string v="oracle.adfdtinternal.model.ide.settings.ADFMSettings/adfmContentSet"/>
59+
<string v="oracle.toplink.workbench.addin/toplinkContentSet"/>
60+
</list>
61+
<value n="defaultPackage" v="com.redheap.methodlistener"/>
62+
<hash n="oracle.ide.model.TechnologyScopeConfiguration">
63+
<list n="technologyScope">
64+
<string v="ADF_FACES"/>
65+
<string v="ADFm"/>
66+
<string v="JSF"/>
67+
<string v="JSP"/>
68+
<string v="Java"/>
69+
<string v="TRINIDAD"/>
70+
<string v="XML"/>
71+
</list>
72+
</hash>
73+
<hash n="oracle.jdeveloper.compiler.OjcConfiguration">
74+
<value n="internalEncoding" v="UTF-8"/>
75+
<value n="webIANAEncoding" v="UTF-8"/>
76+
</hash>
77+
<hash n="oracle.jdeveloper.deploy.dt.DeploymentProfiles">
78+
<hash n="profileDefinitions">
79+
<hash n="method-listener">
80+
<hash n="archiveOptions">
81+
<value n="hasManifest" v="true"/>
82+
</hash>
83+
<hash n="fileGroups">
84+
<list n="groups">
85+
<hash>
86+
<list n="contributors">
87+
<hash>
88+
<value n="type" v="2"/>
89+
</hash>
90+
<hash>
91+
<value n="type" v="7"/>
92+
</hash>
93+
</list>
94+
<value n="displayName" v="Project Output"/>
95+
<hash n="filters">
96+
<list n="rules">
97+
<hash>
98+
<value n="pattern" v="**"/>
99+
<value n="type" v="0"/>
100+
</hash>
101+
</list>
102+
</hash>
103+
<value n="internalName" v="project-output"/>
104+
<value n="type" v="1"/>
105+
</hash>
106+
</list>
107+
</hash>
108+
<url n="jarURL" path="deploy/method-listener.jar"/>
109+
<value n="profileClass" v="oracle.jdeveloper.deploy.jar.ArchiveProfile"/>
110+
<value n="profileName" v="method-listener"/>
111+
</hash>
112+
</hash>
113+
<list n="profileList">
114+
<string v="method-listener"/>
115+
</list>
116+
</hash>
117+
<hash n="oracle.jdeveloper.model.J2eeSettings">
118+
<value n="j2eeWebAppName" v="MultiActionListner-Listener-webapp"/>
119+
<value n="j2eeWebContextRoot" v="MultiActionListner-Listener-context-root"/>
120+
</hash>
121+
<hash n="oracle.jdevimpl.config.JProjectLibraries">
122+
<list n="exportedReferences">
123+
<hash>
124+
<value n="id" v="JSP Runtime"/>
125+
<value n="isJDK" v="false"/>
126+
</hash>
127+
<hash>
128+
<value n="id" v="JSF 2.1"/>
129+
<value n="isJDK" v="false"/>
130+
</hash>
131+
<hash>
132+
<value n="id" v="JSTL 1.2"/>
133+
<value n="isJDK" v="false"/>
134+
</hash>
135+
<hash>
136+
<url n="id" path="../../../Users/user/AppData/Roaming/JDeveloper/system12.1.3.0.41.140521.1008/o.jdeveloper/Adf_121300_1008_source.zip.library"/>
137+
<value n="isJDK" v="false"/>
138+
</hash>
139+
<hash>
140+
<value n="id" v="ADF Faces Runtime 11"/>
141+
<value n="isJDK" v="false"/>
142+
</hash>
143+
<hash>
144+
<value n="id" v="ADF Common Web Runtime"/>
145+
<value n="isJDK" v="false"/>
146+
</hash>
147+
</list>
148+
<list n="libraryReferences">
149+
<hash>
150+
<value n="id" v="JSP Runtime"/>
151+
<value n="isJDK" v="false"/>
152+
</hash>
153+
<hash>
154+
<value n="id" v="JSF 2.1"/>
155+
<value n="isJDK" v="false"/>
156+
</hash>
157+
<hash>
158+
<value n="id" v="JSTL 1.2"/>
159+
<value n="isJDK" v="false"/>
160+
</hash>
161+
<hash>
162+
<url n="id" path="../../../Users/user/AppData/Roaming/JDeveloper/system12.1.3.0.41.140521.1008/o.jdeveloper/Adf_121300_1008_source.zip.library"/>
163+
<value n="isJDK" v="false"/>
164+
</hash>
165+
<hash>
166+
<value n="id" v="ADF Faces Runtime 11"/>
167+
<value n="isJDK" v="false"/>
168+
</hash>
169+
<hash>
170+
<value n="id" v="ADF Common Web Runtime"/>
171+
<value n="isJDK" v="false"/>
172+
</hash>
173+
</list>
174+
</hash>
175+
<hash n="oracle.jdevimpl.config.JProjectPaths">
176+
<url n="outputDirectory" path="classes/"/>
177+
</hash>
178+
<hash n="oracle.jdevimpl.webapp.facelets.libraries.ProjectFaceletsTagLibraries">
179+
<list n="facelets-tag-libraries">
180+
<hash>
181+
<hash n="baseLibrary">
182+
<value n="name" v="JSF Core"/>
183+
<value n="version" v="2.1"/>
184+
</hash>
185+
<value n="name" v="JSF Core"/>
186+
<value n="taglibURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/com/sun/faces/metadata/taglib/facelets_jsf_core.taglib.xml"/>
187+
<value n="URI" v="http://java.sun.com/jsf/core"/>
188+
<value n="version" v="2.1"/>
189+
</hash>
190+
<hash>
191+
<hash n="baseLibrary">
192+
<value n="name" v="JSF HTML"/>
193+
<value n="version" v="2.1"/>
194+
</hash>
195+
<value n="name" v="JSF HTML"/>
196+
<value n="taglibURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/com/sun/faces/metadata/taglib/html_basic.taglib.xml"/>
197+
<value n="URI" v="http://java.sun.com/jsf/html"/>
198+
<value n="version" v="2.1"/>
199+
</hash>
200+
<hash>
201+
<hash n="baseLibrary">
202+
<value n="name" v="Facelets Composite"/>
203+
<value n="version" v="2.1"/>
204+
</hash>
205+
<value n="name" v="Facelets Composite"/>
206+
<value n="taglibURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/com/sun/faces/metadata/taglib/composite.taglib.xml"/>
207+
<value n="URI" v="http://java.sun.com/jsf/composite"/>
208+
<value n="version" v="2.1"/>
209+
</hash>
210+
<hash>
211+
<hash n="baseLibrary">
212+
<value n="name" v="Facelets"/>
213+
<value n="version" v="2.1"/>
214+
</hash>
215+
<value n="name" v="Facelets"/>
216+
<value n="taglibURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/com/sun/faces/metadata/taglib/ui.taglib.xml"/>
217+
<value n="URI" v="http://java.sun.com/jsf/facelets"/>
218+
<value n="version" v="2.1"/>
219+
</hash>
220+
<hash>
221+
<hash n="baseLibrary">
222+
<value n="name" v="Mojarra Ext Utils"/>
223+
<value n="version" v="2.1"/>
224+
</hash>
225+
<value n="name" v="Mojarra Ext Utils"/>
226+
<value n="taglibURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/META-INF/mojarra_ext.taglib.xml"/>
227+
<value n="URI" v="http://mojarra.dev.java.net/mojarra_ext"/>
228+
<value n="version" v="2.1"/>
229+
</hash>
230+
<hash>
231+
<hash n="baseLibrary">
232+
<value n="name" v="JSTL"/>
233+
<value n="version" v="2.1"/>
234+
</hash>
235+
<value n="name" v="JSTL"/>
236+
<value n="taglibURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/com/sun/faces/metadata/taglib/jstl-core.taglib.xml"/>
237+
<value n="URI" v="http://java.sun.com/jsp/jstl/core"/>
238+
<value n="version" v="2.1"/>
239+
</hash>
240+
<hash>
241+
<hash n="baseLibrary">
242+
<value n="name" v="JSTL Functions"/>
243+
<value n="version" v="2.1"/>
244+
</hash>
245+
<value n="name" v="JSTL Functions"/>
246+
<value n="taglibURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/com/sun/faces/metadata/taglib/jstl-fn.taglib.xml"/>
247+
<value n="URI" v="http://java.sun.com/jsp/jstl/functions"/>
248+
<value n="version" v="2.1"/>
249+
</hash>
250+
</list>
251+
</hash>
252+
<hash n="oracle.jdevimpl.webapp.jsp.libraries.model.ProjectTagLibraries">
253+
<list n="tag-libraries">
254+
<hash>
255+
<hash n="baseLibrary">
256+
<value n="name" v="JSF Core"/>
257+
<value n="version" v="2.1"/>
258+
</hash>
259+
<value n="jspVersion" v="2.1"/>
260+
<value n="name" v="JSF Core"/>
261+
<value n="tldURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/META-INF/jsf_core.tld"/>
262+
<value n="URI" v="http://java.sun.com/jsf/core"/>
263+
<value n="version" v="2.1"/>
264+
</hash>
265+
<hash>
266+
<hash n="baseLibrary">
267+
<value n="name" v="JSF HTML"/>
268+
<value n="version" v="2.1"/>
269+
</hash>
270+
<value n="jspVersion" v="2.1"/>
271+
<value n="name" v="JSF HTML"/>
272+
<value n="tldURL" v="@oracle.home@../oracle_common/modules/oracle.jsf_2.1/jsf-impl.jar!/META-INF/html_basic.tld"/>
273+
<value n="URI" v="http://java.sun.com/jsf/html"/>
274+
<value n="version" v="2.1"/>
275+
</hash>
276+
</list>
277+
</hash>
278+
</jpr:project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<faces-config version="2.1" xmlns="http://java.sun.com/xml/ns/javaee">
3+
4+
</faces-config>

Listener/public_html/WEB-INF/web.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version = '1.0' encoding = 'UTF-8'?>
2+
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4+
version="3.0">
5+
<servlet>
6+
<servlet-name>Faces Servlet</servlet-name>
7+
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
8+
<load-on-startup>1</load-on-startup>
9+
</servlet>
10+
<servlet-mapping>
11+
<servlet-name>Faces Servlet</servlet-name>
12+
<url-pattern>/faces/*</url-pattern>
13+
</servlet-mapping>
14+
</web-app>

Listener/src/META-INF/rh.taglib.xml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version = '1.0' encoding = 'windows-1252'?>
2+
<facelet-taglib xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
4+
version="2.0" xmlns="http://java.sun.com/xml/ns/javaee">
5+
<namespace>http://www.redheap.com/rh</namespace>
6+
<tag>
7+
<tag-name>methodListener</tag-name>
8+
<handler-class>com.redheap.methodlistener.MethodListenerHandler</handler-class>
9+
<!-- need to list all attributes here for editor (and code completion) in JDeveloper -->
10+
<attribute>
11+
<name>method</name>
12+
<required>true</required>
13+
<type>javax.el.MethodExpression</type>
14+
<!-- method signature for JDeveloper design time support -->
15+
<method-signature>void myMethod(javax.faces.event.FacesEvent)</method-signature>
16+
</attribute>
17+
<attribute>
18+
<description>
19+
the event type to listen for. The legal values are: action, calendar, calendarActivity,
20+
calendarActivityDurationChange, calendarDisplayChange, contextInfo, dialog, disclosure, focus, item, launch,
21+
launchPopup, poll, popupFetch, query, queryOperation, rangeChange, regionNavigation,
22+
return, returnPopupData, returnPopup, rowDisclosure, selection, sort, and valueChange.
23+
</description>
24+
<name>type</name>
25+
<required>true</required>
26+
<type>oracle.adf.view.rich.event.BasePolytypeListener.EventType</type>
27+
</attribute>
28+
</tag>
29+
</facelet-taglib>

0 commit comments

Comments
 (0)