ADF validation popup problem

Dear all,
I have three text box and i validate with custom adf validation.
when all validation fail, one error popup window appear and show the all error message on there.
I want to remove popup window. can i ?
With Regards,
Wai Phyo

Thanks for reply ..
normally textbox 1 have that problem.
textbox2 is fine. but i can't find any difference.
Here is my code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>
<f:view>
<af:document id="d1">
<af:form id="userForm">
<af:pageTemplate viewId="/StarsTemplate.jspx" id="pt1">
<f:facet name="SideMenu"/>
<f:facet name="Main">
<af:group>
<table>
<tr>
<td>
<af:inputText autoSubmit="false" label="First Name" id="firstName" value="#{ConfirmBean.firstName}"/>
</td>
<td>
<af:message for="firstName" id="firstNameError" />
</td>
</tr>
<tr>
<td>
<af:inputText autoSubmit="false" label="Last Name" id="lastName" value="#{ConfirmBean.lastName}"/>
</td>
<td>
<af:message for="lastName" id="lastNameError" />
</td>
</tr>
</table>
<af:commandButton text="Save" action="#{ConfirmBean.save}" />
<af:messages globalOnly="true"/>
</af:group>
</f:facet>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>

Similar Messages

  • Adf.ly popup problem

    every search is being redirected to adf.ly

    When you enter a search term in the Firefox location bar and press Enter, Firefox will per default do a "I'm feeling lucky" Google search and redirect you to the first result that matches your search term. This behaviour can be changed by a number of add-ons. If you'd like to restore the previous default behaviour, please follow these steps:
    #Enter about:config in the Firefox location bar and press Enter.
    #You should see a warning that making changes to the Firefox configuration can be potentially harmful to Firefox's integrity. Click the ''I'll be careful, I promise'' button to continue.
    #In the Search box at the top, enter ''keyword'' as the search term. You should see a few remaining items, one of these is ''keyword.URL''. It should be bold.
    #Right-click on the keyword.URL setting and select ''Reset'' from the dropdown menu.
    Now you're done. Please report back if this fixes your problem. Thanks in advance!
    You can find more information about the Location bar search feature in the [[Location bar search]] article.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • ADF Validation problem

    Dear all,
    I use adf validation something like this <af:inputText id="it1" required="true"/>.
    As i think, validation should trigger when the user click on submit button.
    But this kind of validation trigger on any click on the page. (eg. menu, panel box collapse and expand)
    So, even user don't want to submit the input , they want to go others page they need to fill this text box.
    Is there any solution for that?
    With Regards,
    WP
    Edited by: user8729650 on Oct 26, 2009 8:50 PM

    Thanks for helping me...
    This is my code on jsp. i put immediate=true. but it still validate.
    <af:form id="f1" >
    <af:pageTemplate viewId="/StarsTemplate.jspx" id="pt1" >
    <f:facet name="SideMenu"/>
    <f:facet name="Main">
    <af:panelTabbed id="pt2" >
    <af:showDetailItem text="showDetailItem 1" id="sdi1" immediate="true">
    <af:panelBox text="PanelBox1" id="pb1" immediate="true">
    <f:facet name="toolbar"/>
    <af:panelGroupLayout layout="vertical" >
    <af:inputText label="Label 1" >
    <af:validateLength maximum="10"/>
    </af:inputText>
    <af:inputText label="Label 2" immediate="true" id="label2"
    validator="#{ConfirmBean.CustomValidate}" value="#{ConfirmBean.test}"
    >
    </af:inputText> <af:message id="m1" for="label2" messageType="error" />
    <af:separator/>
    <af:inputText id="it1" required="true" immediate="true"/>
    <af:panelGroupLayout layout="horizontal">
    <af:commandButton text="Delete">
    <af:showPopupBehavior popupId="confirm" triggerType="action" align="afterEnd"/>
    </af:commandButton>
    </af:panelGroupLayout>
    <af:popup id="confirm">
    <af:dialog title="Confirm" dialogListener="#{ConfirmBean.dialogListener}">
    <af:activeOutputText value="You really want to save all changes?"/>
    </af:dialog>
    </af:popup>
    <af:commandButton text="commandButton 1" immediate="true" action="#{ConfirmBean.save}" id="cb1"/>
    </af:panelGroupLayout>
    </af:panelBox>
    <af:panelBox text="PanelBox2" id="pb2">
    <f:facet name="toolbar"/>
    <af:inputDate label="Label 1" id="id1"/>
    </af:panelBox>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi3">
    <af:panelBox text="PanelBox3" id="pb3">
    <f:facet name="toolbar"/>
    </af:panelBox>
    </af:showDetailItem>
    </af:panelTabbed>
    </f:facet>
    </af:pageTemplate>
    </af:form>

  • Web Center app with ADF Security - login problem

    I have a custome Oracle Web Center app.
    I have a page.html with an embedded login form posting to j_security_check. I've configured the ADF security policies to redirect to a JSPX on successful login.
    When I try the correct username/password, I get redirected not to the page I defined in ADF, but to the root page http://127.0.0.1:7101/MyApp-ViewController-context-root/
    and i get
    Error 403--Forbidden
    I've checked the weblogic.xml as per http://andrejusb.blogspot.com/2009/12/solving-error-403-forbidden-in-adf.html, all the required entries are there.
    This works fine if i use a Login link with
    destination="#{'/adfAuthentication?login=true&amp;end_url=/faces/postLogin.jspx'} "
    which redirects to the default login.html and then to the right page. I've copied the form from the default login.html into my master HTML page.
    Hope my question is clear. Any suggestions why it is going to the wrong URL after login.
    Is there anything specific I should see in the jazn-data.xml or web.xml regarding the post-login URL since i cant see that in either.
    P.S. Have been advised to try here when I originally asked this in the WebCenter forum. Web Center app ADF Security - login problem
    Edited by: new_to_webcenter on 18-Jan-2011 05:25

    Thanks for your response Frank.
    The web.xml has
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>adfAuthentication</web-resource-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/login.html</form-login-page>
    <form-error-page>/error.html</form-error-page>
    </form-login-config>
    </login-config>
    When configuring ADF Security via JDev , I chose "Redirect upon successful authentication" to the Welcome Page
    "/faces/postLogin.jspx"
    this then adds into web.xml
    <servlet>
    <servlet-name>adfAuthentication</servlet-name>
    <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
    <init-param>
    <param-name>success_url</param-name>
    <param-value>/faces/postLogin.jspx</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    So the sequence which works is:
    Login via the '/adfAuthentication?login=true&end_url=/faces/postLogin.jspx' and this redirects to login.html (OOTB form which posts to j_security_check) and then to the postLogin.jspx
    I'm trying to do away with a Login link, and trying the simple login form embedded in my page alongwith other content.
    So should the form be posting to j_security_check directly or to the adfAuthentication ?

  • Validation popup conflicting with confirmation popup

    I am using 11gR1.
    I have a form with three buttons on it CreateInsert, Next, Cancel.
    The next button fires model layer validation on a new record, the cancel button opens a confirmation popup and if the user clicks yes, navigates the away from the form. When a user clicks next AND the form does not pass the model layer entity validation, a validation error is raise in a validation popup. The problem comes when the user then decides to not fix the validation, but instead cancel out of the form via the cancel button AFTER they have already clicked next.
    When the user clicks the cancel button it raises the confirmation pop-up and whether the users clicks yes or no on the pop-up, the model layer validation still fires. I have immediate set to true on the cancel button to bypass validation, BUT if they user has already clicked next the validation still runs when they try to answer the pop-up. This results in the user being stuck in a never ending series of pop-ups because the confirmation pop-up can not close because the model layer validation keeps firing.
    I have a dialoglistener on the dialog and a method in the backing bean (backingBeanScope.backing_IAEdit.cancelConfirmDialog) but that code never fires. Anyone else run across this problem or have any ideas how to resolve it?
    Here is the code from the command buttons...
    <af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert"    disabled="#{!bindings.CreateInsert.enabled}"
                                id="cb5"/>
    <af:commandButton actionListener="#{bindings.Next.execute}" text="Next" disabled="#{!bindings.Next.enabled}" partialSubmit="true"                    
                                id="cb2"/>
    <af:commandButton text="Cancel"  id="cb4" action="Cancel" immediate="true">
                    <af:showPopupBehavior popupId="p1"/>
    </af:commandButton>
    <af:popup id="p1">
                  <af:dialog id="CancelConfirmDialog" title="Confirm Cancel"  type="yesNo"
                                   dialogListener="#{backingBeanScope.backing_IAEdit.cancelConfirmDialog}">
                          <af:outputText value="Are you sure you would like to cancel?" id="CancelOutput"
                                         inlineStyle="font-weight:bold; font-size:small;"/>
                  </af:dialog>
    </af:popup>

    Thanks for the suggestion, but the code in the dialoglistener never fires.
    When the user clicks yes or no to dismiss the dialog box, the validation from the bc layer fires (even though immediate is set to true on the cancel button) and pops up an error box. When the error box opens, it opens in a modal way, the dialog box grays out and all you can do is dismiss the error box. When the user clicks ok to dismiss the error box, the dialog box is still open. Then when the user again clicks yes or no on the dialog box, it again fires validation and pops up the error box in a modal way. So now the user is stuck with these two pop ups and can never get rid of the dialog box.
    Just to clarify, this ONLY happens if the user FIRST clicked the next button which triggered the bc layer validation. If the user just clicks the cancel button, everything works as expected with the dialog box popping up, the user selects yes or no, the dialoglistener code is run and the user is navigated to another page. If the user just clicks the cancel button validation is never run as is expected by having immedate set to true.

  • ADF validator or JavaScript for client side validation ?

    using JDev and ADF 11g
    Problem description : To apply validations such as date range check, pattern matching, maxlength etc.. on ADF Faces Components.
    Solution 1: Use ADF validator such as Reg Expr validator, Max Length validator
    Souliton 2: Write Javascript code for validating the component's value at cleint side.
    When using ADF Validator for such type of validation checking, a request is send to the server for processing (additional overhead) . However we can do such validations with javaScript functions without the need to interact with the server. So, what benefit does ADF Validator serves when one needs to implement such validations ?
    Please share your views...

    H,
    afaik, client side validation in ADF Faces suppresses server round trips if a validation error is detected on the client. Only if no problem is found, the server side validation is challenged upon submit (so no extra round trip for validation). Shay is absolutely correct. JavaScript is a convenience but never a solution.
    Here's how to create a custom validator with a client and server side implementation : http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_validate.htm#BABEIIDD
    Frank

  • ADF ListofValues Popup

    Hi,
    I have an ADF ListOfValues popup. I want to give the user a choice of entering data from selecting from the popup or entering data into the input text by hand. However, when I enter a value not in the popuplist I get an "invalid value" error message. How do I disable this error message, and allow the user to enter the data manually into the input text field?

    Try removing f:validator within af:inputListOfValues.
    To avoid invoking popup put this launchPopupEvent.setLaunchPopup(false) in LOVs launchpoplistener event.

  • [REPOST]How to force ADF Dialog / POPUP to use POST method ?

    Hi all,
    Is there any way to make ADF Dialog / POPUP to use POST method ?
    I need that approach to implement this post : [SOLVED] Faces - Preventing user from entering URL manually
    But it breaks in my application because ADF Dialog / POPUP is using GET method.
    Thank you very much,
    xtanto

    repost.
    Thank you

  • HELP - ADF show popup on jsff startup

    Hi ALL,
    I am using adf and the <af:popup, and I am trying to show the popup after the page(jsff) is rendered.
    I see there is a thread on OTN and Frank has his comments on that, but it’s talking about jspx, I’m using jsff.
    ADF load popup on startup
    Here’s what I’ve tried:
    Add a dummy component to the page, make it render but invisible, add a binding in its bean class, add getter and setter for the dummy component. In its getter, show the popup(its getter should be called during page rendering phase – and it is called), but I’m getting null pointer exception at popup.show() inside the dummy component’s getter method.
    Correct me if I’m wrong and really appreciate if any of you can guide me on how to achieve this.
    Thanks,
    Xiaobin

    Put it inside your popup and try again.
    If it still doesn't work, you should take a look at phase listener

  • Use GLC-T to connect ucs 6120 and 2960s (RJ45),.have SFP validation failed problem

    hi,every .
    i use GLC-T to  connect ucs 6120 and cisco2960s (RJ45),.have sfp validation failed problem.
    I have done speed to 1G then I am getting error " link not connected" even I have connected the nnetwork cable..

    UCS6120-A(nxos)# show interface e1/7
    Ethernet1/7 is down (SFP validation failed)
    Hardware: 1000/10000 Ethernet, address: 0005.73d2.934e (bia 0005.73d2.934e)
    Description: U: Uplink
    MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation ARPA
    Port mode is trunk
    auto-duplex, 1000 Mb/s, media type is 10G
    Beacon is turned off
    Input flow-control is off, output flow-control is off
    Rate mode is dedicated
    Switchport monitor is off
    EtherType is 0x8100
    Last link flapped never
    Last clearing of "show interface" counters never
    30 seconds input rate 0 bits c, 0 bytes c, 0 packets c
    30 seconds output rate 0 bits c, 0 bytes c, 0 packets c
    Load-Interval #2: 5 minute (300 seconds)
    input rate 0 bps, 0 pps; output rate 0 bps, 0 pps
    RX
    0 unicast packets  0 multicast packets  0 broadcast packets
    0 input packets  0 bytes
    --More--

  • ADF Popup problem

    Hi,
    I am working on ADF popups. I have created a simple popup as shown below:
    <af:popup id="test" contentDelivery="lazyUncached" >
    <af:panelWindow modal="true" title="Update Sample Type" closeIconVisible="true">
    <af:inputText value="test"/>
    </af:panelWindow>
    </af:popup>
    When I launch this popup and try to input value in input text, it does not display the cursor inside input text box.
    Does anybody know how to make it display the cursor?
    Thanks.
    Regards,
    Umesh

    Hi,
    I am working on ADF popups. I have created a simple popup as shown below:
    <af:popup id="test" contentDelivery="lazyUncached" >
    <af:panelWindow modal="true" title="Update Sample Type" closeIconVisible="true">
    <af:inputText value="test"/>
    </af:panelWindow>
    </af:popup>
    When I launch this popup and try to input value in input text, it does not display the cursor inside input text box.
    Does anybody know how to make it display the cursor?
    Thanks.
    Regards,
    Umesh

  • Dialog popup problem Jdev 10.1.3.1 ADF Faces

    I am having a problem with the behavior of my dialog popups, as follows:
    1. The first time (in the first row) I click the CommandLink, the dialog popup opens and the display occurs. When I hit the close button on the dialog window, the return listener method in a request Scope managed bean fires.
    2. I click on the Command Link in the second row. The dialog opens, again with the correct values being passed. This time, when I hit the Close button, the window closes, but the ReturnListener method does not execute.
    3. Hit the command link in the third row. The link registers a click, but the popup does not appear.
    Here is the Command Link:
    <af:column sortProperty="Nsn" sortable="true"
    headerText="#{bindings.CILOneProjROViewObj.labels.Nsn}">
    <af:commandLink text="#{row.Nsn}" action="dialog:Nsn"
    useWindow="true" windowHeight="200"
    windowWidth="500" partialSubmit="true"
    returnListener="#{project_go.resetProcessScope}"
    immediate="false">
    <af:setActionListener from="#{row.Nsn}"
    to="#{processScope.holdNsn}"/>
    <af:setActionListener from="#{row.Sos}"
    to="#{processScope.holdIcp}"/>
    <af:setActionListener from="#{'dialog:Nsn'}"
    to="#{processScope.holdScreenName}"/>
    </af:commandLink>
    </af:column>
    Here is the Close button on the popup:
    <af:commandButton text="Close">
    <af:returnActionListener/>
    </af:commandButton>
    And here is the bean method fired in the returnListener attribute above:
    public void resetProcessScope(ReturnEvent returnEvent) {
    // Add event code here...
    AdfFacesContext adfctx = AdfFacesContext.getCurrentInstance();
    String screenName = (String)adfctx.getProcessScope().get("holdScreenName");
    System.out.println("screen:"+screenName+":"+adfctx.getProcessScope().get("holdNsn"));
    if (screenName.equalsIgnoreCase("dialog:Nsn")) {
    adfctx.getProcessScope().put("holdNsn",null);
    System.out.println(adfctx.getProcessScope().get("holdNsn"));
    adfctx.getProcessScope().put("holdScreenName",null);
    I am absolutely stuck here. Is there a flag of some kind I'm missing?

    I found an apparent resolution to the problem: I moved the storage of values from processScope to a sessionScope managed bean. Everywhere you see processScope in the code I provided, substitute sessionScope.bean.attribute.
    Speculation: when a dialog window gets launched, it is being treated as a "separate process" with its' own processScope. Therefore, my changes weren't getting where they needed to be. However, that doesn't explain why setting a value in a setActionListener on the commandLink stored a value that the dialog could reference successfully. It also doesn't explain why the returnListener wasn't being fired every time.

  • ADF JSF URL problems...

    Hi All,
    I have the following requirement. Please could someone help me out?
    1) I have a dot net application into which I can log in with either the Canadian or US context. This is kind of multi-orging.
    2) Once logged in, the user needs to right click on a value in a panel inside this Windows dot net application and click a menu option.
    3) Once the option is clicked, a new JSF page will open. The URL for this JSF page will have the parameters such as the user country code plus the document number of the panel value.
    4) For this JSF page I am planning on an ADF JSF application. The application module for this application will have two database connections, basically two different schemas which are triggered based on the context information. These are already available in the bc4j.xcfg file.
    5) Based on the country parameter passed in the URL, I need to alternate the database connection information on the root application module created by the application between teh two database schemas using the bc4j.xcfg file in the Model project of the application. This needs to be done dynamically through the code.
    In order to fulfill the above requirement, I need to do the following:-
    1) As soon as the URL is triggered, the ADF application needs to read the URL parameters and set the context specific database schema of the application module without pressing a button or any other manual user trigger in hte JSF page. Basically I am looking at loading the JSF page dynamically after having set the database schema on the application module that was instantiated using the URL parameters
    2) After step 1, since the database schema is now set on the context I will be able to use the database schema to load data from the database objects.
    3) Each schema has a database trigger which runs when the database connection is initiated. This is used to set the multi-org context.
    Please could someone help me out with step 1 above on how to read URL parameters without any user triggers on the JSF page and setting the database schema on the application module being used by the application. Please remember that I am not using JDBC data sources but JDBC URL's to create m application.
    Any code samples to load the current application module instance and setting the database connection on the same from bc4j.xcfg would be very very helpful.
    Thanks a lot.
    Regards,
    Lester.

    Hi safir,
    thanks for your answer.
    With JSF also "normal" Links should be handled like Form-submit links
    ("Command buttons")
    (see in JSF manual "Using java server faces tech.", page 82 Handling Events: Application Events: #
    <i>Because app. events apply to the entire application, this kind of event is currently used for
    navigation between pages of the app.</i>)
    So it is a general Problem, you cannot copy the links from the browser.
    I understand, that is is not a bug,
    but is there maybe a solution for my problem?
    I want to use JSF, because of the good form validation
    operations.

  • Adf/swing binding problem

    Hi all,
    Friends i need your help.
    I was a bit confused as i started developing an adf/swing application. I know that this project is not supported any more but i honestly believe that there are a lot of people still using it.
    I've already faced with a number of problems and successfully solved them but the one is really strange.
    Before describing it let me ask one preliminary question. It’s very important for me, but if it is too much …. skip the first question since the second one is the most important.
    1. I’m creating a multiframe application where I have one main window (with a desktop pane) which does not include any bindings and is used for invoking internal frames only which in their turn have been created by dragging and dropping data controls.
    Since JDeveloper only allows generating skeletons for stand-alone frames and there is lack of information concerned with adf/swing developing I’m trying to fit the automatically generated code for my purpose by myself.
    I obsessively ask some GURU to check my strategy and say whether I’m doing it right.
    First I create the BindingContext object in the main frame:
    BindContext ctx = newBindingContext();
    public MainFrame() {…………      
    try {
    JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
    JUMetaObjectManager mgr = JUMetaObjectManager.getJUMom();
    mgr.setJClientDefFactory(null);
    ctx.put(DataControlFactory.APP_PARAM_ENV_INFO, new JUEnvInfoProvider());
    ctx.setLocaleContext(new DefLocaleContext(null));
    HashMap map = new HashMap(4);
    map.put(DataControlFactory.APP_PARAMS_BINDING_CONTEXT, ctx);
    mgr.loadCpx("minit.org.view.DataBindings.cpx" , map);
    DCDataControl app = (DCDataControl)ctx.get("AppModule1DataControl");
    app.setClientApp(DCDataControl.JCLIENT);
    } catch (Exception ex) {
    JUMetaObjectManager.reportException(null, ex, true);
    System.exit(1);
    Then I pass the BindingContext object into the internal frames constructors, i.e.
    private void jMenuUnitVoc_actionPerformed(ActionEvent e) {
    this.getJMenuUnitVoc().setEnabled(false);
    FormCreateUnitView1 unitVoc = new FormCreateUnitView1 (ctx);
    unitVoc.setVisible (true);
    this.deskTopPane.add (unitVoc);
    Then I setup the panel binding for a particular JinternalFrame instance through the automatically generated setBindingContext() method:
    public FormCreateUnitView1(BindingContext ctx) {
    try {
    this.setBindingContext(ctx);
    } catch (Exception ex) {
    JUMetaObjectManager.reportException(null, ex, true);
    System.exit(1);
    This predefined setBindingContext () method looks like this:
    public void setBindingContext(BindingContext bindCtx) {
    if (panelBinding.getPanel() == null) {
    panelBinding = panelBinding.setup(bindCtx, this);
    registerProjectGlobalVariables(bindCtx);
    panelBinding.refreshControl();
    try {
    jbInit();
    panelBinding.refreshControl();
    } catch (Exception ex) {
    panelBinding.reportException(ex);
    panelBinding instance variable is declared by default as
    private JUPanelBinding panelBinding = new JUPanelBinding("FormCreateUnitView1PageDef");
    when the internal frame is getting closed the panel binding is released:
    public void doDefaultCloseAction() {
    _popupTransactionDialog();
    panelBinding.releaseDataControl(); statusBar.release();
    MainFrame myFrame = (MainFrame)this.getDesktopPane().getParent().getParent().getParent().getParent();
    myFrame.getJMenuUnitVoc().setEnabled(true);
    super.doDefaultCloseAction();
    Why I’m asking about this is because I met another syntax which is known to be commonly used:
    Something like this:
    this is the code I use to (re)create the panel,
    the setBindingContext method.
    public void setBindingContext(BindingContext bindCtx)
    String detail2BCName = "myName";
    if (bindCtx.get(detail2BCName) == null)
    DCBindingContainerDef bcdef = (DCBindingContainerDef) JUMetaObjectManager.getJUMom() .findLoadedObject("mypackage." + detail2BCName);
    DCBindingContainer bc = bcdef.createBindingContainer(bindCtx);
    bc.setName(detail2BCName);
    bindCtx.put(detail2BCName, bc);
    // ... then calls to jbInit etc.
    this is the code I use to release the binding when
    the window is closed
    getPanelBinding.release();
    getPanelBinding.getBindingContext().remove(superPanelBinding.getName());
    …but this syntax is badly documented, so I’m a bit confused about which is right… my code works pretty fine (all master and detail frames are synchronized and all that…) except for one issue I’m going to describe.
    I’m waiting for your opinions….please help make it clear.
    THE MAIN PROBLEM
    2. I’ve got a master/detail internal frame. When I make any changes in it and then commit them through a navigation bar I get the following exception as I try to close it later through the standard close icon:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at oracle.jbo.uicli.jui.JUSVUpdateableFocusAdapter.focusLost(JUSVUpdateableFocusAdapter.java:71)
         at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:172)
         at java.awt.Component.processFocusEvent(Component.java:5380)
         at java.awt.Component.processEvent(Component.java:5244)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:840)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:530)
         at java.awt.Component.dispatchEventImpl(Component.java:3841)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    … few things
    -1. If I commit a transaction through the popup dialog the exception doesn’t emerge.
    -2. If I remove the “panelBinding.releaseDataControl(); statusBar.release();” from doDefaultCloseAction() method the exception doesn’t emerge but then I get another well-known exception as I try to reopen the internal frame.
    -3. If I debug doDefaultCloseAction() method step by step the exception doesn’t emerge.
    -4. Finally…. the exception doesn’t suspend the application it just goes on as if nothing has happened (the stack is only displayed on the console).
    I learned about one similar problem here:
    JClient Threading Bug in JUCtrlAttrsBinding?
    but the bug described has been fixed in ver 10.1.3.3.
    I'm using Jdeveloper 10.1.3.3
    So, please ...please…please help me overcome it.
    Best regards. Alex.
    Edited by: Timin on Mar 31, 2009 1:52 PM

    Sorry for being a bit annoying...
    But .... no one has answered my question yet......though you promised...
    Eventually I’ve somehow solved the trouble by replacing the “ panelBinding.releaseDataControl ” with
    “ panelBinding.release(DCDataControl.REL_VIEW_REFS)
    panelBinding.getBindingContext().remove(panelBinding.getName());”
    In the doDefaultCloseAction() method
    it seems like it works good now.
    I reconstructed a bit my code
    Now I’m invoking the internal frames this way:
    private void jMenuDeptVoc_actionPerformed(ActionEvent e) {
    FormCreateDeptView deptVoc = new FormCreateDeptView();
    this.getJMenuDeptVoc().setEnabled(false);
    deptVoc.setBindingContext(panelBinding.getBindingContext());
    this.deskTopPane.add(deptVoc);
    I looked through the following how to:
    http://www.oracle.com/technology/products/jdev/howtos/10g/jcmultiform/index.html
    there is an additional method there, which is invoked before creating a new frame where the binding container for the panel binding is created:
    private void createDetailBinding()
    String detailBCName = "DetailFormUIModel";
    if (panelBinding.getBindingContext().get(detailBCName) == null)
    DCBindingContainerDef bcdef = (DCBindingContainerDef)JUMetaObjectManager.getJUMom().findLoadedObject("sample.DetailFormUIModel");
    DCBindingContainer bc = bcdef.createBindingContainer(panelBinding.getBindingContext());
    bc.setName(detailBCName);
    panelBinding.getBindingContext().put(detailBCName, bc);
    But since createBindingContainer(BindingContext) method has been deprecated in 10.1.3 i skipped this step.
    Nevertheless my program is working now I still wonder if the way I’m doing it is right.
    Thanks. Alex.
    Edited by: Timin on Apr 2, 2009 8:28 AM

  • ADF dialog framework problem

    I am using the "old" dialog framework in ADF 11G.
    I create two pages. One page "pops" the other with dialog:page2 and usewindow.
    This works fine when i create a simple web project.
    But when i create the same code in a ADF ViewController project the second window opens in the same window as the first one.
    Is this a bug?
    Johnny

    Hi Frank,
    This will show you my problem:
    1. create new application
    2. choice fusion web application
    3. press finish
    4. created JSF page main:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:commandButton useWindow="true" action="dialog:popup" text="commandButton 1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    5. created JSF page popup:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="outputText1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    6. create Faces navigation rule:
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    </application>
    <navigation-rule>
    <navigation-case>
    <from-outcome>dialog:popup</from-outcome>
    <to-view-id>/popup.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    7. run the main page
    8. using ie 7 the main page shows
    9. push the button: no pupup, instead the "popup-page opens in same window as my main page
    Can I mail you the project, somehow?

Maybe you are looking for

  • 1st generation iPad running iOS 5.1.1 and can't seem to update the iOS.  Any ideas?

    I currently have a 1st generation iPad that is running on iOS 5.1.1.  I have been unable to update the operating system.  In fact, when I look for updates under the general settings icon nothing comes up.  Shouldn't this older iPad be running on iOS

  • Need help with password for signature with Adobe Acrobat X Pro

    Signature password is invalid in the PDF but when I use the same password to access the Adobe Webpage, it works perfectly. Where is the disconnect and how do I create a situation where the signature on the pdf recognizes my password?

  • H:commandLink and an Action being called multiple times.

    Hi everyone. I'm more or less relatively new in terms of JSF, though I've had to do a lot of "catching up" recently. I've been reading that with managed-beans, the getters/setters are not gaurenteed to be called once. http://www.jsf-faq.com/faqs/face

  • Trouble Exporting as PDF

    Hi, This isn't the first time I've encountered this issue. When I export an InDesign piece which has linked artwork in it, the resulting PDF has parts of the linked image missing. This seems to happen mainly with more complicated images. In the curre

  • C# Protect file with password

    Hello, I am creating a notepad where you can protect a file with an password. Try to imagine it as a protected .zip file with username and password, but in this case it's about an text file with a other file extension (.cpd). I tried a lot of codes,