How can I Add and save new row in data table?

Hello All,
I want to add new row in the jsf page with data and save it.
I have data table with rows from database..
  <h:form id="test">
        <h:dataTable id="hh" value="#{MyBean.dataList}" var="list">
          <h:column>
          <h:outputText value="#{list.name}"/>          
          </h:column>         
          <h:column>
          <h:outputText value="#{list.lastName}"/>          
          </h:column>         
          <h:column>
          <h:outputText value="#{list.phone}"/>          
          </h:column>         
        </h:dataTable>
        <h:commandButton id="sd" action="#{MyBean.addNewRow" value="Add Row" />
        <h:commandButton id="save" action="#{MyBean.updateList" value="Save Data />
      </h:form>
{code}
i understand action with save to database, but still I could not find right way to add new row from jsf page.....
I want add new row, add new name, lastname, and save it....
Edited by: armen on Feb 20, 2009 12:39 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Thanks, but your example consist from too many parts and I could not join all components for understatnding all proccess.

Similar Messages

  • How can i add and configure a new AIR-LAP1142N-E-K9 Access Point to a AIR-WLC4402-12-K9 WLAN controller

    How can i add and configure a new AIR-LAP1142N-E-K9 Access Point to a AIR-WLC4402-12-K9 WLAN controller

    Thanks alot, that helped me .....
    what about option 43..i am using one wlc and the switch where wlac and APs are connected is playing the role of dhcp server used by APs as there is a dhcp pool configured.  please advise. will the command be
    option 43 hex (f104xxxxxxxxxxxx)  f104 adding to it the management ip address of the wlac in hexadecimal.
    if the ip address is 192.168.10.5  then the command will be
    option 43 hex f104c0a80a05
    please correct me if i am wrong!!!!

  • HT5824 how can i add and edit my contatcs from my iphone

    Hello please help me ..
    how can i add and edit my contatcs from my iphone

    Hello there ttikkiscy,
    It sounds like you would like to know how to add to and edit your iCloud Contacts. First make sure you are using the iCloud Contacts function with this article:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    On your iOS device’s Home screen, go to Settings > iCloud, then tap to turn on or off iCloud features.
    Once that is turned on and you can see your contacts in the Contacts app, use this part of the iPhone Basics guide here http://support.apple.com/kb/TI138
    Create and edit a contact.
    In Contacts, tap + to pull up a new contact card. Enter the person’s info and tap Done.
    To edit a contact, pull up the card and tap Edit. Make your changes and tap Done to save.
    To delete, scroll down, and tap Delete Contact.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • How does APEX create and save new files. What extension does it save in?

    Hi can someone help me with this question?
    How does APEX create and save new files. What extension does it save in?
    Cheers!
    VJ

    It's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
    Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals.

  • How can I edit and save parts of songs (like a chorus).

    How can I edit and save parts of songs (like a chorus).

    The iTunes-only way is:  figure out where you want your excerpt to begin and end.  Right-click the track, Get Info, Options tab, set the Start/Stop times accordingly, and OK out.  Right-click again, and choose Create XXX version (where XXX is the format indicated in your Import settings).  Right-click one more time, and unset the Start/Stop times.
    This procedure will leave the full track in place, and will create a new file and library entry with just your excerpt.

  • How can i add in a new contact?

    how can i add in a new contact

    Tap the + sign to add an contact. If there is no + sign, go to Settings>iCloud and make sure Contacts is turned on.
    Also see:
    iPod touch User Guide (For iOS 5.0 Software)

  • How can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it

    how can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it.  i design patterns but am fairly new to photoshop. i used to be able to click on the drop down menu in patterns in the 'fill' box but cannot now do this.  have i inadvertently clicked on something to turn this facility off?  i now have to go to 'preset manager' and manually move my new design to the first box and click 'done' so that i can use it.

    Which version of photoshop are you using?
    After you define a custom pattern it should be added to the bottom of whatever patterns are already loaded.
    For example, if you define a custom pattern and then go to Edit>Fill>Pattern, the newly defined pattern should have been added to the existing loaded patterns.

  • How can I add a Save form button ( not save as ) for a custom fillable form ?

    How can I add a Save button ( not save as ) for a custom fillable form ?
    idea is ti to have a Save button  at the bottom of each page where the person filling
    the form  clicks the save button  on each page.( it is a 12 page fillable form )
    The only thing I was able to do  was add a button that  opens a Save As
    dialog box only.
    My experience  lever is - end user-intermediate.
    Thnaks.

    Thanks for the response.
    I wonder why  it wont allow.
    If I can  save ( as opposed to save as)   this form by clicking the  save icon on the  menu bar, I am not sure why it is no possible to do so on page level!
    Custom script option is not  even remotely possible!

  • How can i edit and save a spreadsheet or excel sheet on my MACbook pro

    how can i edit and save and rename excel or spreedsheet on my macbook pro

    Just download LibreOffice and click on the Spreadsheet icon in the splash screen:
    ...and it will open almost any Excel document...
    (This is an old football roster created in Excel).
    Good luck,
    Clinton

  • How can I edit and save a raw file in jpeq and open it in windows live photo gallery

    how can I edit and save a raw file in ps elements 10 and open it in windows live photo gallery?

    Change to 8 bit mode before clicking the Open Image button, then jpeg will become available as a choice.
    Click to view image

  • HT1296 How can I capture and save an image on my screen for later retrieval

    How can I capture and save an image on my iPad screen for later retrieval, perhaps on my Laptop (Windows 7)?
    Is there a way to copy the image to a storage device?
    Thanks, Don.

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Its easy to take an iPad screenshot. Press & release the Home and the Power buttons quickly at the same time. I have trouble with that so I press & hold the Home button and then very quickly press and release the Power button. Your screenshot is stored in the Camera Roll of the Photos app. Probably the easiest way to get it to your PC is to be using iCloud, or email it to your PC. There are also some wireless sync apps in the iTunes app store that let you send photos from the iPad to a Mac or PC. I use PhotoSync.

  • Youtube Videos: How can I download and Save?

    1. Where's the internet connection sign in desktop of MacBook Pro?
    2. How can I download and save videos from Youtube?

    See my reply to your other post for connecting to WiFi : https://discussions.apple.com/thread/5513072?tstart=0
    For YouTube, try doing an internet search or having a look in the Mac App Store app on your Mac
    Or try asking in Mac App Store or Mountain Lion forums - this is the iTunes Store forum.

  • HT4623 i am using i phone carries 4.1 (8B117) version how can i update and install newer versions

    I am using I phone 4 it carries 4.1 (8B117) version how can i update and install newer softeares

    Important you follow the directions here:
    http://support.apple.com/kb/HT4972
    The update to iOS 5.0 or higher is an erase/restore deal, so its important that all of your data be on your computer before you attempt to update.
    iOS 6.1.3 will be installed on your phone.

  • In my Thunderbd 24.4.0-Windows7-how can I copy and save to DVD all the emails? Unlike in previous Thundrbd they no longer come up in Defaults under Mail.

    In my win XP, after Profiles to Default with all those numbers, then Mail, up came Local Folders which contained all the current emails, which were then easily open-able and save-able.
    How can I now do the same with my newer thunderbird on my windows 7?
    Thank you

    Thank you - I now can find the Mail folder, and then only when I select : pop3.virginmedia-1.com (my server) from it's 3 choices, does it show all my email folders. They are all in 2 versions. Those ending .msf I cannot open as they are "not a valid Win 32 application". The others with a little page icon, do all open - in Wordpad or Libreoffice, but the messages are almost totally lost amongst dozens of complex data pages before and after each little actual message! How can I open and see just the actual email messages without all the vast other data, so that I can then save them to a DVD?
    Thank you,
    Ted

  • How can I delete and start new loading my shuffle?

    How can I erase and start all over loading my shuffle?
    Pari

    Restore the iPod Shuffle to factory settings in iTunes using the instructions in this Apple support document.
    http://support.apple.com/kb/ht1481
    B-rock

Maybe you are looking for

  • Video problem??

    Hey everyone! I am a noob here, but have a rather annoying problem... I just installed an MSI 865pe Neo2 mobo(ms-6728 )and am having huge problems with video. For example; missing blocks and triangles of video and "tears" in the video. I am using a R

  • Cluster Setup on SOlaris 10 in Zone Environment

    Hi I would like to implement Sun CLuster 3.2 on Single Server, by creating 2 zones as nodes, In the same ref. can anyone provide me the detailed steps. Thanks Rajan

  • Iw32 service order - store business document disabled

    Hello,    in transacion IW32 I select the object service toolbar - create. I would to select store business document but it is not enable. How can I enable it? Which is the right ObjectType to set? Thanks.

  • How to create a PO for a Material having Net Price but without Info Record?

    Hi, When I try to create a PO for a Material having Material Master and Vendor Master maintained but no Info Record, system does not accept the Net Price and the Price Condition also does not appear. Is there any way to create a PO for a Material hav

  • Import many excel file into owb automatically

    Is it possible to load several excel files in owb automatically? I want to avoid the follow situation... I have like 100 excel files I have to create 100 system dsn each pointing to one excel file. Is it possible? Thanks