How to programmatically handle valueChangeEvent.

Hi ,
I am using jdeveloper version 11.1.1.6.0.
I have an select one choice which is loaded with the list of values from the bean as follows:
                  <af:selectOneChoice
                                value="#{bindings.AfCmnLovMasterListVO.inputValue}"                             
                                autoSubmit="true"
                                contentStyle="height: 20px;width:130px;"
                                required="#{bindings.AfCmnLovMasterListVO.hints.mandatory}"
                                shortDesc="#{bindings.AfCmnLovMasterListVO.hints.tooltip}"
                                simple="true" id="socMaterial"
                                valueChangeListener="#{AfOrdCtrBulkQuoteReqBean.custMaterialMaterialValueChangeListener}"
                                      binding="#{AfOrdCtrBulkQuoteReqBean.socMaterial}">               
                <f:selectItems value="#{bindings.AfCmnLovMasterListVO.items}"
                                 id="si3"/>
                </af:selectOneChoice>I want to programatically create value change event and change the value of the select one choice.
Changing of select one choice is done by following code
                            RichTable objMaterialTable = (RichTable) JSFUtils.findComponentInRoot("socMaterial");
                            objMaterialTable.setValue(new String("CaF2"));   //Not working with this
                            objMaterialTable.setValue(new Integer(5));   //Working with this
objMaterialTable.setValue(new String("CaF2")); why this doesnt work.
and also objMaterialTable.setValue(new Integer(5)); this works but does not fire valueChangeListener
so how i can set the value in before phase method and also fire the valueChangeListener

Hi Sudipto Desmukh,
I am not able to programmatically fire the value change Event in the before Phase method.Also there is no any exception in the console also.
I tried following ways
                            RichSelectOneChoice objMaterialSoc= (RichSelectOneChoice) JSFUtils.findComponentInRoot("socMaterial");                        
                            //ValueChangeEvent vce = new ValueChangeEvent(objMaterialSoc,"Al2Si","BaTiO3");
                            ValueChangeEvent vces = new ValueChangeEvent(objMaterialSoc,new Integer(0),new Integer(5));
                              vce.queue();
                          //vces.queue();
         RichSelectOneChoice objMaterialSoc= (RichSelectOneChoice) JSFUtils.findComponentInRoot("socMaterial");                         
          //ValueChangeEvent vce = new ValueChangeEvent(objMaterialSoc,"Al2Si","BaTiO3");
          ValueChangeEvent vces = new ValueChangeEvent(objMaterialSoc,new Integer(0),new Integer(5));
           objMaterialSoc.queueEvent(vces);
          But its not calling the valueChangeListener of that component.

Similar Messages

  • How do I handle a count overflow while running "end's" rotation drive in position control?

    Hi everyone!
    We run a direct drive in position control mode and normally do oscillating movements i.e. +-10°. The Signal we get is a TTL with 120 counts/°. And with those counts we do our control.
    But now we want to run the motor permanent one direction for some days (or 4 ever :-). That means that we get sooner or later a overflow on the count variable. So I think we have a problem when the setpoint is on Overflow -32767 and the Position is 32767. ( I know that I can increase the Integer Value but that does not solve it at the end :-)
    How can I handle that?
    Is there any programmatic approach?
    Thanks for Help!

    Hi Petric,
    I do see the math but that does not help when I have more then one overflow, right?
    Well, you have to make sure you NEVER miss such an overflow event. It would be a big problem if you would detect just every second overflow…
    I got a big issue when the setpoint is jumping due to overflow! I have to handle that primarly.
    Have your control loop work with arbitrary units.
    Convert your measurement signal to arbitrary unit with handling overflows in this step.
    Convert your control output to output signal handling overflows as well…

  • How to programmatically click on cross button X c#

    i searched google lot to know how can i programmatically click on cross button X using c#. i got the below code which is used for different purpose.
    private void Form1_FormClosing(object sender, FormClosingEventArgs e) {
    if (string.Equals((sender as Button).Name, @"CloseButton"))
    // Do something proper to CloseButton.
    else
    // Then assume that X has been clicked and act accordingly.
    so anyone can tell me How to programmatically click on cross button for closing form. thanks

    this is the code which i was looking for to close any sdi window programmatically.
    Question
    Vote as helpful
    0
    Vote
    Hi MM2,
    After I tested all of the following WM_XXX messages, I found one that works.
    Code Snippet
    public partial class Form1 : Form
    private int WM_IME_NOTIFY = 0x0282;
    private int WM_DESTROY = 0x0002;
    private int WM_NCDESTROY = 0x0082;
    private int WM_CLOSE = 0x0010;
    private int IMN_CLOSESTATUSWINDOW = 0x0001;
    private int WM_KILLFOCUS = 0x0008;
    private int WM_COMMAND = 0x0011;
    [DllImport("user32.dll", SetLastError = true)]
    static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
    [DllImport("user32.dll", CharSet = CharSet.Auto)]
    private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
    private void closeYesNoMBButton_Click(object sender, EventArgs e)
    IntPtr handle = FindWindow(null, "YesNoMessageBox");
    SendMessage(handle, WM_KILLFOCUS, 0, 0);
    SendMessage(handle, WM_IME_NOTIFY, IMN_CLOSESTATUSWINDOW, 0);
    SendMessage(handle, WM_COMMAND, 0, 0);
    SendMessage(handle, WM_DESTROY, 0, 0);
    SendMessage(handle, WM_NCDESTROY, 0, 0);

  • How do I handle my Final SELECT based on a @ReportType Run Parameter

    So I have multiple CTEs in my SQL...
    WITH CTE_1 AS
    (SELECT...)
    CTE_2 AS
    (SELECT...)
    CTE_3 AS
    (SELECT...)
    My Final SELECT then will be based on my CTE drill-downs and the filtering will be based on the @ReportType that will be chosen within SSRS and Report Manager. How can I handle the varying portions of my FINAL SELECT based on @ReportType? Do I have to do
    this via dynamic SQL? I know that dynamic SQL is frowned upon. So this is what I'm talking about...
    SELECT ...
    CASE WHEN @ReportType = 'Renewal People'
    THEN INNER JOIN...
    WHEN @ReportType = 'New People'
    THEN NOT IN (SELECT...)
    END
    CASE WHEN @ReportType = 'Renewal People'
    THEN WHERE...
    WHEN @ReportType = 'New People'
    THEN WHERE...
    END

    > I know that dynamic SQL is frowned upon.
    That depends. I love (*) dynamic SQL for one thing:
    http://www.sqlusa.com/bestpractices/dynamicsql/
    Second, there are many things you cannot in static SQL:
    http://www.sqlusa.com/bestpractices2008/rebuild-all-indexes/
    * First choice is static SQL always.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • In ldap how do you handle to users logged in at the same time

    in ldap if i am logged in as one user and make a change to a page and another user makes another change how do i handle refresh the other persons logged in pages...

    Hi,
    to which page do you add a change and what has LDAP to do with this ?
    Frank

  • How do you handle multiple at the same address?

    My wife just got an iMac. She is using the Birthday feature in Address Book and iCal to track our friends and family birthdays and anniversaries.
    Question:
    How do you track it when multiple people are at the same address? For instance, our friends are a family of four, but they all live at the same address. Do you need to make a separate Address Book card for each of them, even the 1 year old baby? Or can you track multiple people in a single card with custom fields?
    If you do need to make multiple cards, then how do you handle mailing lists? For instance, if I make separate cards for all four of them, how do I make sure I only send on Christmas card when I use my Mac to print labels?
    Thanks for any advice.

    This is really an issue that you're going to have to resolve yourself since Apple's address book isn't really built with this in mind - darn it. For me there are three scenarios. First, a singleton. No problem. Second a family for which all members share the same information - acquantences to whom I don't send birthday greetings. These get one card and I'll put in both (or all) their names in the first name field (as in Bob and Jean). If there are children, in the last name field I'll add 'and Ken' or 'and the kids'. Third, a family for which some fields are different - perhaps cell phone number, birthday, etc.
    For mailing purposes, I create a holiday group and put the people I'll be sending cards to into the group.

  • How does IITTrackCollection handle ItemByName if there are multiple tracks by the same name?

    I am writing a program in C# that is trying to check if a track already exists in the iTunes Library before adding it (thus preventing duplicates).  The best method I have come up to do this with is to use 'MyPlaylist.ItemByName(SongName)' to retrieve a possible duplicate and then compare the rest of that track's attributes (i.e. the artist and album).  However, I have several examples of tracks in my library which have the exact same name, but are in fact completely different and unrelated.  How is this handled by the iTunes COM?  Or is there a better way to do it?

    Hi DSW,  
    Thanks for your post.
    In your query result, please check if these two users have the same Account Name. if they are two different Account Name in result, it indicate there’s two users have the same display name in your AD, please check that two users’ information in
    your AD. We suggest change one user’s display name in AD.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can we handle browser settings while dealing with the security ?

    Hi ,
    how can we handle browser settings while dealing with the security ?When we configured security in web.xml , during the first request the container is asking for the authentication credentials once they are provided it go's on. but when the user gives a fresh request from the second window within the same browser that time it is not asking for authentication. How can we overcome this.Is there anything to do with server configurations?
    How can we make the container no to keep the things or act like session?

    Ya... I am taking a small example need not happen always but a kind of possibility i am thinking off.
    once the user sign out and just left without closing the browser and a friend (suppose not a good friend ... just kidding...) of that user may open the same jsp or file .This time the security is breached. If that feature or property exists....
    I know what you might say ... the user will log-out before leaving where a programer might invalidate the session at the time of log out.
    Consider the case of a bad Programing or just a programer might forget to invalidate,At that time as a application administrator how can he solve that issue.
    Thanks.......
    Edited by: user8483670 on Jun 6, 2011 1:08 AM
    Edited by: user8483670 on Jun 6, 2011 1:09 AM

  • How best to handle multiple web sites using iWeb 08

    I currently am using iWeb08. I am maintaining two websites; The church site resides on a Rogers server. I use Transmit as a FTP loader. The other site is an engineering society's website that is posted on Apple's server. I have an ME account just for the latter group. iWebsites is used to alternate between the two sites. The church group has a .ca web address.
    Is it worth upgrading to iWeb 09? How does iWeb09 handle 2 websites? I wish I could publish both to the Mac account but have not figured out how. I must retain the rogers account for viewing the church site
    Has anyone deleted iWebsites from OX10.5.6? How was it done? I know that backups are mandatory before attempting these changes.
    Thanks,
    Bill

    In its current form, iWeb '09 doesn't handle publishing well at all!
    I keep all my sites on separate domain files, each in their own folder. Any site is launched in iWeb by double clicking the domain file. I start each new site from a new, blank domain file.
    I keep all my website folders in a folder in a second dock so that I can launch any site with two mouse clicks - faster than you can launch iWebsites!
    You can publish as many sites as you want to one MobileMe account but you can only have domain name forwarded as Cname. Any more have to use masking with all its inherent problems.
    I would be more inclined to dump MobileMe and publish both sites to a decent hosting company.
    The new iWeb '09 FTP works for some. I have tested it with my server - Host Excellence - which doesn't force you to upload to a Public_html folder and this goes as planned.
    Having said that, I still publish to a local folder as I optimize and upload my files using Web Site Maestro. Once you have published your site for the first time, this application will then use its Smart Handling feature to process the changed files only.
    Unless all your viewers use Macs you have to optimize to get your pages to download in that browser that all the Fred Flintstones of the world use.

  • How do you handle an incoming call while playing a game?

    If you're playing a game on your iPhone, how do you handle an incoming call? A call will stop my app from running, but how do I save the state and restore it when the user starts the app again?
    I have a bunch of objects on-screen and I need to record where they are so that the user doesn't lose the progress of their game.
    I've looked through the SDK, but I can't see anything obvious. Any ideas?

    I don't have a device to test with, but I suspect you'd want to save state in one of the UIApplicationDelegate callbacks:
    applicationWillResignActive:
    applicationWillTerminate:

  • In BI 7 how do we handle if any delta load gets fails

    Hello All
    Iam having a doubt like,in BW 3.5 if we are loading delta data from one source ODS to 2 targets(either cube or ODS),and if for one target if the load gets failed we will delete the bad request from the 2 target ods , reomve datamart flag from source ods and then relaod the delta load again.
    But in BI 7 how do we handle this type of scenarios.
    Many Thanks
    Swami

    In 7.0 we have DTP between one source and one target right?
    If a load fails then delete the concerned request and reload.
    It is independent of the other load.

  • My itunes won't sync to my iphone anymore. How do I handle this?

    My itunes won't sync to my iphone anymore. How do I handle this?

    Double click your Home button, swipe right on the multitask window, you will find the orientation lock on the left. Tap it to unlock and Home button to close Multitask windows. Now landscape orientation will work when you turn your phone

  • How to programmatically add rectangle to a pdf file ?

    How to programmatically add rectangle to a pdf file ?
    There is several page pdfs, non-vector, black and white.
    Users are color blind and have disabilities.
    To train them, one adds a rectangle at a certain lower-left point and width,height specified for a page.
    The idea is to give the script the page and coordinates and size of rectangle to be added programmatically. Green rectangles are acceptable as the cones are most sensitive there.
    Also, additional feature to add bookmarks on the left in the order these rectangle data is provided to the script.
    The script could be "hard-wired" by a list of the rectangle coodinates, and page number, pasted inside acrobat and run or entered into acrobat in some way.
    Your script would help many disabled people who are distributed through out the world.
    Feel free to contact me by email if you wish.
    Dying Vets

    P.S.
    This rectangle does not have to be a full annotation rectangle which needs user,date and a lot of info.
    Something minimal like this would suffice
    1 0 0 RG % red for stroke color
    200 300 50 75 re
    As you can see that the native unit of the pdf file is the "point" having 72 in an inch.
    The file dpi would be given. However, one could assume that pixel for the rectangle lower-left and width/height are given.
    From the pixels and dpi, the points could be calculated if desired.

  • How do I handle large resultsets in CRXI without a performance issue?

    Hello -
    Problem Definition
    I have a performance problem displaying large/huge resultset of data on a crystal report.  The report takes about 4 minutes or more depending on the resultset size.
    How do you handle large resultsets in Crystal Reports without a performance issue?
    Environment
    Crystal Reports XI
    Apache WebSvr 2.X, Jboss 4.2.3, Struts
    Java Reporting Component (JRC),Crystal Report Viewer (CRV)
    Firefox
    DETAILS
    I use the CRXI thick client to build my report (.rpt) and then use it in my webapplication (webapp) under Jboss.
    User specifies the filter criteria to generate a report (date range etc) and submits the request to the webapp.  Webapp  queries the database, gets a "resultset".
    I initialize the JRC and CRV according to all the specifications and finally call the "processHttpRequest" method of Crystal Report Viewer to display the report on browser.
    So.....
    - Request received to generate a report with a filter criteria
    - Query DB to get resultset
    - Initialize JRC and CRV
    - finally display the report by calling
        reportViewer.processHttpRequest(request, response, request.getSession().getServletContext(), null);
    The performance problem is within the last step.  I put logs everywhere and noticed that database query doesnt take too long to return resultset.  Everything processes pretty quickly till I call the processHttpRequest of CRV.  This method just hangs for a long time before displaying the report on browser.
    CRV runs pretty fast when the resultset is smaller, but for large resultset it takes a long long time.
    I do have subreports and use Crystal report formulas on the reports.  Some of them are used for grouping also.  But I dont think Subreports is the real culprit here.  Because I have some other reports that dont have any subreports, and they too get really slow displaying large resultsets.
    Solutions?
    So obviously I need a good solution to this generic problem of "How do you handle large resultsets in Crystal Reports?"
    I have thought of some half baked ideas.
    A) Use external pagination and fetch data only for the current page being displayed.  But for this, CRXI must allow me to create my own buttons (previous, next, last), so I can control the click event and fetch data accordingly.  I tried capturing events by registering event handler "addToolbarCommandEventListener" of CRV.  But my listener gets invoked "after" processHttpRequest method completes, which doesnt help.
    Some how I need to be able to control the UI by adding my own previous page, next page, last page buttons and controlling it's click events. 
    B) Automagically have CRXI use a javascript functionality, to allow browser side page navigation.  So maybe the first time it'll take 5 mins to display the report, but once it's displayed, user can go to any page without sending the request back to server.
    C) Try using Crystal Reports 2008.  I'm open to using this version, but I couldnt figureout if it has any features that can help me do external pagination or anything that can handle large resultsets.
    D) Will using the Crystal Reports Servers like cache server/application server etc help in any way?  I read a little on the Crystal Page Viewer, Interactive Viewer, Part Viewer etc....but I'm not sure if any of these things are going to solve the issue.
    I'd appreciate it if someone can point me in the right direction.

    Essentialy the answer is use smaller resultsets or pull from the database directly instead of using resultsets.

  • How to programmatically place the field in the canvas.

    Hello!
    Can you please tell, how to programmatically place the field BLOCK1.FIELD1 in the canvas CANVAS1.
    At the moment on the field value CANVAS = NULL.
    And when opening the form error "FRM-41014 Cannot set attribute of null canvas item..."
    Thank you

    Youcannot assign a canvas at runtime. Yu have to specify int at designtime and it cannot be changed at runtime. if you need an item in more than one canvas, use a mirror-item (duplcate the item and set the property Synchronize with)

Maybe you are looking for

  • How can i deal with this problem

    For example, In my database, there are three records: field : a b c a.txt c:/a.txt adsfs b.txt c:/b.txt asdfsf c.txt c:/c.txt asfdsf Now I open one file b.txt to check the database whether have the same filename,filepath, hash value. the results disp

  • Re: Traffic Light in Stock Overview List

    Hi All, I want some advice regarding the traffic light. How is it confiured.Please explain me,how to configure it. I want that, whenever there is shortage for the child items, the traffic light should be red. Please advice. Regards, Vivek

  • Price List Setup - R12

    Hello Friends, I am trying to setup a Price List ( in a new R12 instance, not a R12 VISION instance ). When with Responsibility "Oracle Pricing Manager", I click on Price List Setup, I get a message - Pricing APIs are not available for Basic Pricing

  • Backup Drive has Vanished.. Any Ideas on how to troubleshoot?

    For several years now I have had two internal SATA drives in my G5. One I called Macintosh Drive-A which is my startup disk and working drive The second I called Macintosh Drive-B which I used totally as my backup drive from timemachine. I just notic

  • I imported M2T into CS4 Premier Pro on Mac OSX Snow Leopard does not play

    I imported several M2T files into CS4 Premier Pro on Mac OSX Snow Leopard, the files import just fine and when I double click on them, I see the video in the preview panel. However when I hit play, nothing happens. It does not play, just sits on the