How to update a bound textField with user selection ?

Hi all,
I'm following an Update Database example from the JSC tutorials and have the following situation.
I have a page displaying a row of data for a selected person (first_name, last_name, title) bound to a data provider. I have made the "title' field a TextField. I want to enable the user to edit the title field and update the information in the database.
If I simply type a new title on the text field and click on Update, everything works fine. However, I want to make the user choose from a list of titles (in a drop down list) instead of manually editting the 'title
field to avoid spelling errors.
However, the textfield (title) does not display the selection from the Drop Down list.
titleField.setText(rankdropDown.getSelected());
It seems to me that the reason is that each time the drop down event value change event handler is executed, the Pre-render methd kicks in and restores the 'title' field to its original value (from table rowset). And the user selection is not displayed.
public void prerender() {
try {
getSessionBean1().getStudent_infoRowSet1().setObject(1, getSessionBean1().getLoginBean().getUsername());
student_infoDataProvider1.refresh();
} catch (Exception e) {
Can someone please suggest a solution?
Thanks.
Nakul

Are you submitting the page after selecting the data from the drop down?
The drop down does not seem to have an option of submiting the page when the value is changed. Only if you submit the page, will the data be processed and the text field updated.
From what i see in the doc for the prerender method, this method is invoked during the renderResponse phase. Whereas the value change event is processed during the process validation phase itself of the jsf life cycle.

Similar Messages

  • How to update a dbf file with gui_upload???

    hi friends,
    i would like to know how to update a dbf file with gui_upload???
    as i hve already know that it's easy to convert dbf to tab formatted text fle and thn upload it.but i want the direct uploading way.i don't let my user's bsy with converting existing dbf to txt.so pls help me asap!!!!!i will be thankful to you!!!!!

    its very easy you can search other forum!!!

  • How to update my ibook G4 with out itunes

    how to update my ibook G4 with out itunes

    Your question begs more questions before an answer...
    What are you trying to upgrade, and why would you try to use iTunes
    in a vintage G4 computer that cannot run an OS X later than 10.5.8
    at best? (and only if it has a processor at least 867MHz or better)
    With at least a 1.0GHz iBook G4 you could run Leopard 10.5.8, and
    the system requires a retail DVD to install the 10.5, then go online
    after installation, to get the Combo 10.5.8 update, by use of Software
    Update within that first earlier system...
    If the computer does not have at least the minimum processor, it would
    not be able to see Leopard as a system, so Tiger 10.4.11 is the last...
    http://www.apple.com/support/leopard/
    iTunes does not upgrade or update much of anything in an obsolete &/
    or vintage Mac OS X before the Intel-Mac era, and prior to OS X 10.6.8.
    If your computer does not have an iTunes version at all, you can go to
    Apple support downloads and look at older iTunes, and older safari,
    and some other bits that are limited to their respective vintage OS X.
    Usually the upgrade path utilizes DVD media or CD media, for software
    & depending on what kind of software, then later get update-downloads.
    To see if there may be anything not already installed in the system or
    applications that could exist in the Apple support download servers,
    you could see if the System's own Software Update, located in Apple
    Menu in upper left side of the menu bar in Finder, can locate some.
    If you perform a new install and did not save all the bits as downloaded
    from when they were more current, some updates to original media that
    formerly were online and available as download (step updates, not full
    upgrades) you may eventually be unable to upgrade then update an older
    OS X system; the remainder of the later or last fixes were in the update.
    So, if you have an old G4 PowerPC Mac computer running, say Tiger 10.4.3
    and thought to use some software intended to run in Tiger 10.4.11, then
    you'd have to see if Software Update could find the 10.4.11 Combo update.
    After updating the main system, other applications may also see a need to
    be updated, if they were not already as far as they could go, in their vintage.
    iPhoto, and other applications, such as they were, had updates to their main
    application. So with iTunes, the last version that can work in a PPC G4/G5
    non-intel would be in the last supported OS X, Leopard 10.5.8, and that
    version number is iTunes 10.6.3; so you can't visit an App Store or Mac App
    Store nor can you run Snow Leopard on a PowerPC architecture Mac.
    With the intel-based Mac, and Snow Leopard, you can access the online
    Stores to include recent Mac Apps, App Store, iTunes Store, etc. A light
    version of early iTunes (see iTunes Player) can be seen, and their Radio
    still plays free music channels. I have several older pre-Intel Macs...
    The matter involves the vintage of the device, the system, and limits of the
    old vintage/obsoleted configurations where both are interdependent.
    Not sure if this helps, but more of a history lesson may be read if you look
    into everymac.com and compare models, build years, and other specs...
    If you need some feature or function not supported by vintage hardware or
    vintage software, or a newer web browser, you have to look further. A fair
    browser can be found in TenFourFox. I use it daily in a PPC G4 MINI 1.5GHz.
    with Leopard 10.5.8. Plus others. To go further, look into an Intel-based Mac
    such as MacBook2.1 & then buy the Snow Leopard retail DVD for about $20.
    Hopefully this helps somewhat...
    Good luck & happy computing!

  • How to update adobe flash player with os10.6.8

    how to update adobe flash player with os10.6.8

    You can check here what version of Flash player you actually have installed:  http://kb2.adobe.com/cps/155/tn_15507.html
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
    After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:
    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser, but check this also:
    http://support.apple.com/kb/HT5655?viewlocale=en_US&locale=en_US  which also covers ‘blocked plug-in’.

  • How to update the posted documents with Business Area wise

    Dear experts
    Please suggest me how to update the posted documents with Business Area wise
    Ajeesh.s
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Nov 2, 2011 2:26 PM

    Hi,
    Select all your folders in Disco Administrator,ALT+ENTER to go to properties, then change the database from the default database to the remote database.
    Hope that helps,
    Rod West

  • How do i take one layer with multiple selections...

    how do i take one layer with multiple selections and make those selections their own layer?

    Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
    Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style.

  • How to login the remote desktop with user id and password using coded ui

    we are using vs 2013, we have automated some automated test cases using coded ui. i have on problem while i am running the those test cases in remote system. here the scenario is "after executed one test case we need to restart the system. After restarted
     I have to login the remote system with user credentials to continues execution for the remaining test cases." it is very helpful to me.. so please guide me how to overcome these problem? 
    Thanks in advance ...

    Hi Divakar,
    As far as I know, there isn’t this feature of remote test in VS2013.
    I suggest that you could submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to user voice there. You can send your idea there so the others can vote it. If you submit this suggestion, you might post that link here which will
    benefit others who has the similar issue
    Regards
    Starain
    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 to update my iphone through with pc

    plz help me.
    my question is how to update my iphone 5s through date cable with my pc

    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support

  • How to update the MDS Repository with new structure over the older one

    Hi,
    I am working on the Oracle SOA MDS repository and I want to update the mds repository with new folder structure over the older one but I am not able to do this . I am able to update the mds in local system but not able to do this for remote server.
    Please help me
    SOA 11g : 11.1.1.5

    Welcome to the Apple discussions.
    These discussions are user-to-user. Apple generally doesn't monitor the discussions.
    My Turkish language skills are non-existant, however, you can use this to find an Apple store close to you: http://www.apple.com/uk/buy/locator/ (you choose your country in the locator) . It may be as easy as returning it to a local store. In some countries you have a short time period to return anything bought from Apple (for example, 14 days in the US). If that doesn't work, you want to contact Apple customer service. Unfortunately, this is where I was unable to maneuver through the Turkish Apple site, due to not knowing the Turkish language.

  • How to call an action when the user selects a radiobutton

    Hai
    PLease help me in providing the information.
    In my Project i have two radio buttons as
    New
    Asssessment
    when the user selects new button, i want to automatically call an action in the controller(.jpf file)
    Simalarly when he selects the other radio button i need to call a separate action in the controller.
    Remember i dont have the submit button.
    I want to dynamically call an action when the user selects the radio button.
    i dont have any field inthe radio button which actually takes action as an attribute .
    please provide me the necessary

    Hi,
    You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
    Let me know if you have any further questions.

  • [CS5-5.5][JS] Replace xml element content with user selection

    Hi,
    I'm trying to write a script that replaces xml element content with a user selection.
    I have document containing a textframe with a "root" tag attached. In this frame I have 2 paragraphs, each tagged with a different tag.
    I would like to replace the content of one of the paragraphs with the content of a text selection.
    This piece of code doesn't seem to work:
    myXMLElement.xmlContent = app.selection[0];
    The problem is that almost all properties of the xmlelement (paragraphs, words, etc) are read-only.
    Does anyone have any suggestion?
    Thanx

    It depends on whether you want to maintain formatting. You can use
    myXMLElement.contents = app.selection[0].contents;
    in the (unlikely?) event that you don't mind blowing away the formatting. Otherwise you'll want to use something like:
    myXMLElement.xmlContent.remove();
    app.selection[0].duplicate(LocationOptions.AT_BEGINNING, myXMLElement.xmlContent);
    Jeff

  • How to update a table AUTOMATICALY with data from a .txt file??

    HI ,
    I want to upload data which is in a notepad file and Create a table. This notepad file stores a string of datas. Here, the data comes in to the .txt file every second.
    (The data is actually stored into the notepad file when a program is executed in Processing.js software)
    Is it possible to do the following using APEX ? ?
    1. This table has to be updated automatically once in 2 minutes (I want this completely automatic, no human intervention -- no update buttons)
    2. A report is to be created in a apex application with this table, it should reflect the updates in the table every 2 minutes.
    Is it possible?? give your ideas.. I want to do this soon for my engineering project :) Any help from you is appreciated. :)
    Edited by: user13301695 on 28-Mar-2011 10:09

    And how do you expect your database server to access a local file in your machine ?
    Is the file accessible from outside your machine say inside a webserver folder so that some DB process can poll on the file ?
    Or, is your DB server in the same machine where you have the text file ?
    You will have to figure out the file acess part before automating user interaction or even auto-refreshing.

  • How to update an ipod touch with Itunes PC 4.2.1-ios 5or later

    my ipod touch is 4.2.1 i would like to update it from that to the newest ios fromat i have tried Ehow , apple support and none work i have the latest version of itunes and no pop up comes and says here is an update how do i manually update my ipod touch 4.2.1 to the newest format using itunes on my PC

    I suspect you have a 2G iPod. Those can only go to iOS 4.2.1.
    Identifying iPod models
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • How to update an app purchased with a different account?

    Im trying to update iPhoto & iMovie which came with my macbook pro, but everytime I try it says "Sign in to iliketrenchcoats@****.com.au to update applications for that account." But the problem is I CANT! That account doesn't exist. My apple ID is iliketrenchcoats@****.com I can't just unistall it and re install it because It wont let me & I am afraid even if the Appstore did I would have to pay money to re install it. PLEASE HELP
    <Email Edited By Host>

    I can't explain how you did it, but you appear to have registered your iLife apps to a faulty version of your Apple ID. (BTW, it's best not to post email addresses in your comments!)
    I suggest calling Apple Care for your country and ask for help unregistering your Mac and the bundled iLife apps from the faulty email so you can start over and use the correct Apple ID.

  • HT4972 I dont understand how to update my iphone 3g with ios 4.3 or above

    is it possible?? i need some help updating ios and this site doesnt even explain if it is possible... i dont know how to deal with this issue help please!!!

    thanks for taking the time to read my question i guess i just need to update my phone rather than the software

Maybe you are looking for