How to do edit functionality in JSF

Can you please tell how to edit the data in JSf.
I am having a table which displays values, Customer Name, which is a link , onclick of a link I should go to that Customer page, and It should allow me to edit and save the data latest data.
can any one tell me how to do it in jsf?
Sample code will help me.
Thanks
Suresh

I am using a hidden field which refers to Customer Id
Let me know how to do in JSf, Like in struts , I have done like this.
am having one page, which has a link Edit customer.
I am putting a hidden variable which actually refers to Customer id.(custId)
Onclick I am calling a JavaScript() which will submit action.
The content in the JSP
<table width="760" border="0" cellpadding="0" cellspacing="0" style="margin-left:15px; margin-top:12px">
<tr>
<td width="510" valign="top" nowrap><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="510" valign="top" nowrap><table width="510" border="0" cellspacing="0" cellpadding="0">
<html:hidden name="marine.customer" property="custId"/>
<tr>
<td style="font-size:15px" class="subtitle">
<bean:write name="marine.customer" property="name"/>
</td>
<td align="right" valign="bottom" class="subtitle" style="padding-right:5px"><span style="text-align:right; font-size:10px; font-weight:normal; font-family:Arial, Helvetica, sans-serif; text-align:right">
Edit Customer Information</span></td>
</tr>
</table>
In The Action Class
Get the form, which actually contains hidden variable
I am passing the hidden variable to get the customer object.
After getting the Customer object , Set all values from Customer object to editCustomerForm(it�s a form bean, which contains all jsp page atributes) to display
And I am putting that one in session.
HttpSession session = httpRequest.getSession();
DynaValidatorForm customerForm = (DynaValidatorForm) actionForm;
int customerId = 0;
try
/*Parse the customer id*/
customerId =Integer.parseInt( (String) customerForm.get(AccountManagementConstants.ATTR_CUSTOMER_ID));
Customer customer = Customer.getCustomer(customerId);
//Set all values from Customer object to editCustomerForm to display
//on screen
MarineStrutsModelAdapter.buildActionFormForEditCustomer(customer,customerForm);
session.setAttribute(AccountManagementConstants.ATTR_CUSTOMER_ID,String.valueOf(customerId));
session.setAttribute(AccountManagementConstants.ATTR_MARINE_CUSTOMER, customer);
But the problem here in Jsf is I don't have "form bean ", concept.
could you tell me how to implement this.

Similar Messages

  • How can i edit function of function keys ?

    I just want to assign a function to my function key. For Eg:  by default f6- is assign to mute audio,  f3-is assign to increase screen brightness but f5 doesn't have any function , so i would like to assign a funtion to it, like when i press f5 my screen get turn off  (laptop screen). I know another way to turn off the screen by changing setting of "choose what closing the lid does " but in that case ,i have to close  the lid.  

    Thanks for your help but that link is not just the answer . Accroding to that page i should download IntelliType software, and there many types of keyboard are listed in that page.     Please help me to know for which type of keyboard i should download the software. My laptop is r203tx so for that which one i should download. iam using the default keyboard.

  • How do I Edit an Existing PDF Form Without Losing Form Functionality

    I'm brand new to Acrobat but familiar and proficient with Flash, PhotoShop Premiere Pro, After Effects, Dreamweaver, Fireworks etc.
    The company I work for sells office supplies. We sell 57 distinct items.  We have Acrobat 9.  I am designing a PDF order form with fields that can be emailed to our clients as an attachment.  They fill out the form, it calculates the total, they send it back to us, we fill and ship the order.  Basic and straightforward.
    I can add form fields to my order/pricelist... not a problem.  The question is:
    Once I have brought a PDF into Acrobat and add 57+ fields and calculations, which is a time consuming process, how do I edit an item price at a later date, if someone in the company decides to make a change to our pricing?
    See..., If I save the original Microsoft Excel document as a PDF, Acrobat can't edit the text for some reason.  Something to do with "Renderable Text".  Now if I open the PDF saved from Microsoft Excel in Adobe Illustrator, I can use the text tool to make changes. That doesn't help me... just saying. Why can't I edit "Renderable Text" with the Acrobat Text Tool?  Someone in a forum stated that Acrobat is NOT a word processing program!  If that is an accurate statement, it would appear that Acrobat can at least work with base PDF documents to make certain types of modifications and add functionality.  Is that correct?
    Here's the problem.  I create a PDF with form functionality.  Everything works great.  The boss says, I want to change the price of the scissors.  I can't change the text in Acrobat because of the "Renderable Text" nonsense.  Does this mean that I have to re-apply all of the form fields and calculations to the new base PDF document every time there is a minor change?  I know there has to be a simple work around.  Should I upgrade to a newer version of Acrobat?
    Is it possible to save the original existing form functionality as a layer or overlay to be applied to the new modified base PDF document?   Kind of like so many other Adobe products do including PhotoShop, Fireworks, Premiere Pro, After Effects, Flash etc., so that all of the form functionality can be applied in one big chunk?  Premiere Pro has the time-saving feature of "Paste Attributes".  It's a real time saver.
    It may be simpler to just direct me to a video that goes through the process of creating a PDF order form with fillable fields that multiplys quantity by unit price and totals one column.
    I already created a prototype of the form in PhotoShop which can be saved as a PDF.  The finished order document appearance has 95 horizontal 3px wide lines and 6 vertical 3px lines, kind of like what one might expect to see in an Excel spread sheet.  The form also contains some graphics and unconventional text areas that acrobat could overlay text fields and everything would be fine.
    With these great number of horizontal dividing lines, It doesn't seem practical or even possible to create the basic layout in Acrobat.  As I originally stated, I'm new to Acrobat and would like suggestions for a workflow that enables easy editing of an existing PDF document with form fields.  I want to avoid the monumental task of re-doing all of the fields and calculations.

    For what you are trying to do that is probably what you want -- Replace Pages. There are a few more issues that you need to be aware of since this is a business form. If customers are using Reader XI, it is not an issue.
    On the renderable text, can you see the text list when you look at the font tab in the document properties (ctrl-D)? If not, they you do not really have fonts to edit. This may be the type of fonts you used in the original or the way in which you did the conversion to PDF. You need to have fonts that are on your system and then be sure to embed them (otherwise others may not be able to read them because of different OS or such).
    As to e-mailing the form, that is fine (though there are sometimes problems with various clients and PDFs -- but usually on the sending end).
    For collecting the data you may want to try a different route. For users of Reader XI, they can save the form with the data. Prior versions could not do that unless you enabled the form for Reader. However, this latter process has a 500 form use limit -- A license issue. If the data is submitted, then it does not make a difference. The folks with Reader XI can still save the form with the data, others will have to print a copy for their records.
    The data can be imported to the form on your end and so you would have the exact same results as what was filled out. However, the submission process should be set up to submit to a web script for your receipt and not use mailto. The latter has problems that you have no control over due to proper operation with the mail client on the user machine. Typically the mail client must be the default and use MAPI. In any case, it is not reliable (not for business use). So submission to a web script is useful. The data in AcroForms would be of the type FDF (or possibly XFDF). If for some reason use created the form with Designer, that limit any editing in Acrobat since it is no longer a real PDF, but an XML container that Acrobat and Reader can display and interact with, but not change. Again, submission to a web script is still preferred.
    For dealing with a web script and some coding for various languages, you can check out the FDF Toolkit. It has been around a while, but should still handle the CGI needs of the submission. In addition, it has tools for adding the data to a database and other typical operations for data collection. You can save the FDF files and import them to the form and deal with the data there also.
    The use of Replace pages would do the job if all your form fields will still need to be in about the same location. Form fields are mark up and the pages are referred to as the document. Thus the replace pages will just original page and leave all the form fields. You will still need to go back and fix the value within the fields themselves, but that is a field edit.

  • How do I get back my edit functions, copy and paste, without doing a restore?

    When I switched to Firefox 4 I no longer have the file, edit, etc. functions anywhere. I can't or don't know how to copy and paste websites to emails for instance without the edit functions.

    I have checked the toolbar buttons and have MENU ticked, I went to the customize toolbar thing and added (by drag and drop) the cut copy and paste and other buttons I cant find now, and they showed up at first, then they disappeared. The top section seems terribly narrow now and I cant find any way to add the buttons underneath where they used to be...help!

  • How can we set Entitlment to "Edit " functionality of Portlet.

    Hi All,
    I have requirement, where in default "Edit " functionality is used in a portlet.
    Edit is mapped to JPF.
    This "Edit" is for Administrators only.
    I am wondering : Is there a way for setting Delegator Admin Entitlement for
    this "Edit" functionality in portlet??
    TIA,
    RAM

    Thanks Philip, pls do let me know how can it be applied to "Edit" - Prashnath
    Bhat.
    "Phil Griffin" <BEA> wrote:
    There is no direct support for this. A workaround may be to recreate
    the DA role as a visitor role and apply it to edit.
    -Phil
    "RAM" <[email protected]> wrote in message news:403c20f7$[email protected]..
    Hi All,
    I have requirement, where in default "Edit " functionality is usedin a
    portlet.
    Edit is mapped to JPF.
    This "Edit" is for Administrators only.
    I am wondering : Is there a way for setting Delegator Admin Entitlementfor
    this "Edit" functionality in portlet??
    TIA,
    RAM

  • How to code the function of  add+delete+edit using jsp??

    how to code the function of add+delete+edit using jsp??i'm also using the ms sql server 2000 as a database. pls help me!!

    Hi,
    I think you will find the following useful.
    Performing Inserts, Updates, and Deletes
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html

  • HT5449 How do I find edit functions such as delete and backspace in mac OX dictation

    I can not find delete, backspace or other edits functions. Is there a hands-free alternative to press function key.

    This code will remove everything that is possible from the Bookmarks menu , Bookmarks Menu button, and App menu so leave out what you want to keep.
    <pre><nowiki>#menu_bookmarkThisPage,
    #subscribeToPageMenuitem,
    #subscribeToPageMenupopup,
    #menu_bookmarkAllTabs,
    #bookmarksShowAll, #organizeBookmarksSeparator,
    #bookmarksToolbarFolderMenu,
    #bookmarksToolbarFolderMenu+menuseparator,
    #bookmarksMenuPopup menuseparator[builder="end"],
    #menu_unsortedBookmarks { display:none!important; }
    </nowiki></pre>
    <pre><nowiki>#BMB_viewBookmarksToolbar, #BMB_viewBookmarksToolbar+menuseparator,
    #BMB_bookmarksShowAll, #BMB_bookmarksShowAll+menuseparator,
    #BMB_bookmarkThisPage,
    #BMB_subscribeToPageMenuitem,
    #BMB_subscribeToPageMenupopup, #BMB_subscribeToPageMenupopup+menuseparator,
    #BMB_bookmarksToolbar, #BMB_bookmarksToolbar+menuseparator,
    #BMB_bookmarksPopup menuseparator[builder="end"],
    #BMB_unsortedBookmarks { display:none!important; }
    </nowiki></pre>
    <pre><nowiki>#appmenu_showAllBookmarks, #appmenu_showAllBookmarks+menuseparator,
    #appmenu_bookmarkThisPage,
    #appmenu_subscribeToPage,
    #appmenu_subscribeToPageMenu,
    #appmenu_subscribeToPageMenupopup, #appmenu_subscribeToPageMenupopup+menuseparator,
    #appmenu_bookmarksPopup menuseparator[builder="end"],
    #appmenu_unsortedBookmarks { display:none!important; }
    </nowiki></pre>

  • How can I edit text tabs in Photoshop...?

    how can I edit text tabs in Photoshop like in Illustrator that I can choose to view the tab rulers and edit the alignment on the tabs?
    is it possible? otherwise I can't understand why I can use the tabs at all...
    thanks!

    No, tab-formatted text is not editable in the manner you desire. As for your question - tab is just a character like any other. You are simply taking a given kind of implementation for granted, nothing more, but that must not necessarily be the case for all programs. An evil programmer just could assign the tab key to forward delete or any other fancy function just as he could make your space key draw funky symbols from a different Unicode range, if you get my meaning... so simply take it the way it is. If editable formatting is high on your wishlist:
    http://www.adobe.com/go/wish
    Mylenium

  • Question regarding editing functions that are no longer showing up in photoshop

    Hi!
    I purchased editing functions from a company that allows me to use them within my PhotoShop Elements 10 software. I have been using these functions for quite some time & when I opened my PhotoShop Elements software this morning, all of my editing functions were gone.
    The functions are still listed in my folders under my C drive.
    Any ideas as to how to get them back into my PhotoShop Elements 10 so that I can use them?
    Thanks so much!

    Are you sure you're in full edit? Go up to the Edit tab at the upper right of the PSE screen and click where it says Full, to make sure. If that's not the problem, what is missing?

  • How can I edit a post I've already posted?

    I saw a button that said "Edit this post." I clicked it and got a notice that I must log in before editing my post. I was already logged in. Completed the longin info again, but still kept getting the message that I had to log in first. Closed Safari, reopened, re-logged in, went to the post, and then the button for editing the post was gone.
    I see some discussion in this forum, but have not found a post telling exactly how to make the edit function work. Nor do I get results searching on "edit" or "edit post" or "edit forum post."
    Nor do I find any mention of this in the Help section.
    I did see one place where a person was asking a host to edit one of his posts. This could imply we can't edit our own posts; but then what is the edit button on a posted post for? In any case, it seems there should be some info about this somewhere, and perhaps the dialog box could be more explanitory (as in saying we must log in, when we already are).
    Thank you.
    I WAS able to edit THIS message. This time the Edit button worked. Maybe the other time was a fluke, or maybe there is a time limit on hitting the Edit button. But again, why was that guy asking a host to do his editing. Any clarification would be helpful. Alas, I now see only two choices: a button to Discard and Cancel, and a button to Edit Message. I'll go with the latter and see if it means "Post."

    Hi ChicagoLarry!
    If the 15 minute, Edit time span has elapsed, but you still have the post that you want to edit, open in a browser window, the  Edit icon, will still be evident.
    But as you have discovered, if you click on it, you will be asked to login, which doesn't really make any sense.
    Ideally, the message would be more like "You're allotted time to edit this post has expired."
    I've made a suggestion to the Hosts.
    Also, each time you edit an entry, the edit time is extended.
    For example, if you edit a post 10 minutes after the initial time of posting, you will then have another 15 minutes, in which to edit again.
    Each subsequent edit, adds another 15 minutes.
    The discretionary editing of posts, by the Hosts, is usually done only for violations of the TOU, posted personal info, serial numbers, Email addresses, posting of commercial Websites, etc., not for misspellings, punctuation, or other minor posting errors.
    ali b

  • How can you edit a previously burned DVD from an older iMovie app?

    I converted VHS home movies to DVD years ago on the origonal iMovie app.  How can I edit those DVD's now?  Do I need a third party app to convert the DVD files for use in the new iMovie?

    Yes, you need to 'reverse engineer' the highly compressed mpeg2 format of the DVDs.
    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    (unless you are running Lion in which case see below))
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.
    If you are running Lion:
    From the MPEG Streamclip homepage
    The installer of the MPEG-2 Playback Component may refuse to install the component in Lion. Apple states the component is unnecessary in Lion, however MPEG Streamclip still needs it.
    To install the component in Lion, please download MPEG Streamclip 1.9.3b7 beta above; inside the disk image you will find the Utility MPEG2 Component Lion: use it to install the MPEG-2 Playback Component in Lion. The original installer's disk image (QuickTimeMPEG2.dmg) is required.
    The current versions of MPEG Streamclip cannot take advantage of the built-in MPEG-2 functionality of Lion. For MPEG-2 files you still need to install the QuickTime MPEG-2 Playback Component, which is not preinstalled in Lion. You don't have to install QuickTime 7.

  • How to call webservices function - java importer 6i -Duncan?

    I've imported methods of a webservice from salcentral following instructions in otn.
    Now I need to figure out how to call the resulting function in forms
    Here is the function, the pl/sql error is wrong number or type of arguments
    Anyone done this and know how to get the function signature correct?
    I want to call checkemail
    PACKAGE BODY MXCheckerStub IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    cls ORA_JAVA.JCLASS;
    fid ORA_JAVA.JFIELD;
    mid ORA_JAVA.JMETHOD;
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    cls := JNI.GET_CLASS('mypackage/MXCheckerStub');
    mid := JNI.GET_METHOD(FALSE, cls, '<init>', '()V');
    args := NULL;
    RETURN (JNI.NEW_OBJECT(cls, mid, args));
    END;
    -- Method: CheckEmail (Lorg/w3c/dom/Element;)Ljava/util/Vector;
    FUNCTION CheckEmail(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    cls := JNI.GET_CLASS('mypackage/MXCheckerStub');
    mid := JNI.GET_METHOD(FALSE, cls, 'CheckEmail', '(Lorg/w3c/dom/Element;)Ljava/util/Vector;');
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, JNI.GET_CLASS('org/w3c/dom/Element'));
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;

    I would try to take an aproach where I'll generate a stub for the WSDL in JDeveloper, and also write a
    Java class that calls this stub and return a simple variable (String, int, or boolean).
    Then I would call this class from Forms.
    I believe this would make it easier.

  • How to use Aggregate Functions during Top N analysis?

    Say i want to find top 5 highest salaries and their totals and average. In that case how to use aggregate functions. Please give me an example on this.
    Regards,
    Renu
    Message was edited by:
    user642387

    Hi,
    Yes, you can do that with aggregate functions.
    First, do a sub-query to retrieve all the salaries (in descending order), then say "WHERE ROWNUM <= 5" in the main query. Use the aggregate SUM and AVG functions in the main query.
    Analytic functions are easier to use for jobs like this, once you get familiar with them. If you're not leaving the field this month, then it's probably worthwhile for you to get familiar with analytic functions.

  • How to disable edit link in interactive report

    Hi,
    How to disable edit(e3.gif image) link interactive report.
    Thanks,
    nr

    Hi Jari,
    Apex Version:3.2
    I created on Interactive report on emp table I have created edit link on empno using Icon5 image.
    Report Attributes>Column Attributes>Column Link.
    I can Hide the Icon5 using following script but I need to disable only. I did not get any disable() method in Jquery.
    Region Id:R812581842900385833
    $(document).ready(function() {
    var viewOnly=document.getElementById('P1_ITEM1').value;
    if(viewOnly == "0")
    $("#R812581842900385833 img").hide();
    thanks,
    Nr
    Edited by: pnr on Mar 13, 2012 6:09 AM

  • How do I edit or turn off the autofill username for Comcast?

    Overtime I have accumulated a numberof autofill usernames at the Comcast signin. (due to typos, etc.) So I now have this long list of usernames to choose from. How do I edit this list or delete this function entirely?

    You're welcome

Maybe you are looking for

  • Printing Adobe Form in Webdynpro

    Hi Experts, I need one help  from all of you , its quite urgent. Actually I am trying to print Adobe form in webdynpro method like below:    "----- Take the Adobe fprm -------------------"       lv_form_name = 'ZHR_SAP_FORM'.       CALL FUNCTION 'FP_

  • Start Workflow when Upload File using drag and drop

    Hi, I am working with SharePoint 2013. I have a workflow needed to be started and run only once after a document is uploaded into the document library. The document library has required custom columns with default values. If I set workflow starting o

  • Folder Redirection policy is not applied to a user, when the server target is changed, but works after resetting the windows profile.

    Folder Redirection policy is not applied to a user, when the server target is changed.  After server target is changed via group policy, when user login  (roaming profile)first time, the the new server target has not been applied, instead it's pointi

  • Calling another or 2nd process

    Hello, Can any one please advise on how to call 2nd/another (short-lived) process from the main process. I though about combining two processes into one process by copy the second to the 1st/main one but it seem to be more complicated and hard to mai

  • [SOLVED]Login manager in KDE 4.3 does not work!

    This is a fresh install (just two days old and installed KDEbase just yesterday), and almost everything is working like a charm the only glitch I have experienced till now is that the login manager module in System Settings is not working as it shoul