JDeveloper 11g ADF. Problem popup.show (JavaScript)
At the sight, I added the beforPhase function. I have this feature (in the java code), I added the af:toolbar button:-button = new RichCommandButton();
-button.setId ("Test");
-button.setText ("Text");
-button.setShortDesc ("short description");
Next, I added clientListener:
-ClientListenerSet value = button.getClientListeners ();
-If (value == null) {}
-value = new ClientListenerSet();
-button.setClientListeners (set);
- }
-set.addListener ("action", "callMe");
-toolbar.add (button);
callMe is JavaScript function in the js file.
-{callMe (event)}
-mybutton = event.getSource ();
-mybuttonid = mybutton.getClientId ();
-var popup is AdfPage.PAGE.findComponent ('data');.
-alert ("Hello" + popup);
-advice var = {align: "before_end"};
-popup.show (hints);
-event.cancel ();
- }
In view, I had the simple popup:
-< af:popup id = "data" >
-af:dialog title = 'Test' >
-af:inputDate label = "Label 1" / >
-< / af:dialog >
-< / af:popup >
When I clicked on the button, the alert was displayed (Message: Hello AdfRichPopup oracle.adf.RichPopup id = data), but does not popup.
When I added the file jspx button, it works.
What I've done wrong?
Rafal Smolarek
Published by: ADFFan on 2009-02-23 10:30
Edited by: ADFFan 2009-02-23 10:35
Edited by: ADFFan 2009-02-23 10:36
Edited by: ADFFan 2009-02-23 10:38
Try to set partial of submit button to true.
Tags: Java
Similar Questions
-
Problem with competent inputFile in Jdeveloper 11g ADF
Hello
I use a competent inputFile in jsff page where the user can browse the file system, select the file in order to to store in the database.
I created a method of valueChangListener for this component which deal with this file and place it in db.
The problem is:
Once the user selects the file it appears for one second in the page it disappears and the valueChangeListener is not called.
Note: the AutoSubmit regularity is set to true for this competent. I use jdeveloper with ADF 11g.
Thank you
Hello
I guess you are missing the usesUpload property for the tag form enclosing in your page:
It will be useful,
Jose. -
Where is the HTML of JDeveloper 11g ADF FACES?
I use JDeveloper 11.1.1.2.0 for my project. I remembered in 10g I a list of HTML tags such as, afh:tableLayout, afh:cellFormat, etc. under ADF FACES HTML package. However, in new JDeveloper 11 g, I saw that ADF carrots and there is no ADF Faces HTML tag. They are always available in 11g? If so, how can I install these tags in JDeveloper 11 g?You will need to add the components of the Trinity to your project - tags are there.
But the question is if you really need to use these components, or maybe the layout components that provide the ADF Faces will be enough for you. -
ADF Popup showing not the responsibility of fragment
Hello
I am calling a bean method in the accessor Get of CommandLink to the load in the binder to a command link defined in the bean, so when this fragment is called from another fragment then
in this method I m did some checking and based on a specific condition, I have popup.show but it does not show the popup code does not any exception.
public RichCommandLink getC1() {}
PopulateData();
return to c1;
}
Now, in populatedata, I popup shown for some disorders but when fragment is called for the first time it does not show the popup, but same populatedata is called the fragment button
so when I click the button, the popup is displayed correctly.
So if I understand correctly the first time getC1 is returned when the fragment load, so how this popup appears in this...
Public Sub populatedata()
{
If...
{
System.out.println ("popup display");
RichPopup.PopupHints p2 = new RichPopup.PopupHints ();
P1. Show (P2);
System.out.println ("after the popup display");
}
}
In the newspapers, I see the two system messages, you guys can suggest me how to get this popup appears when the fragment of loading for the first time and the get accessor for the c1 is going to get fired.
JDeveloper version: 11.1.2.3.0
Kind regards
Hello
you have debugged the method call to prove that it is called at all? Instead of a binding component as a trigger, you can try a value property, for example on a hidden output text element?
Since you're on JDeveloper 11 g R2, the use of the events of the JSF 2 system becomes also possible. The event system would be added to a component on the fragment (for example the fragment root layout container) and then listen to the phase of rendering pre-rendered.
See: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/108-triggerpopupinregion-1994836.pdf
Frank
-
Tomcat 6 with 11g ADF JSF application startup problem!
Hello!
I have a problem when I start my request of 11g ADF JSF on Tomcat 6 Server. Here is the stack trace:
javax.servlet.ServletException: cannot instantiate the class: javax.faces.component.UIViewRoot.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:278)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:118)
first cause
javax.faces.FacesException: failed to instantiate the class: javax.faces.component.UIViewRoot.
com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1029)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:550)
com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:334)
javax.faces.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:132)
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:118)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:524)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:250)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:278)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:118)
first cause
java.lang.LinkageError: violation of constraint of charger: charger (org/apache/catalina/loader/StandardClassLoader instance) launched previously loading for another type with the name ' javax/el/ValueExpression.
java.lang.ClassLoader.defineClass1 (Native Method)
java.lang.ClassLoader.defineClass (unknown Source)
java.security.SecureClassLoader.defineClass (unknown Source)
java.net.URLClassLoader.defineClass (unknown Source)
java.net.URLClassLoader.access$ 000 (unknown Source)
java.net.URLClassLoader$ 1.run (unknown Source)
java.security.AccessController.doPrivileged (Native Method)
java.net.URLClassLoader.findClass (unknown Source)
java.lang.ClassLoader.loadClass (unknown Source)
java.lang.ClassLoader.loadClass (unknown Source)
java.lang.ClassLoader.loadClassInternal (unknown Source)
java.lang.Class.getDeclaredConstructors0 (Native Method)
java.lang.Class.privateGetDeclaredConstructors (unknown Source)
java.lang.Class.getConstructor0 (unknown Source)
java.lang.Class.newInstance0 (unknown Source)
java.lang.Class.newInstance (unknown Source)
com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1027)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:550)
com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:334)
javax.faces.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:132)
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:118)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:524)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:250)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:278)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:118)
It's any problem that arised due to .jar files added to / TOMCAT/lib?
Pots of / TOMCAT/lib:
activation.jar
adflogginghandler.jar
ADF-richclient-api - 11.jar
ADF-richclient-impl - 11.jar
ADF-share - base.jar
ADF-share - ca.jar
ADF-share - support.jar
annotations - api .jar
Catalina.jar
Catalina - ant.jar
Catalina - ha.jar
Catalina - tribes.jar
com.bea.Core.descriptor_1.4.0.0.jar
com.bea.Core.Management.Core_2.3.0.0.jar
com.bea.Core.utils.classloaders_1.4.0.0.jar
com.bea.Core.utils.full_1.4.0.0.jar
com.bea.Core.WebLogic.Security.identity_1.1.0.0.jar
com.bea.Core.WebLogic.Security.wls_1.0.0.0_5 - 0-2 - 0.jar
DMS.jar
El - api .jar
IdentityStore.jar
Jasper.jar
Jasper - el.jar
Jasper - jdt.jar
javax77.jar
jmxframework.jar
jmxspi.jar
JPS - api .jar
JPS-.jar
JPS - ee.jar
JPS - internal .jar
JPS - wls.jar
JSF - api .jar
JSF - ri .jar
JSP - api-.jar
OC4J - internal .jar
ojdbc6dms_g.jar
servlet - api .jar
Sun-Commons - beanutils.jar
Sun-Commons-depends on
Sun-Commons - digester.jar
Sun-commons - logging.jar
Tomcat - coyote.jar
Tomcat - dbcp.jar
Tomcat i18n - are .jar
Tomcat-i18n-fr
Tomcat i18n - ja.jar
Trinidad - api .jar
Trinidad - impl.jar
WebLogic.jar
WebServiceClient.jar
wlclient.jar
WLS - api .jar
wseeclient.jar
xmlparserv2.jar
If you've noticed here exist a few pots of Weblogic, all of these files were added by steps, that means that the process was:
1. run tomcat
2 analyze the errors
3. Add the missing jar file
4. run again
{color: #ff0000} Please HELP! {color}Hello
I can't say for sure, but it sounds like you have the same library placed in folder application library web and common Tomcat library directory. Depending on where you place these libraries, they will be charged by the classloader of the application or the parent Tomcat ClassLoader.
In other words, I believe that you have a loaded library file lib webapplication instead of the loading in the parent ClassLoader.Florin
-
Mix ADF Faces with HTML, JavaScript, CSS, JSTL question
Dear all,
The project is now starting to deploy to the production server. When we try to deploy to the production server who made a lot of mistake. As this used widely used project mix ADF faces with
HTML/JavaScript/CSS/JSTL. I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?
There is in the project
1 mix of tags html with ADF Faces components
2. the use of JavaScript/CSS inline
3. mix the JSF/ADF Faces and JSTL tags
Help me how to address this issues as well as links to useful blog.
JDeveloper IDE version: 11.1.1.5.0 with Webcenter
WebLogic version: 10.3
Best regards
KT
Published by: KT on May 16, 2013 21:23Hello
In addition to this project widely used mixture ADF faces with HTML, JavaScript, CSS, JSTL.
JavaScript, CSS, and JSTL is not a problem, whereas - according to the JSF version - HTML is. JSF 2 is the first version of the JSF, which allows you to mix HTML with less side effects, if you use Facelets as view declaration language.
I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?
There is in the project
+ 1. mixture of html with ADF Faces components tags +.
This could ruin your pages, lead to update issues and - in case of frequent use in the trees - even destroy the functionality
+ 2. online use of JavaScript / CSS +.
Poor performance because of heavy weight pages. If you were using ADF Faces and your JS addresses the DOM instead of the architecture of client cJavaScript ADF Faces then chances are JS will fail for the components that have changed their HTML output (which has an impact on the DOM structure) or changes are not submitted to the server.
For CSS, CSS inlineStyle not applay to the DOM element that is external, which means for example af:input the background text color will color the lavel
+ 3. mix JSTL and JSF/ADF Faces tags +.
Dependa on how you do. JSF has postponed EL syntax, which means that EL resolves at run time, whereas JSTL resolves at compile time. So the race conditions could become a problem
Overall, it is difficult to say if things were coded wrong in the project (although for the use of HTML you can be sure) without seeing the code. It seems that the team that built the application however did not dare to the suite of recommended practices
Frank
-
On cancel and opening popup showing again old unsaved values.
Hi Experts,
12.1.3 JDEV
On cancel and opening popup showing again old unsaved values.
I've done an insert to create inside a pop-up window and clicking on cancel without saving the changes.
When I revisited the popup still his watch earlier create insert records. Popup content delivery has immediate value.
I call on cancel
DCIteratorBinding iteratorBinding = ADFUtils.findIterator ("DetailsVO1Iterator"); Line = iteratorBinding.getCurrentRow (); {if(Row!=null)} refreshRemoveNewRow (row); } {} public void refreshRemoveNewRow (rank) If ((row) .getNewRowState (ViewRowImpl) () == Row.STATUS_INITIALIZED) {} Row.Refresh (Row.REFRESH_UNDO_CHANGES + Row.REFRESH_REMOVE_NEW_ROWS); } else {} Row.Refresh (Row.REFRESH_UNDO_CHANGES + Row.REFRESH_FORGET_NEW_ROWS); } } Thank you
AR
Maybe you can try with: ResetUtils.reset (yourPopup) http://jdevadf.oracle.com/adf-richclient-demo/docs/apidocs/oracle/adf/view/rich/util/ResetUtils.html
Dario
-
What was the stable JDeveloper and ADF to go with the project?
Hi all
What was the best and stable Jdeveloper and ADF for the elaboration of a draft?
Concerning
There is no problem because the difference of the WLS version does not influence with adf. 11.1.1.7.0 can be installed on wls 10.3.5 and 10.3.6. Application developed with 11.1.1.7.0 can be deployed on WLS 10.2.5 or 10.3.6 havingthe ALI DURATION installed 11.1.1.7.0.
Timo
-
Prerequistees for Jdeveloper and ADF!
Hi all
I m 11g form/reports developer and has a few basics of Java.
Please let me know prerequistees for Jdeveloper and ADF in details.
Thank you/cordially.
Biron.
No need to jump on 12 c! I understand that you want to learn the ADF. In this case read blog of Shay https://blogs.oracle.com/shay/entry/how_do_i_start_learning_oracle_adf_and_jdeveloper that gives you a good list of things you can do. If you think you know enough about one of the topics, goto the next.
There are many other documents on the web, like YouTube video tutorials or onlins as https://blogs.oracle.com/jdevotnharvest/entry/learn_adf_online_and_for or Oracle ADF Insider - Learn Oracle ADF Onliner
or https://blogs.oracle.com/jdevotnharvest/entry/learn_adf_online_and_for
and most linked on the homepage of JDev.
Timo
-
JDeveloper DB connection problems
Hello
I'm new to JDeveloper (11g R1) but I'm having some problems making a connection (DB). Here are the details that I try to communicate with:
Login name: test1
Connection type: Oracle (JDBC)
Username: mooneyb
Pilot: oci8 (also tried with Thin)
HostName: MOONEY
Port of JDBC: 1522
SID: tsthome
When I try the connection test, I get a message ORA - 12541 No. Listener. I know that the listener is running, I'm able to connect to the DB with SQLPlus as shown below. I think I probably do something stupid (as I said above, I'm new on this :-)), any help would be greatly appreciated.)
C:\Documents and Settings\HP_Administrator > lsnrctl
LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on November 29, 2009 16:51
*: 40 *.
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Welcome to LSNRCTL, enter 'help' for more information.
LSNRCTL > status
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1522)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - production
ction
Start date November 28, 2009 19:13:31
Uptime 0 days 21 h 38 min 45 s
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Listener parameter File C:\Oracle\mooneyb\product\11.1.0\db_1\network\admin\li
Stener.ora
C:\oracle\mooneyb\diag\tnslsnr\MOONEY\listener\alert\l log listener
og. XML
Summary of endpoints listening...
(* DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc))) *.
* (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=MOONEY) (PORT = 1522))) *.
Summary of services...
Service 'TSTHOMEXDB' has 1 instance (s).
'Tsthome' instance, State LOAN, has 1 operation for this service...
Service 'TSTHOME_XPT' has 1 instance (s).
'Tsthome' instance, State LOAN, has 1 operation for this service...
Service 'tsthome' has 1 instance (s).
'Tsthome' instance, State LOAN, has 1 operation for this service...
The command completed successfully
LSNRCTL > output
C:\Documents and Settings\HP_Administrator > sqlplus mooneyb@tsthome
SQL Plus: Release 11.1.0.6.0 - Production on Sun Nov 29 16:52:41 2009 *.
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter the password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > select instance_name, host_name, status from v$ instance;
INSTANCE_NAME
----------------
HOST_NAME STATUS
---------------------------------------------------------------- ------------
tsthome
MOONEY OPEN
SQL >
Published by: user8708526 on November 29, 2009 09:02User,
If you cannot telnet to the appropriate port (it seems that 1522), then this is definitely not going to work.
Things to check:
(1) is there a firewall between you and the listener?
(2) are you sure of the IP is good?
(3) has the listener was resolved upward to allow only certain hosts connections?
(4) if the host is multihomed (has multiple IP addresses), you can confirm the listener is listening on that you are trying to use (netstat - year could help here)?As you can connect through SQL * more, try to make "tnsping tsthome" (tsthome being used with sqlplus connection string) and see what it is resolved to (you should see a host name and a port)
At this point, your problem is not related to JDeveloper/JDBC, or at least, it doesn't seem to be.
John
-
I use the human task in jDeveloper 11g. While creating the participants, dropdown 'Kingdom' has no values to choose.
In jdeveloper 10g, all names have been stored in "jazn.com".
Therefore, how to select a participant in 11g?There is no specific requirements for this. A valid app server connection is sufficient to do this.
To work around the problem, you can always, type user/group name instead of browsing through the identity browser directly.
-
Creating BPEL processes in jdeveloper 11g
Hello everyone
SOA & Process Management would be the best place. We discuss many of the ADF problems in this forum.
-
How to find the discussions in JDeveloper and ADF subspace in this forum, I created?
Hi, experts.
I know there are way to find in subspace JDeveloper and ADF discussions in this forum, I created.
But I have tried and tried and can't find a way to again tonight.
(I searched the menu: profile, activity, action, inbox etc..)
Can someone give some advice?
Thank you.
Click on your name at the top of this page, then click on "view profile".
Here you have a link to 'content' and that brings other links on the left where we are 'written '.
don't know if you can filter it into subspace...
Good bye
DPT
-
How can I create a list of choices for the search bit in Oracle 11g ADF fields?
Hi Experts,
Please inform how to add some selection list or drop downs on the pane search Oracle 11g ADF.
I have a requirement to create a list of choices for the search store field. # Please notify.
Thank you
David Selvaraj
You can create a view based on a static list object and attach it to your attribute as lov-driven model.
Dario
-
What happened to place English "JDeveloper and ADF?
I see various forms of this ('JDeveloper and ADF,' 'JDeveloper and ADF') in the other language of the site.
The English forum ADF is available at JDeveloper and ADF
Timo
Maybe you are looking for
-
Satellite L450D won't boot to the top
Hello My satellite L450D - 11 X suddenly primer not, when I power on the runns fan for about 3 seconds and the Green led at the front lights up then turns off after 5 seconds.with the power connected green light stays and the rest amber light on but
-
SilverLight 4 creates more 2 000 registry entries.
Why should SilverLight 4 create more 2 000 registry entries?
-
Acer Aspire 5742G Graphics.
A little more than a year, I bought an Acer Aspire 5742 G. It has been working well for a long time, but for a while now, I noticed that the graphics card is not as well as I thought I would follow. As in World of Warcraft. When I started playing thi
-
Features lost in the x 10.5.8 Mac OS print dialog box
I don't know how it happened, but suddenly I lost the ability to change some settings in the print dialog boxes. In any print dialog box, the upper part of the window allows you to select which printer, all presets, the number of copies, whether you
-
Normally, I put all the fields, check boxes and option boxes I need using Acrobat before downloading/creating a Widget, but were never able to determine if/when in acrobat that you could potentially affect hide/show/toggle conditions. In this way, i