Popup ADF problems

Hello!

I have a popup adf containing some mandatory inputText and selectOneChoice.

When you open the window contextual atrves click a CommandButton with partialSubmit = true all required fields are validated and how are empty, an error message appears indicating that the fields are filled.

Of course, I don't want the fields to be validated to open the context menu, but only when I click a commandButton control the popup.

I would like to understand why these fields are validated to open the context menu, and how to avoid without having to remove the mandatory fields.

Any ideas?

My code:

<? XML version = "1.0" encoding = "UTF - 8"? >

" < f: view = xmlns:f ' http://Java.Sun.com/JSF/core "xmlns:af =" " http://xmlns.Oracle.com/ADF/faces/rich "> "

< af:popup autoCancel = "disabled" id = "popupInclusaoTrem" binding = "#{PlanejamentoMB.popupInclusaoTrem} '"

contentDelivery = "lazyUncached" >

< af:dialog title = "Planejamento - include Trem" type = "none" closeIconVisible = "false" id = "d1" >

< af:panelGridLayout id = "pgl1" >

< af:gridRow marginTop = '5px' height = 'auto' id = "gr1" >

< af:gridCell marginStart = "5px" id = "gc2" >

< af:inputText binding = "#{PlanejamentoMB.richInputSede} ' readOnly = 'true'"

labelStyle = "position: absolute;" left: 34px; »

contentStyle = "position: absolute;" left: 68px; "label =" "Sede:" id = "it2" / > "

< / af:gridCell >

< / af:gridRow >

< af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr2" >

< af:gridCell marginStart = "5px" id = "GCQ4" >

< af:inputText label = "" Prefixo: "maximumLength = '3' columns = '7'"

labelStyle = "position: absolute;" left: 15px; "required ="true ".

contentStyle = "position: absolute;" left: 68px; »

Binding = "#{PlanejamentoMB.richInputTextTrem} '"

requiredMessageDetail = "Campo de O Prefixo e required." id = "it3" >

< af:validateRegExp pattern = "[A - Z] [0-9] {2}'"

messageDetailNoMatch = "informed um trem valido prefixo (Exemplo: 99 X)". "/ >"

< / af:inputText >

< / af:gridCell >

< / af:gridRow >

< af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr5" >

< af:gridCell marginStart = "5px" id = "CG6" >

< af:selectOneChoice label = "" event: "contentStyle =" position: absolute; ' " left: 68px; »

labelStyle = "position: absolute;" left: 15px; »

Binding = "#{PlanejamentoMB.richSelectEvento}" id = 'soc1' "

requiredMessageDetail = "O campo Evento e required." >

< f: selectItems value = "#{PlanejamentoMB.listagemEventos}" id = "si2" / > "

< af:validateLength minimum = "3" / >

< / af:selectOneChoice >

< / af:gridCell >

< / af:gridRow >

< af:gridRow marginTop = marginBottom '5px' = '5px' height = 'auto' id = "gr3" >

< af:gridCell marginStart = "5px" id = "gc1" >

< af:selectOneChoice label = "" Origem: "contentStyle =" position: absolute; ' " left: 68px; »

labelStyle = "position: absolute;" left: 12px; ' autoSubmit = 'true '.

Binding = "#{PlanejamentoMB.richSelectOneOrigem}" id = "soc2" "

valueChangeListener = "#{PlanejamentoMB.popularDestinoPorOrigem} '"

requiredMessageDetail = "O campo Origem e required."

>

< f: selectItems value = "#{PlanejamentoMB.listagemOrigensPorSedeGradeFixa}" id = "si3" / > "

< af:validateLength minimum = "3" / >

< / af:selectOneChoice >

< / af:gridCell >

< / af:gridRow >

< af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr4" >

< af:gridCell marginStart = "5px" id = "gc3" >

< af:selectOneChoice label = "" Destino: "contentStyle =" position: absolute; ' " left: 68px; »

labelStyle = "position: absolute;" left: 11px; »

Binding = "#{PlanejamentoMB.richSelectOneDestino}" id = "soc3" "

requiredMessageDetail = "O campo Destino e required."

>

< f: selectItems value = "#{PlanejamentoMB.listagemDestinoPorOrigem}" id = "si1" / > "

< af:validateLength minimum = "3" / >

< / af:selectOneChoice >

< / af:gridCell >

< / af:gridRow >

< af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr7" >

< af:gridCell marginStart = "5px" id = "G.c.5" >

"< af:inputDate binding =" #{PlanejamentoMB.richInputDateSaida} "id ="dt1hourSecond"label =" Saida:

requiredMessageDetail = "Campo de O" Saida e required. inlineStyle = "width: 280px;" >

< af:clientListener type = "focus" method = "onhourFocusSimple" / >

< f: convertDateTime pattern = "Hh: mm" / >

< / af:inputDate >

< / af:gridCell >

< / af:gridRow >

< af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr8" >

< af:gridCell marginStart = "5px" id = "CG7" >

< af:selectBooleanCheckbox label = "" distributed: "contentStyle =" position: absolute; ' " left: 68px; »

Binding = "#{PlanejamentoMB.richBooleanDistribuido}" id = "sbc1" / > "

< / af:gridCell >

< / af:gridRow >

< af:gridRow marginTop = marginBottom '10px' = '5px' height = 'auto' id = "gr6" >

< af:gridCell marginStart = '5px' id = 'G.c.8' halign = 'end' >

< af:commandButton text = "Salvar" partialSubmit = "true" inlineStyle = "width: 120px;" id = "cb1".

actionListener = "#{PlanejamentoMB.salvarTremGrade}" / >

< / af:gridCell >

< af:gridCell marginStart = '5px' id = 'gc81' halign = 'end' >

< af:commandButton text = "Cancel" partialSubmit = "true" inlineStyle = "width: 120px;"

immediate = "true" id = "cb2".

actionListener = "#{PlanejamentoMB.cancelarInclusaoTrem}" / >

< / af:gridCell >

< / af:gridRow >

< / af:panelGridLayout >

< / af:dialog >

< / af:popup >

< / f: view >

Hello

Some time ago I have the same problem, but my problem is that I put ppr as a property of refreshment in the links (on iterator).

But result was the same, the mandatory fields have been posted after the popup is displayed.

Your JSF I see that you have no links. Im not sure exactly where you store your data?

labelStyle = "position: absolute;" left: 12px; ' autoSubmit = 'true '.

Binding = "#{PlanejamentoMB.richSelectOneOrigem}" id = "soc2" "

valueChangeListener = "#{PlanejamentoMB.popularDestinoPorOrigem} '"

requiredMessageDetail = "O campo Origem e required."

>

You do not have the "value" attribute Maybe that's the problem? You work with data in your valueChangeListener but maybe if you do not set a value attribute adf you give validator msg?

Best regards

Rafal

Tags: Java

Similar Questions

  • Customize the popup adf

    JDev Version - 11.1.1.6

    Having several popups adf and want to style each popup differently.

    . AFPopupSelector has an influence on all pop-up windows, because it is the global selector.

    Is there another approach to style popups differently?

    Thank you

    Kala

    Thanks for the reply!

    I'm able to customize the pop-up window using triggerType panelWindow and showPopupBehavior = 'action '.

    triggerType = 'action' popupId = "p1" / >

    inlineStyle = "margin-top: 8px;" border-color: gray; border-style: solid; border-width: 1px; left margin:-9px; border-top: none; border-bottom: solid Black; border-bottom-width: 2px; position: relative; »

    closeIconVisible = "false" >

    -Kala

  • Problem of Popup ADF on the migration of jDev 11-jDev 12.1.3

    During the migration from the previous (11.1.2.4) version for 12.1.3 we encountered a problem with pop - up generated by ADF (such as LOV, research, etc.).  Their location in the long term has become unpredictable. For the most part they are slipped down a bit, creating a vertical scrolling of the page.

    Popups generated manually and invoked via showPopupBehavior works very well.

    The problem occurs in all browsers.

    Maybe there is a new way of conceiving the popups by default to the new ADF?...

    All suggestions will be useful. Thank you.

    Hello

    When you set width? You must define data lov vo is coming and the value of width field affects the table inside popup, not the width of the dialog box

    BdW you can try this CSS

    AF | {inputListOfValues}

    -tr-stretch-search-dialogue: true;

    }

    See - http://adfpractice-fedor.blogspot.in/2013/06/resizing-of-search-and-select-dialog-of.html

    Thank you

  • Popup validation ADF problem

    Hi all

    I have three text box and I validate with custom validation adf.
    When the validation fails, an error window will appear and display the error message all over there.

    I want to remove the popup window. what I can?

    With respect,
    Wai Phyo

    Hi WP.

    Unless you submit the request again once with values valid (fully or partially), the error message will not get disappeared. Check if you set partialSubmit to true on the element or autoSubmit.

    Jean Lou

  • Dynamic region in the Popup - clientListener problem?

    Hello

    I work in Jdeveloper 11.1.1.2, following the model of popup/region found at: http://www.oracle.com/technology/products/adf/patterns/11/popupregionpattern.pdf to have a dynamic region in a popup. I already have an active implementation on one of my pages, but the same exact implementation on another page gives me questions. Whenever I have add a component of af: clientListener to my popup, the table in the same panelCollection stops its rows of rendering. Display the column headings, but there is no text of any kind in the lines. If I delete the af: clientListener, my page works perfectly.

    Here's my code for popup so far:
    < af:popup id = "awdPU" contentDelivery = "lazyUncached".
    launcherVar = 'source' eventContext "Launcher" = >
    < af:setPropertyListener from = "#{source.attributes.saId} '"
    to = "#{pageFlowScope.currentSaId} '"
    Type = "popupFetch" / >
    < af:setPropertyListener from = "#{source.attributes.saId} '"
    to = "#{pageFlowScope.currentSchlrId} '"
    Type = "popupFetch" / >
    < af:setPropertyListener from = "#{source.attributes.appId} '"
    to = "#{pageFlowScope.currentAppId} '"
    Type = "popupFetch" / >
    < af:setPropertyListener from = "#{source.attributes.aidYear} '"
    to = "#{pageFlowScope.currentAidYearId} '"
    Type = "popupFetch" / >
    < af:setPropertyListener from = "#{source.attributes.theAction} '"
    to = "#{pageFlowScope.currentAction} '"
    Type = "popupFetch" / >
    < af:setPropertyListener from = "#{viewScope.popupDynamicRegionBean.popupTaskFlowId} '"
    to = "#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId} '"
    Type = "popupFetch" / >
    < af:setPropertyListener from = "#{source.attributes.orgId} '"
    to = "#{pageFlowScope.currentOrgId} '"
    Type = "popupFetch" / >
    < af:panelWindow id = 'pw1' title = "Attribution" >
    < af:region value = "#{bindings.dynamicRegion1.regionModel} '"
    ID = "dynam1".
    regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"/ >
    < / af:panelWindow >
    < af:serverListener type = "serverPopupClosed".
    Method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/ >
    < af:clientListener method = "popupClosedListener".
    Type = "popupClosed" / >
    < / af:popup >

    and here is my work, full dynamic region + popup code:

    < af:popup id = "awdPU" contentDelivery = "lazyUncached" launcherVar = "source".
    eventContext "Launcher" = >
    < af:panelWindow id = 'window' title = "Attribution" modal = "true" closeIconVisible = "false" >
    < af:region value = "#{bindings.dynamicRegion1.regionModel}" id = "dynam1" "
    regionNavigationListener = "#{viewScope.popupDynamicRegionBean.regionNavigated} '"
    inlineStyle = "" background-color: transparent; "/ >"
    < / af:panelWindow >
    < af:setPropertyListener from = "#{viewScope.popupDynamicRegionBean.popupTaskFlowId} '"
    to = "#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId} '"
    Type = "popupFetch" / >
    "< af:setPropertyListener from =" #{source.attributes.saId} "to =" #{pageFlowScope.currentSaId} ".
    Type = "popupFetch" / >
    "< af:setPropertyListener from =" #{source.attributes.appId} "to =" #{pageFlowScope.currentAppId} ".
    Type = "popupFetch" / >
    < af:setPropertyListener from = "#{source.attributes.aidYear} '"
    to = "#{pageFlowScope.currentAidYear}" type = "popupFetch" / > "
    < af:setPropertyListener from = "#{source.attributes.theAction} '"
    to = "#{pageFlowScope.currentAction}" type = "popupFetch" / > "
    < af:clientListener method = "popupClosedListener" type = "popupClosed" / >
    < af:serverListener type = "serverPopupClosed".
    Method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/ >
    < name af:clientAttribute = 'action' value = "makeAward" / >
    < af:clientListener method = "adjustPopupSize" type = "popupOpening" / >
    < / af:popup >

    Anyone know of any reason that a client listener would have this kind of impact on my page? I tried other types or methods, and it just seems as if an af:clientListener is there, it won't work.
    Thank you!

    Hello

    I came across this type of problem. What do you call the javascript method it may contain errors or if the clientListner not able to find the method that you call in the jspx drop that behave like this only.
    keep an alert beginning of the script (popupClosedListener) method and check if it is the call or not. Better related serverListner should be after the ClientListner.

    Reg,
    Brahma...

  • Popup screen problems

    I've tried using the search tool and google my whole day, but I can't seem to find the answer to these two problems.

    1. I'm positioning my pop-up screen in the middle of the screen. But as you can see in the image below it is nowhere near the Center.

    2. I'm trying to focus my two buttons in the middle of the popup screen with a verticalfieldmanager, but somehow it is fondant a position according to the width, I don't know what.

    Here is the code:

    private final static int _Width = 200;private final static int _Height = 200;private final static int _X = (Display.getWidth() - _Width) >> 1;private final static int _Y = (Display.getHeight() - _Height) >> 1;public class NetworkSettingScreen extends PopupScreen{
    
    public NetworkSettingScreen(){   super( new VerticalFieldManager());   LabelField lf = new LabelField("Network Settings", DrawStyle.HCENTER);    SeparatorField sf = new SeparatorField();         CheckboxField cbf1 = new CheckboxField(" WiFi", true);    CheckboxField cbf2 = new CheckboxField(" GPRS/Edge/3G", true);
    
      VerticalFieldManager vfm = new VerticalFieldManager(HorizontalFieldManager.FIELD_HCENTER);    ButtonField bf1 = new ButtonField("Save", DrawStyle.HCENTER); ButtonField bf2 = new ButtonField("Cancel", DrawStyle.HCENTER);   vfm.add(bf1); vfm.add(bf2);
    
      //add UI components to Pop-up screen  add(lf);  add(sf);  add(cbf1);    add(cbf2);    add(vfm);}
    
    public void sublayout(int width, int height){   super.sublayout(width, height);   setExtent(_Width, _Height);           setPosition(_X, _Y);}}//end of class
    

    http://i55.Photobucket.com/albums/G152/chengbang69/screenshot.jpg

    any help would be appreciated

    Hey chengbang69,

    I modified your code to obtain the expected results,

    final class NetworkSettingScreen extends PopupScreen
    {
        private final static int _Width = 200;
        private final static int _Height = 200;
        private final static int _X = (Display.getWidth() - _Width) >> 1;
        private final static int _Y = (Display.getHeight() - _Height) >> 1;
    
    public NetworkSettingScreen()
    {
        super( new VerticalFieldManager());
        LabelField lf = new LabelField("Network Settings", LabelField.FIELD_HCENTER);
        SeparatorField sf = new SeparatorField();
        CheckboxField cbf1 = new CheckboxField(" WiFi", true);
        CheckboxField cbf2 = new CheckboxField(" GPRS/Edge/3G", true);
    
        VerticalFieldManager vfm = new VerticalFieldManager(VerticalFieldManager.FIELD_HCENTER);
        ButtonField bf1 = new ButtonField("Save", ButtonField.FIELD_HCENTER);
        ButtonField bf2 = new ButtonField("Cancel", ButtonField.FIELD_HCENTER);
        vfm.add(bf1);
        vfm.add(bf2);
    
        //add UI components to Pop-up screen
        add(lf);
        add(sf);
        add(cbf1);
        add(cbf2);
        add(vfm);
    }
    public int getPreferredWidth() {
        return _Width;
    }
    public int getPreferredHeight() {
        return _Height;
    }
    
    public void sublayout(int width, int height)
    {
        super.sublayout(getPreferredWidth(), Integer.MAX_VALUE);
        setExtent(getPreferredWidth(), getPreferredHeight());
        setPosition(_X, _Y);
    }
    }//end of class
    

    The reason why you need to replace getPreferredHeight() and getPreferredWidth() is due to all subcalls and sublayouts which actually occur when you call super.sublayout. It will then use the 'default' screen page or getPreferredWidth/height.

    Just a friendly recommendation, adjusting the size of a screen to a static value is effective only if you also check the size of the font, currently if the user has a font above average size, a part of the text will not be seen, so, technically, the most effective way is to have the JAVA virtual machine to manage the resizing/flaking itself This can be done by simply using the same code that I posted above, however remove the substitution on sublayout, the width will be slightly larger that you set but at least you won't encounter unknowns.

    Hope this helps,

    Concerning

    André

  • To see the popup ADF

    Hello world

    I use JDev 11.1.1.7

    I have problem on popup. I have an area on my jspx page and I added a popup. Also, I added a behavior element see the pop-up window of a command button.

    When I pressed the button to display the pop-up window, it is open; but lining up behind in the region. I can't see the view.

    For example, I loaded an image, you can see, how is it

    Capture.PNG

    How can I solve this problem?

    Thank you.

    Thanks for everything; I solved the problem and it was a different problem. It is not on the pop-up window.

    It's the tag

    I realized, there was 2 tag in my page jspx; if this problem occurs. Now, it works fine.

  • Refresh paging ADF problem

    Hi all

    I created a form of research that is filtering some registration and fill in af:table.

    In my table, I've implemented pagination using scrolling strategy in ADF 11.1.1.7.

    Forward and backward navigation works perfectly well. Suppose that I am on the 4th page and perform a search based on certain criteria.

    . Filtered check are shown in the table but my pagination control is on page 4.

    Ideally, it should reset and go on the 1st page.

    Please suggest any other solution to this problem.

    Thank you

    AK.

    This piece of code restores intial position (1) indicator of pagination.

    private void refreshTable() {}

    create a range for the table change event

    Event RangeChangeEvent = new RangeChangeEvent (array, 0, 0, 0, 0);

    table. Broadcast (Event);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (table);

    }

  • Deployment Mobile ADF problem

    Hello-

    I'm so frustrated with the ADF Mobile deployment. I have already created several Android applications using the native language and never did face problems of this kind. I am very familiar with the ADF development as well.

    in any case, it's my problem.

    I downloaded the mobile application of adf sample from the following tutorial, but I have been unable to deploy on the Android emulator in Release mode. The debug mode takes forever.

    Oracle JDeveloper 11 g Release 2 tutorials - creating Mobile Applications with Oracle ADF Mobile

    This is the error messages I receive:

    [23: 02:51]-deployment began.  ----

    [23: 02:51] the target platform's (Android).

    [23: 02:51] early deployment of ADF Mobile 'Employees' to Android application using the profile "Android3."

    [23: 02:51] undeployment.

    [23: 02:51] - incomplete deployment.

    [23: 02:51] the following configuration of Android preference is invalid or missing. Set these options in the preferences of JDeveloper on the Panel of the ADF Mobile:

    Key to past

    (oracle.adfmf.framework.dt.deploy.android.deployers.ValidatePreferencesDeployer)

    I generated the keystore using keygen by the tutorial and it's not ' t help.

    That's how I validated the keystore.

    C:\Oracle\MiddlewareMob\jdk160_24\bin > emp.keystore keytool-list - keystore

    Enter keystore password:

    Keystore type: JKS

    Keystore provider: SUN

    Your keystore contains 1 entry

    EMPL, November 19, 2013, PrivateKeyEntry.

    Certificate fingerprint (MD5): 8A: 27:53:64:B3:AF:01:CA:9 C: 2F:47:2 A: 50:16:E4:40

    C:\Oracle\MiddlewareMob\jdk160_24\bin >

    I tried to recreate the file of keys twice, but it did not help. I know that the entered password is correct.

    Any suggestions will be appreciated. Also, I started learning JQuery Mobile at the same time.

    Thank you

    S

    I had the same problem and then I realized that the tools-> preferences window is too small so don't see «Key Password"field within the «Realase» tab Just resize the window.

  • Validating the login Popup ADF Page...

    Hi all
    I made a login page using the validation of the database. I did it with bean managed with mapped action.
    In the bean, I have an action in which I made the connection validation logic. It works fine, but when I get a bad login and a password it should show a popup message or an error on this page. How can I reach it?

    Thanks in advance

    Hello..
    For bad login password or username, you can show FacesMessage as follows

    {if (LoginSuccess)}
    your code stuff
    } else {}
    In case of connection failure
    showMsg ("Incorrect username or password");
    }

    {} private void showMsg (String sMsg)
    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, null, sMsg);
    FacesContext context = FacesContext.getCurrentInstance ();
    context.addMessage (null, msg);
    }

    See:

    ADF - Jdev 11g - FacesMessage

  • ConvertColor ADF problem

    Hello

    I am trying to use the color of the adf and I am facing a problem. Basically, I just try to display the string of color as the color code and here is my code.
    <af:inputColor label="#color" id="ic2" compact="true" simple="true" readOnly="true"  value="#{row.DeptColorcode}">
    <af:convertColor patterns="#RRGGBBAA" transparentAllowed="true"/>
    The color code strings are as #ff0000ff so I guess the color model that I've specified is correct. But it does not work. Can someone help me check the code? Thank you.

    Kind regards

    K.Hein

    Published by: K eh on April 18, 2011 11:04

    Looks like you have to do a work around that the inputColor is unable to manage the channel (she waits a java.awt.Color).
    Take a look at this {: identifier of the thread = 578024}
    Steve Muench provided a solution at the end right.

    Timo

  • 10.1.3 to 11.1.1.2.0 ADF ADF: problem of Migration

    Hi all

    I have a 10.x application built on business ADF for the model layer (no DB, only webservices) component and ADF - JSF to view layer.
    I try now to migrating the application to JDeveloper 11 and have had few errors during migration (I used standart Wizard comes with JDeveloper 11).
    but, meaner I can't build model layer after migration - build process get these errors:
    "{class name} is already defined in this compilation unit.
    all classes to extend oracle.jbo.server.ViewRowImpl.
    I checked and the structure of the source model has not changed since the migration.

    What could be the problem?

    Thank you

    HM, never seen cela when I migrated a few projects.
    The reason is that11.1.1.2.0 use javac to compile the sources while 10.3.1 uses JOC the compiler to java to oracle which is less strict.

    Try to organize imports (I remember that this can be a problem).

    Timo

  • Function save/return ADF problem

    Hi all

    I use Jdeveloper 11 g. I have an Orders table in the database and two pages in the ADF. A page is a table of the ADF that contains a list of order records. There is a 'Create a new order' button at the bottom of the page. Another page is a detail of the form for editing a record of command ADF command or the creation of a new order record. There are two buttons at the bottom of the form. One is 'Save' for editing the reocrd existing or create a new record. Another is 'Back' for the page Table ADF proevious backup without doing anything.

    When I click on "Create new order" on the first page, I came to the second page that has a negative orderId displayed. At this point, if I decide to create a new reocrd by clicking on the 'Back' button, I got an error popup window that displays all the fields required in the page. If I find out the required fields and click the 'Back' button again, it does not take back me the previous page in the Table of the ADF. However, it adds an extra record in the table whose orderId is the negative value displayed in the detail of the previous page. I have found that it has not created a new record in the database.

    Then, if I want to contine create a new record and I want to just go back to the proevious page, how do I 1) is not to have the popup displayed error? (2) not to have a record added to the table of the ADF?

    Here is the code for 'Create a new command' in the Table of the ADF page.

    < af:commandButton actionListener = "#{bindings." Create1.execute}.
    Text = "create a new order.
    Disabled = "#{!}" bindings. Create1.enabled}"id ="cb2 ".
    partialTriggers = "t2" action = "goEditOrder" / >

    Here is the code for 'Save' and 'Back' in the form of the ADF page,

    < af:commandButton actionListener = "#{bindings.Commit.execute} '"
    Text = "Save."
    ID = "cb3" / >
    < af:commandButton text = "Return Order" id = "cb4" action = "goBackOrder" / >

    Any help is greatly appreciated.

    John

    Hi John,.

    You can link the cancellation to the command button to return as an actionListener and action to the existing one.

     
    

    Arun-

  • Link command ADF problem

    Hi all

    I use Jdeveloper 11 g. I have a master / detail relationship tables order and OrderItem. I have an edit page command that has modifiable order information and a table read-only ADF that contains a list of items associated with the current command. I have a link to ADF command on the LineItemId column in the table. When I click on the link, it will take me to the edit page of point. The problem is, whenever I select any element in the table, I've always had the first item to be loaded into the page of the item change. Someone have any ideas what I did wrong?

    Here is the part of the code connects to the command binding,

    < af:column sortProperty = "LineItemId" sortable = "false".
    headerText = "#{bindings." OrderItemsView2.hints.LineItemId.label}.
    ID = 'c4' >
    < af:commandLink actionListener = "#{bindings.setCurrentRowWithKeyValue.execute} '"
    Text = "#{rank." LineItemId}.
    Disabled = "#{!}" Bindings.setCurrentRowWithKeyValue.Enabled}.
    "ID ="cl1"partialTriggers =": t1.
    action = "goOrderItemDetail" / >
    < / af:column >

    Thanks in advance,

    John

    Published by: john wang on August 20, 2009 07:31

    Hello

    If the point editing page uses the same data control such as the one that is displayed on the edit page command you need not to use setCurrentRowWithKeyValue.
    He should be positioned on the line concerned.

    As a side note setCurrentRowWithKeyValue requires a value for the value of the key. This is possible by creating a data (e) in the definition of page links
    for the setCurrentRowWithKeyValue binding.

    HTH
    Paul

  • Regional settings please help ADF problem

    I use ADF to develop a multilingual application
    I have a problem with the locale in dialog boxes

    In the index page, I placed two buttons, one for English and one for Arabic, I used the following code
    FacesContext ctx = FacesContext.getCurrentInstance ();
    UIViewRoot uiRoot = ctx.getViewRoot ();
    Locale locale = new local ("ar");
    (local) uiRoot.setLocale;

    works quite well with normal JSF navigation with false redirection
    but when you use the dialog box (Ex: dialog: FAQ), it does not work.
    I tried to put the local tag property of view in the JSF dialog box to be an attribute of the managed bean, but it doesn't also

    Help, please

    I don't see this error, but you could do more defensive custom page lifecycle code by changing lines 37-47, of CustomFacesPageLifecycle.java of:

          for (ControlBinding cb : (List)lfContext.getBindingContainer().getControlBindings()) {
            if (cb instanceof JUCtrlListBinding) {
              JUCtrlListBinding lb = (JUCtrlListBinding)cb;
              // If the list has a translatable null value
              if (lb.hasNullValue()) {
                // Force the list of values for the list binding to be recalculated
                // so that the null value text will be in the new locale.
                ((JUCtrlListBinding)cb).setValueList(null);
              }
            }
          }
    

    to do this instead:

          if (lfContext.getBindingContainer() != null) {
          for (ControlBinding cb : (List)lfContext.getBindingContainer().getControlBindings()) {
            if (cb instanceof JUCtrlListBinding) {
              JUCtrlListBinding lb = (JUCtrlListBinding)cb;
              // If the list has a translatable null value
              if (lb.hasNullValue()) {
                // Force the list of values for the list binding to be recalculated
                // so that the null value text will be in the new locale.
                ((JUCtrlListBinding)cb).setValueList(null);
              }
            }
          }
        }
    

    I'm not used to work in a locale from right to left, myself, not sure if who will present other problems.

    I just wanted you to see an example of a solution of two local which you can change if all goes well then if necessary to ensure that it works for specific local both, you need to press.

Maybe you are looking for