How to use a button in a dialog box without closing the dialog box

I defined a button located in a dialog box. I want this button to refresh an outputText but when clicked, the managed bean method is called as expected and the dialog box is closed that I don't want.

<af:popup id="dataFilterPopup">
  <af:dialog id="d5" contentHeight="500" contentWidth="600" stretchChildren="first">
  <af:panelGroupLayout layout="vertical">
  <af:commandButton text="Count" id="cb1" action="#{pageFlowScope.ReportDataFilterBean.count}" partialSubmit="true" partialTriggers="countText"/>
  <af:outputText id="countText" clientComponent="true" value="Number: #{pageFlowScope.ReporDataFilterBean.countValue}"/>
  </af:panelGroupLayout>
  </af:dialog>
</af:popup>

The managed bean counting method sets the value of the countValue.

public void count() {
 countValue = 10;
}

public int getCountValue() {
  return countValue;
} 

I see two errors:

1. you may use the 'action' of attribute because it causes the navigation there is no transition rule such that the current page is just refreshed, so your dialog box is closed. Use 'actionListener' rather;

2. in order to refresh the component, you must set the 'partialTriggers' attribute but not the attribute 'partialTriggers' the command button:

Dimitar

Tags: Java

Similar Questions

  • How to use radio buttons to display different text depending on the selected button?

    I am new to acrobatXi and have been implemented on-line to fill PDF Forms.

    I have 3 radio buttons in a group (Group 1) choice1, the lendemain2 and the 3 choices.

    I would like a text box to display the text "price" If you selected option 1, the 'price B' If you selected option 2 and the ' price C "If you selected option 3.

    I have no experience of java, so any help would be appreciated.

    Use this code in the custom text field calculation script:

    var v = this.getField("group1").valueAsString;
    if (v=="Off") event.value = "";
    else if (v=="choice1") event.value = "Price A";
    else if (v=="choice2") event.value = "Price B";
    else if (v=="choice3") event.value = "Price C";
    
  • How I use a proxy? When all ports are closed. Even Skype has now closed! Like any.

    Hello

    How I use a proxy? When all ports are closed. Even Skype has now closed!

    Like any.

    Unknown Windows & Auto cant detected no connections, the proxy & the so... as; (P or vpn, sucks4 & 5 servers, https)

    I need "full technical assistance" and get expert advice... Because:
    I want to check my emails...!

    But I can't open Skype Support web Page & ~ all networks.

    CONCERNING

    Hello

    Thanks for posting your query in the Microsoft Community Forums.

    According to the description of the problem, it seems that you want to use the proxy to access email and Skype.

    I will certainly help you with this issue.

    I suggest you to refer to the links and check if it helps.

    Change the proxy server settings in Internet Explorer 

    Note: In some corporate environments, network or proxy settings might be solved or disabled by the administrator.

    Can I connect to Skype via a proxy server?

    If the problem persists or you have any other questions about Proxy servers, do not hesitate to let us know. We will be happy to help you.

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • How come back initially on an editing session without closing the entire program and start again?

    How come back initially on an editing session without closing the entire program and start again?

    Hello

    There are two answers to this. If you have not saved the image since the opening, you can restore the file Menu-Revert or F12 and that will bring back you at the beginning. A more elegant solution is the historical Panel.

    Photoshop has a history panel (Windows Menu-history) that keeps track of everything you do on an image and allows you to go back in the flow of work and in effect then go ahead if you change your mind. The original image is always registered as a snapshot and then subsequent action recording. So you can come back not only the original image, but any previous change after opening. You can even take your own snapshots which is a useful feature.

    Hope that helps

    Terri

  • How to shrink a picture to fit a model without losing the proportions of photos? When I pull the smaller image, it will lean or wide rather than staying the same but smaller...

    How to shrink a picture to fit a model without losing the proportions of photos? When I pull the smaller image, it will lean or wide rather than staying the same but smaller...

    Nice day!

    When turn you the image permanently the SHIFT key to keep the proportions or perhaps use file > Automate > Fit Image.

    Kind regards

    Pfaffenbichler

  • can quicken 2007 run on El Capitan (i.e., os 10.11)? I have one currently using Yosemite and you want to update without losing the use of Quicken 2007. I don't like the new version of Quicken.

    Can quicken 2007 run on El Capitan (i.e., os 10.11)? I have one currently using Yosemite and you want to update without losing the use of Quicken 2007. I don't like the new version of Quicken.

    Join the club of those of us who don't like Quicken 2015 or 2016 Quicken; even if I bought it for a 40% discount offered by Intuit!  I was just disappointed by Q2016 compared to Quicken 2007!

    If you have upgraded to the 16.2.3, version it will work well in El Capitan!

  • How to use a button to fire the stored procedure or anonymous block PLSQL

    I am converting an application forms at the APEX, and which was easy became almost unbelievably difficult. I have a page that represents a record with an element called "history_rec". It is an element of the checkbox. Clicking on it causes the column for this record to be filled with the letter 'H', indicating that this recording is now historical and not assets. I also have this page a button that says "Renew Record." This button redirects to the current page and sets the value of 5 elements of the page on the values of the record being replaced with the new record.

    (This, incidentally, is an insurance system of follow-up to the loan guarantees. The insurance must be renewed annually, and this system is used to ensure that it is.)

    I also want the button to trigger a process that updates the old record by filling in the history_rec column. To do this, I created a process called "make_history" that contains the following SQL code:

    "Ensure the update
    Set history_rec = "H".
    "where insureseq =: P22_INSURESEQ.

    I chose for the 'process' Point ' on demand: run this process when requested by AJAX. "

    Is it possible my button 'Renew the Record' and if so, how? If this is not the case, how should I proceed?

    Doug,

    I'm glad you've made any progress.

    What process throws the error, it is the last process?

    "Error Unable to fetch row ' with this code ORA" ORA-01403: no data found. "

    Is page 21 page that you develop?

    I want to make is that demand for return on page 21

    What you already have for the branches Page?

    Jeff

  • How to use a button in a movie clip to go to the root?

    Hi, I am new to flash and AS3 and need help to get my buttons.

    I made a script to the file I'm working with who has 2 movieclips to buttons. I want this button and load the image in a UILoader (problemLoader_mc) that I placed on the stage on the main timeline (chronology which contains WeekBar_mc). The problem is that I don't know how to get to the root of the file to start a new directory to tell my function to load the image I want. I tried several approaches, including:

    MovieClip (root).problemLoader_mc.source = problemArray [0]
    MovieClip (parent).problemLoader_mc.source = problemArray [0]
    root.problemLoader_mc.source = problemArray [0]
    parent.problemLoader_mc.source = problemArray [0]
    (root as MovieClip).problemLoader_mc.source = problemArray [0]


    If anyone can help me with this, I would be very happy, I'm banging my head against a wall for the moment. (Also, please excuse my vague descriptions, I'm still learning the official terminology).

    Here is the code that I wrote which relates to this problem:

    I have a mental block for the reasoning of the things regarding the allocation of the listener to an object two mc far the main timeline while having the function on the main timeline, so I can play with it my own for awhile. One thing you don't have but had to pay the same attention to the assignment of problemArray [0] in that function, I assume also lives in the root.

    But here's what I would do at the moment.

    Take all the code except the table and plant it in the scenario where the lives of WEEK1btn, modify as follows...

    WEEK1_btn.addEventListener (MouseEvent.CLICK, pload1);

    function pload1(event:Event)
    {
    . ProblemLoader_mc.source (this.parent.parent) of MovieClip = MovieClip (this.parent.parent) .problemArray [0];
    }

    I've not used root myself yet, so I'm not comfortable giving you a solution it is trying.

  • can't understand how to use ios 9.3.2 on iphone 5s since the upgrade

    After I upgraded my iphone 5 s for 9.3.2,and I can't understand how to use the many features, iTunes is very different, iphots also, very frustrating.  Is there a help available online at least?  Thank you.

    iOS 9.3.2 is not much different from iOS 9.3.1. What iOS version were you using before?

    If you post specific questions, maybe someone can answer.

    Here is the link to the User Guide:

    http://help.Apple.com/iPhone/9/

  • How o use an icon in a standard report to display the details by using a hyperlink with APEX 5.0

    Hello

    I work with APEX 5.0.

    I would like a report (classic) display a report of details (also classical report) using a hyperlink, but not a "text-hyperlink" like 'click here for details'.

    Instead, I want to use a small icon which will occur the same result when you click on.

    It works fine, when the hyperlink is defined as text like: 'click here for details'.

    When I try to use an image, I don't get the desired result.

    Here's what I tried to Hare:

    1)

    Link-> Link attributes, then filled column: src = "& WORKSPACE_IMAGES. "" #ICON_NAME # "width ="40"height = 40 ' or img src =" & WORKSPACE_IMAGES. " "" #ICON_NAME # "width ="40"height = 40.

    = > no picture for the items in the column, but the link already created for each column of the remains (and works)

    2)

    Formatting of column-> HTML Expression, then filled: < img src = "& WORKSPACE_IMAGES. "" #ICON_NAME # "width ="40"height = 40" >

    = > the image appears for each column element, but the hyperlink is gone.

    Somone has idea how to use a picture/icon to have a hyperling in screens reported a detail?

    Thank you in advance for sharing your experience.

    Kimd cordially

    Hi Patrick,

    Link to the column-> then filled:

    Link text = #ICON_IS #

    Link attributes =.

    Target = this Application Page

    Page = 5

    Article 1 = P5_DEPTNO

    Value 1 = #DEPTNO #.

    Article 2 = P5_DEPARTMENT

    Value 2 = #DNAME #.

    Put this   in the link text not in attributes of link

    Remove the code from the link attributes.

    I don't have how to make it the way that describe you.

    Apex. Oracle.com is a hosted version of application Express, you can build online applications.

    Go to this link and the application workspace https://apex.oracle.com/en/

    Hope this helps you,

    Kind regards

    Jitendra

  • How to use mirror Volume to a basic disk without convert dynamic disk

    I have two 500 GB Hard Drive attached to my PC running Windows 7.

    I want the software Drive (d :)) [hard drive] should be saved automatically on the other hard drive. I learned a lot from the internet about mirrored dynamic disks in volume. in this case, I need to convert the two hard disks dynamic disk.

    My question is, are at - it another way to make a record of mirror on the disk on the secondary hard drive without converting the main hard drive on the dynamic disk? [I have no problem to convert the second hard disk to dynamic disk, but I don't want the first hard to convert to dynamic disk].

    If it is not possible through Windows, is it any 3rd party software to make a backup without soldering to a different disk without conversion to dynamic disk drive?

    -Http://sites.google.com/site/mustakimali CHRISTOPHE TALUKDER

    New - mirroring (how you present) is * not * "backup."  It has similarities-, but it has flaws.
     
    -If something fried two hard drives (possible - more so in fact than only one of the burners to die a natural death) - you have lost everything if it's the only way you were protection of your data.
    -If something happens to the whole system (stolen, fire, etc.)-* poof * will the data.
    -If you're infested/infected with virus/malware - it affects * two * drives at the same time.
    -If something starts erasing/moving/replication to disk - it does both.
     
    You can mirror if you wish; It will decrease your performance in some ways.  It will not * protecting * data except under certain very specific circumstances.  I would still * very * suggest a point-in-time backup solution on * external * same media if you decide to continue with the concept of mirror.  If you really want to mirror - lay material mirror - faster resource / the less intensive/best results.

    --
    Martin Stanley
    MS - MVP
    --
    How to ask Questions the Smart way
    http://www.CatB.org/~ESR/FAQs/smart-questions.html
  • How to use artifacts from MDS repository from one domain to the other domain

    Hello

    I'm working on the Oracle SOA MDS repository. I created the Databased MDS repository to the local server's domain. Now, I want to use artifacts from local area MDS repository same in the other domain server (domain of Dev).
    I created the composite soa for it and tried to use artifacts from local area MDS repository and deploy soa composite in the field of the Dev. But I am not able to use repository artifacts MDS from one domain to the other domain.

    Please help me

    SOA 11 g: 11.1.1.5

    Published by: 850198 on July 4, 2012 02:26

    Hello

    You can specify where to look for MDS in adf - config.xml present in *\.adf\META-INF*.

    Change the section in the file above to your Local MDS Server.

              
                
                  
                  
                  
                  
                
              
    

    Kind regards
    Neeraj Sehgal

  • How can I filter a table of data control without entering the query

    I have a table from a WSDL-based web service data control.

    I want to filter the table without input query in the filter text box. Without text filter box, each could filter the table with a query hardcoded internally.
    For example, when the user menu button click and then it filters the table where type = '1' and B menu button filters the table by type = '2' and C menu button filters the table by type =' "."

    How can I filter the table without entering the query?

    Could someone point me to a solution please.

    Thank you.
    11.1.5 jdev

    Published by: 893364 on October 26, 2011 12:15

    Published by: 893364 on October 26, 2011 12:21

    Hello

    When you have created the table, have you tried selecting the option "filter". Select the table, and access the property of m.. In the toolbar of the Properties Inspector, there is an icon to change the configuration. His fields of filter adding filter for the user to search in.

    Option 2: Data from the Web Service are actually held in iterators. If you want to filter the Web service request, I wouldn't use the WS domain controller but a proxy of JAX - WS in a POJO to recover data from the WS. Then the data control created from the POJO. You might have a method exposed on the POJO which allows you to filter the data internally that is held

    Frank

Maybe you are looking for

  • ipod is disable

    Hello my daughter here Forgot password for iPod and know is turn off, can you guys help me please?

  • OS and update

    I use Linux Mint and wanted to update my Skype, but on the page, I can choose between operation open source systems like Ubuntu, but not mint. Which should I choose under: Ubuntu 10.04; Ubuntu Multiarch. Debian; Fedore; OpenSUSE and dynamics?

  • problem with the widget

    Greetings, I recently updated the new ics. for me, everything works well except one thing. I couldn't open the widget, so my homescreen is so ugly (no widget to the home screen). When I try to open, he said, "unfortunely, your widgets has stopped wor

  • Using the photo gallery

    Our hard drive has been replaced and I'm no longer able to reduce the size of my photos in the Gallery, how can I do?

  • "You don't have permission to access to" a computer - Windows 7

    Now, I have 3 laptops in my house.  We're on Windows 7 (let's call it W7) and two are on Vista (we'll call V1 and V2).  On my Windows 7, I can connect (via the network - all PC use the same Linksys wireless router) v1 without problem and see shared f