COMMAND BUTTON NEEDS TO BE CLICKED TWICE TO SAVE VALUES

Hello,
I have a problem that I'm pretty much spent hours trying to fix but failed to do so.
I have a jsf page with a datatable bound to a component.
I have updatable fields inside the table and a button below to save changes to the table.
When I make a change the first time, and then hit the button, i get the action, and I save the value with no problems.
However if right after it re-renders, I make another change in the table , and save button again it won't invoke the backing bean save method.
The setter for the datatable binding property does get invoked however, it disregards the changes i just made to the table.....
If i make changes for the third time...and hit save...it works...
All my backing beans are request scope
any clues???? i appreciate your help!!
     public void save(ActionEvent e) {
          log.debug("Im entering save user");
          currentSession.setCurrentSession(client);
          FacesContext.getCurrentInstance().renderResponse();
          organicManager.saveAppUsers(client, (List)appUsersTable.getValue());
          appUsersTable.setValue(new ArrayList(organicManager.getAppUsers(client)));
<t:commandLink  actionListener="#{appUsersBean.save}" rendered="#{!appUsersBean.adding}">
     <h:outputText value="save" style="font-weight:bold;font-size:14px;text-decoration:none"/>
</t:commandLink>
<t:dataTable
binding="#{appUsersBean.appUsersTable}"
          id="appUsersTable"
          var="userRow"
          style="font-family:arial;font-size:11px;"
          rendered="#{!appUsersBean.adding}"
          bgcolor="lightcyan"
          preserveDataModel="true"
     >
     <h:column>
          <f:facet name="header">
               <h:outputText value="Username"/>
          </f:facet>          
          <h:inputText value="#{userRow.username}" readonly="true"  style="font-family:arial;font-size:10px" />
     </h:column>
     <h:column>
          <f:facet name="header">
               <h:outputText value="FirstName"/>
          </f:facet>          
          <h:inputText value="#{userRow.firstName}" maxlength="50"  style="font-family:arial;font-size:10px" />
     </h:column>
     <h:column>
          <f:facet name="header">
               <h:outputText value="LastName"/>
          </f:facet>          
          <h:inputText value="#{userRow.lastName}" maxlength="50" style="font-family:arial;font-size:10px" />
     </h:column>

Yes.
When I click the Close Window button, the Confirm close dialog window closes . . . but there is another one right behind it. I have to click the Close Window button again, and only then does the Firefox browser window close.
A couple of factors are involved:
1. I have "Warm me when I have multiple tabs" set to on.
2. Two or more tabs must be open in the Firefox window
3. I have at least two Firefox browser windows already open (not sure about this one, yet)
I thought before that it was necessary to have a dialogue box from a different program open, but this is not necessary for the bug to appear.
Thank you for your help!

Similar Messages

  • Datagird submit button needs to be clicked twice

    Hello
    I have a submit button on an adf Read Only table that needs to be clicked once when the first page of data is shown to go to the next page but twice when the option “next 10” or the drop down list is used.
    The situation is as follows:
    I have one view object which is a read only query based on an Oracle view.
    This query takes one bind variable of type number.
    There are two JSF pages.
    The first page accepts a number via an InputText. When the user clicks the command button on the page the following code is executed so that the inputted value is stored in a managed bean (scope session) property userLang.
    public String gobutton_action() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding expr = fc.getApplication().createValueBinding("#{testbean.userLang}");
    Integer iLangVal = new Integer(Integer.parseInt((String)inputText1.getValue()));
    expr.setValue(fc, iLangVal);
    return "success";
    The second page contains an adf Read Only Table based on the view object. The view object needs a value for its bind variable. In the page definition of this second page there is an ExecuteWithParams binding which is used to set the bind variable of the view query. The binding is as follows : ${sessionScope.testbean.userLang}
    There is also an invokeAction in the executables section. This binds the ExecuteWithParams with a refresh of “if needed” and a refresh condition of “#{adfFacesContext.postback == false}”
    When running the application the first page is displayed. I enter 1 in the inputText and click on the commandbutton. The second page is displayed. The contents of the data gird are correct. (proves that the value is passed correctly to the managed bean and then to the bind variable in the view query. If I select a row and click on submit the next page is correctly displayed.
    If I repeat the test (I stop the OC4J) but this time use the “Next 10” option or the drop down list to change the page of data being displayed I have to click the submit button twice to make the next page display. The first click of the submit button only has for effect to refresh the current page.
    Does anybody know what is happening ?
    Many thanks
    Paul

    Hello
    I've removed the bind variable, the managed bean the invoke actions etc. and I still have the same problem :
    I now have 1 page with a command button on it which calls a second page with a read only table linked to a view object. There is no entity object. The bind variable has been hard coded into the view object. When I click on the submit button in the table the first page should be called.
    I click on the button on the first page and the second page opens.
    I select a row and click submit and the first pages opens - so far so good.
    I restart the application.
    I click on the button on the first page and the second page opens.
    I click on "Next 10" select a row and click submit and the page refreshes itself ! (instaed of calling the first page)
    I click for a second time on the submit button and the first page opens....
    Whats happening here ?
    Many thanks
    Paul

  • Submit button needs to be clicked twice on IE 10

     <td style="width:560px;">
                                        @Html.ActionLink(g.Settings[i].Value, "Download", new { Filename = g.Settings[i].Value, Modulename = g.Settings[i].Module
    }, new { id = "LinkID" + cnt })
                                  </td>
                                  <td>
                                           <input type="image" src="~/Images/UploadFile.png" onclick="document.getElementById('@cnt.ToString()').click();
    return false;" name="image" width="16" height="20"/>
                                          <input type="file" name="fileUploder" id= @cnt.ToString() onchange="Savefile(this.id)" style="visibility:
    hidden; width:5px; height:5px;"/>
                                  </td>
    <script type="text/javascript">
        function Savefile(fileuploaderid) {
            var id = fileuploaderid;
            var files = document.getElementById(id).files;       // Getting the properties of file from file field
            var filename = files[0].name;
            var txtmoduleid = "TxtModule" + id;
            var textmodule = $("#" + txtmoduleid).val();
            var form_data = new FormData();                     // Creating object of FormData class
            form_data.append("file", files[0])              // Appending parameter named file with properties of file_field to form_data
            form_data.append("modulename", textmodule)      // Adding extra parameters to form_data
            $.ajax({
                url: "Config/Upload",
                cache: false,
                contentType: false,
                processData: false,
                data: form_data,                            // Setting the data attribute of ajax with file_data
                type: 'post',
                success: function (data) {
                    var newvalue = data;
                    var linkid = "LinkID" + id;              //get link id
                    $("#" + linkid).text(newvalue);          //change link text 
                    var textid = "TxtValId" + id;            //get text id
                    $("#" + textid).val(newvalue);          //change text value
                error: function (data) {
    </script>
    if i use onclick="document.getElementById('@cnt.ToString()').click();
    return true;"   at that time IE10 alone working. all other browsers were not working.
    please kindly provide solution.

    Hi,
    About this issue, please post in Internet Explorer forum for professional help:
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?category=iedevelopment
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Karen Hu
    TechNet Community Support

  • I have defined a finite state machine: pb with button : they need to be click twice

    I have defined a finite state machine and also defined a call to a C dll enabling to kill processus  since in my state machine I have to sequence several exe and being able to interupt them (This is the goal of mu manageProc dll)
    for the moment I make my integration test with the notepad.exe process
    the create and kill seems to work
    but I have problem wth my finite state machine I need to click twice on the differnts button for a given state to be really effective
    I have also used glabal variable and an event controller ( without that I was unable to get ffedback oo buuton click
    So my question are
    Is my problem due to the use of a shift register
    Please tell me if you need other file to understand my problem
    Regards
    Thibaut
    Attachments:
    Spectro State MAchine .vi ‏77 KB

    Thibaut,
    You should put the event structure into its own parallel while loop rather than sharing the loop with the state machine. Typically the terminals of the controls will be placed inside the event case where they are read. At least inside the loop.
    Run your VI with execution highlighting on (the light bulb on the diagram toolbar). This will show you how dataflow works.
    You probably do not need most of your global variables. Appropriate use of shift registers and wires would eliminate them.
    Lynn

  • [JS CS3] ScriptUI button wants to be clicked twice

    Hi I created a sample scriptUI dlg with three buttons:
    res =
    ]"dialog { \
    ]s: StaticText { text:'Chosissez une période:' }\
    ]]period: DropDownList { alignment:'center' }, \
    ]]s: StaticText { text:'Chosissez un fichier:' }\
    ]]files: DropDownList { alignment:'center' }, \
    ]]buttons: Group { orientation: 'row', alignment: 'center', \
    ]]] revealBtn: Button { text:'Ouvrir le dossier'}, \
    ]]] okBtn: Button { text:'Ouvrir le fichier'}, \
    ]]] cancelBtn: Button { text:'Annuler', properties:{name:'cancel'} } \
    win = new Window (res);
    win.buttons.okBtn.onClick = function ()
    ]win.close(1);
    win.buttons.revealBtn.onClick = function ()
    ]win.close(45);
    if(win.show()==1)
    ]clickButton("file","Le fichier ne se trouve plus ici :");
    else if(win.show()==45)
    ]clickButton("folder","Le dossier n'a pas été trouvé.");
    b The cancel button works fine and actually all the buttons too. Except that for the two open buttons, I need to click twice to make them run.
    Any idea ?
    TIA Loic

    Hi Peter,
    Thanks for the tip. I should have see it. Nevertheless I thought it was the way to go.
    I thought the script should have ignored one of the conditions. I will try to do differently so.
    Thanks a lot
    Loic

  • Buttons need to be pressed twice.

    Hi people. Im authoring a dvd with lots of layered menus. I had first made the menus so that every button had its own layer when it was being navigated. But there came a problem when navigating the dvd with the mouse, the overlays (layers) would not work, but using the remote would. So I changed from layers to a single pict overlay file, and also some layers, so that for instance when one is resting upon a button, it will be highlit but there would also be a picture displayed next to it (a separate layer). Am I being clear? (this is difficult for my english).
    So the problem now, is that overlays work, but a button has to be pressed twice in order for it to be activated.
    This is in dvd sp 4.
    If anybody has had this experience or know what Im doing wrong, I would love to read it.
    Thanks in advance.
    Pepo

    There are two types of still menus you can use in DVDSP, and both are "supported" by the dvd spec. The first type is a simple highlight overlay (and really is the preferred way of creating a menu). The advantages are that the menu responds quickly and generally in a way that the typical user would expect them to (mouse over results in highlighting, and one click navigates to the object).
    The second type, and the type you are using, are layered menus. Basically what DVDSP is doing is making an identical menu (with the exception of the changed content, like your button) for each state. One needs to click on it once to select it (and tell the dvd player to go to the menu with the change in the button appearance/associated image/etc) and click a second time to navigate to the object. You can have 'highlights' just like you would with the menus I described above, but in this instance the highlight appears but it still requires you to click twice. These kinds of menus are often confusing for the viewer, because they don't behave like what most are familiar with. They also can be quite sluggish in performance, and can behave very slowly on some set top players. For the most part (although the graphics can definitely look much better), I think they are best avoided.
    Jim

  • SUBMIT button works only when clicked twice... Online interactive form

    Hi,
    I have created a interactive form with SubmitToSAP button. In this I will enter a contract number and will click SUBMIT button.
    For the first time it is fetching the contract details properly.
    In the same form, i am changing  the previously entered value with another contract number and clicking SUBMIT.
    Now the details for the previously entered contract number is only displayed. Again if i try for the same value ( which i used for the second time )  and press submit, it is workin correctly.
    So, the problem is, except for the very first time SUBMIT button action, the button works fine only when clicked twice..
    please help me in solving this issue..
    Regards,
    Surya.

    Hi,
        In addition to my previous post, I am also using RESET FORM button from Library.
    First I am entering the contract number (say 400000000) in the form and clicking submit button. The contract details are fetched and displayed in the form.
    Now i am Resetting the form using Reset Button, and giving new contract number (say 400000020).  When  I pressed Submit button , the details of the first entered contract number (400000000)  is coming.
    Then again I am giving 400000020 or any other number, it is fetching the details correctly for that number...
    Can anyone help me in this issue..
    Thanks,
    Surya.

  • HT201406 my home button needs to be pressed twice to move.

    Is there any way I can fix my 4G iphone.  The home button needs to be pressed at least twice to function.

    i'm having the same problem with mine cept mine is an iPod touch i'm about to go to the apple store or geek squad or something to get it fixed because i am not replacing this thing not after all we've been through together

  • CP6 - Image button needs clicked twice.

    I am having an issue where an image button inside a group sometimes needs to be clicked twice before the associated success action is fired.  This is how I have it set up.
    3 groups on the slide are initially hidden.  on the slide I have a smart shape button that has an action that shows 1 of the two groups.  In the 1st group I have an image button that hides the 1st and shows the 2nd group.  (think of it as a next button)  Then in the 2nd group I have 2 image buttons.  One for previous (shows group #1) and one for next (shows #3).
    Group 1 and 2 both have a next button in the same exact spot and if I open group 1, click next, click previous, and try to click next again (on group #1) I have to click twice to have it activate.  It's almost like the hit area for the next button in group #2 is still active even though the image button is hidden.  (It almost acts like a dead spot that goes away once you click it)
    Is there any known issue with elements in groups not being hidden 100% and causing overlapping issues with other elements on the slide?

    Hello and welcome on the forum,
    Which version (exact number please) do you use?
    Is it possible to insert a screenshot of the timeline with all groups expanded? If two (shape) buttons are in exact the same location at the same time, one of them can be hidden to have the other one active. I have been trying this out extensively, so I'm a bit puzzled about your problem.
    Lilybiri

  • No EVENT_COMMIT when clicking Picture Command button label

    If I use a PICTURE COMMAND BUTTON and Left Mouse click on the text label for the button, the Button does not actuate and there is no EVENT_COMMIT, only EVENT_LEFT_CLICK. If you Left Mouse Click on any other part of the button then everything works as expected. Is this behavior expected? (LW/CVI 7 & 7.1)

    Yes, it could. You'd need to distinguish between clicks on the label part versus clicks on the button part. You can do that by comparing the mouse coordinates of the click with the label area.
    Once you do that, you can use the FakeKeystroke function to simulate a user pressing on the button with either the enter key or the spacebar key. But before you do that, you'll have to set the keyboard focus on the button (clicking on the label will eventually set the focus on the button, but only after the LEFT_CLICK event is sent to the callback).
    The following code should do the trick:
    GetCtrlAttribute (panel, control, ATTR_LABEL_TOP, &top);
    GetCtrlAttribute (panel, control, ATTR_LABEL_LEFT, &left);
    GetCtrlAttribute (panel, control, ATTR_LABEL_WI
    DTH, &width);
    GetCtrlAttribute (panel, control, ATTR_LABEL_HEIGHT, &height);
    if (eventData1 >= top && eventData1 < top + height && eventData2 >= left && eventData2 < left + width)
    SetActiveCtrl (panel, control);
    FakeKeystroke (VAL_ENTER_VKEY);
    Luis

  • Clicking twice on a Form submit button

    I have problem that I need either help on solving or ideas on a different solution please.
    I have some code in a request scope backing bean that sets a Boolean in a session cope bean to true. This indicates that the form has been submitted within this session.
    So if a user tries to submit the same form in the same session, the form backing bean will check the session bean property, see that it is set to true and the method which handles the Form�s commandButton in the backing bean returns null, with a message saying that the form can not be resubmitted.
    Also within the session bean I set a property that indicates if a credit card payment was made or not, and when the form backing bean sends its message on a form resubmit, it also informs the user if a credit card transaction had actually occurred or not.
    This works fine when you fully submit the form and return to the form page and try to resubmit it. But (there always is a but) when originally submitting the form, if a user clicks the submit button once, and then once again in quick succession (not a double click though) the session form property that gets set to true when the credit card payment is made does not get resolved correctly. It gets resolved as false (this is how it is initialized), even though it was set to true as a result of the first click.
    Only in the case of the clicking twice scenario I get an exception in the log file, which I can�t trace back. The request is directed through a filter �OrderAccessControlFilter� which seems to mask where the exception originally occurred.
    Sorry for the long explanation, I would appreciate any help.
    Below is the exception:
    10-Feb-2005 10:55:16 com.sun.faces.lifecycle.InvokeApplicationPhase execute
    SEVERE: Index: 0, Size: 0
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.remove(ArrayList.java:392)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:271)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at com.syndero.lingo.order.OrderAccessControlFilter.doFilter(OrderAccessControlFilter.java:199)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    10-Feb-2005 10:55:16 com.syndero.lingo.order.OrderAccessControlFilter doFilter
    SEVERE: Error in OrderAccessControlFilter:
    javax.servlet.ServletException: Index: 0, Size: 0
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at com.syndero.lingo.order.OrderAccessControlFilter.doFilter(OrderAccessControlFilter.java:199)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)

    Hi,
    I am also facing the same problem. I have 2 buttons on my page, enable and disable. When I click enable and then disable in quick succession, the application crashes.
    Also, I put in some System out statemets in the button handlers and found out that a new thread is spawned for every request made. Each if this thread tries to service all the actions performed on the page.
    For eg : if i click on Enable and the Disable in my application, the flow is like:
    1. Thread 1 goes into the enable handler
    2. A new Thread 2 goes into the enable handler
    3. Thread 1 returns from enable action
    4. Thread 1 goes into the disable handler
    5. Thread 2 returns from enable handler
    6. Thread 1 returns from disable handler.
    7. Application crashes.
    Can anyone please explain this flow?
    Thanks,
    Mahajan.

  • ADF/JSF page loads when any command button is clicked

    Hello All,
    I am lost in the ADF/JSF page flow (using Jdev 10.1.3). Following are the tags (in order) in my page;
    (WHEN THIS PAGE LOADS, IT GOES TO THE DATABASE TO GET VALUES (for the drop down lists that will appear on the page); THIS SHOULD HAPPEN JUST ONCE AND AT THIS POINT)
    <f:view>
    <afh:body>
    <afh:html>
    <af:form>
    <af:panelpage>
    <f:facet name="contextSwitcher">
    <af:panelHorizontal> has a af:commandLink </af:panelHorizontal>
    </f:facet>
    <f:facet name="messages">
    <af:messages/>
    </f:facet>
    <af:panelform>
    <h:panelGrid columns="2" cellspacing="14">
    has 2 panelgroups (one group has *2 SelectOneChoice lists (that need to be populated by fetching data from database* and the other group has 2 CommandButtons - 'Go' and 'Cancel") (GO BUTTON SETS THE SHOWPANEL() TO TRUE)
    (WHEN GO BUTTON IS CLICKED, THE PAGE GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD (action="#{muBean.doWork}" )THAT IS ASSOCIATED WITH GO BUTTON ACTION SHOULD BE CALLED)
    </h:panelGrid>
    <h:panelGrid columns="2" cellspacing="14" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 inputText fields
    </h:panelGrid>
    <af:table var="someTable" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has a bunch of af:columns
    </af:table>
    <af:panelHorizontal rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 af:commandButtons - submit, save, add row
    (WHEN submit or save or add row BUTTON IS CLICKED, THE PAGE KIND OF LOADS AND GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD THAT IS ASSOCIATED WITH submit/save/add row BUTTON ACTION SHOULD BE CALLED)
    </af:panelHorizontal
    </af:panelForm>
    </af:panelPage>
    <!-- Footer -->
    <jsp:include page="/pages/includes/footer.jspx"/>
    </af:form>
    <f:verbatim>
    <script type="text/javascript" src="../script/tree.js"></script>
    </f:verbatim>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    _*why is it that when the command buttons are clicked, the whole page is loaded? Only the methods associated with the action (action="#{newMapRequestItem.addARow}" ) should be called.*_
    _*IS THERE A WAY TO AVOID THIS WITHOUT USING PARTIAL PAGE RENDERING ?*_
    _*DOES MY TAG NESTING LOOK OK?*_
    Edited by: user12054715 on Mar 24, 2010 12:00 PM

    Can somebody please address this?
    Thanks,

  • How to open new browser window on click of command button

    Hi,
    We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
    Thanks in Advance,
    Pradeep

    Hi,
    I have to load an applet viewer in the new browser window. I have URL to the PDF.
    I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
    The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
    How do i update the session scope variable using javascript?
    Thanks and Regards,
    Pradeep

  • How to open an pdf report On click of some command button in adf

    Hi,
    I have to generate some pdf report or some pdf document on click of some command button .Could any one please tell me how to achieve this.
    suggestion would be appreciated,
    Regards
    Vinay kumar

    So what you're saying is the PDF already exists on your web server, and all you want to do is navigate in the browser from your ADF application to the PDF, yes? If that's correct, let's assume you're PDF exists at:
    http://www.acme.com/someCustomPath/myFantasticReport.pdf
    Consider the <af:goButton> or <af:goLink> controls, which include the destination attribute. As such you'd do something like this:
    <af:goButton destination="http://www.acme.com/someCustomPath/myFantasticReport.pdf"/>As you can see the "go" controls are for navigating to resources not inside your ADF application, while the "command" controls are reserved for navigation among resources in your application.
    In order to generate the destination URL, just replace the destination attribute with an EL expression that retrieves it's value from a backing bean:
    <af:goButton destination="#{myBean.giveMeTheUrl}"/>Regards,
    CM.

  • Af:statusIndicator does not show busy icon when a command button is click

    Hi Guys,
    af:statusIndicator does not show busy icon or motion when a command button is click
    I am working on an excel data upload functionality on .jspx page. I use “af:inputFile” file uploader to upload an excel file then process the data and store it as a list of objects in memory and display it in “af:table” table
    I added “af:statusIndicator” to the page to show the user that the page is progressing while the data is uploading and when it is saving the data to the database.
    In this case, when the “af:inputFile” is clicked to upload the excel file - the status indicator shows a progress icon (movement) which is expected and is good. However, after the data have been display in the table when I click on a command button that saves the data to the database – I expected the status indicator to start its busy motion but that is not happening. Whereas, the command button grayed out and is disable when I clicked the button until the operation is completed.
    Is there any way to start the statusIndicator when a command button is clicked?
    I tried the following options
    *<af:statusIndicator id="si1_uploadStatus" partialTriggers="pc1:cb1 pc1:table"/>*
    Where pc1:cb1 is the command button and pc1:table is the table
    *<af:commandButton text="Submit Uploads" id="cb1"*
    *disabled="#{!viewScope.batchUploadController.allSavable}"*
    *partialTriggers="::infFilePath"*
    *action="#{viewScope.batchUploadController.saveUploadedData}"*
    *blocking="true"/>*
    Thanks,

    Can somebody please address this?
    Thanks,

Maybe you are looking for