ReRender using client-side dom id

Is it possible to use client-side DOM ids for rerendering. I have noted that JSF/Richfaces only accepts server-side DOM names.
e.g.
<h:form id="myForm">
    <h:outputText id="testData" value="#{testAction.testData}" >
    <a4j:commandButton id="updateData" value="Update Data"
                             action="#{testAction.updateData}" reRender="testData"/>
</h:form>client-side DOM id: testData
server-side DOM id: myForm:testData
Is there some method on the server (maybe in rerender phase) that I call to achieve this i.e. reRender="myForm:testData"
Thanks,
Philip

The problem that I've posted is just an example. The real jsf page is extremely complex which is made up repeating data that is nested multiple levels deep. I'm trying to minimize the amount of data being rerendered as the page is over 1.5MB in size as it stands, but still needs to be extremely interactive and responsive.
The form lives within the repeating rich:dataGrid to minimize the amount of data being submitted to the server. In the real application this repeat is nested within a few other repeats multiple levels deep. I also use ajax regions to minimize the amount of processing on the server side.
The problem I'm trying to solve is as follows:
1) I have page with lots of repeating data multiple levels deep. At each data level content is represented in a set of panels/forms.
2) Changing one value in one of the forms can initiate a complex set of events, where data needs to be rerendered in other areas outside the current form (but on the same page).
3) The data across all these tables can be sorted by the end user, which means that I have lost the original link between the backing data and the client-DOM component i.e. if you sort data, the data changes its position, but the DOM components remain unchanged. This is problematic as I need to know down to a single field what needs to rerendered.
The solution that I am trying to employ:
1) As the page loads (or is subsequently rerendered on a post-back) I store a unique identifier (based on pk of the backing component - ejb entity) and the client dom id of the component back in a map on the server (pk to client dom map). I only need to do this for a select set of fields that I know might change during step 2 above. If one element is changed that causes a data change in another area of the screen, I can get to the client ID by doing a look up on pk/client dom map.
2) I am using the ajaxKeys property combined with the field name to calculate the exact component that needs to be renrendered. However, to get at this I need to parse the client ID to figure out the ajaxKeys and field name. I then need to set these keys for every table that is a parent of the current field that I am trying to rerender. One issue that I am faced with using this approach is: if I need to update more than one field within the same rerender but is based on different ajaxKeys - still trying to figure this one out.
This process would be so much easier if I could just tell JSF to rerender based on the set of client IDs that I know need to be rerendered.
Thanks for the advice.
Philip

Similar Messages

  • How to copy a page( webpart page) with its content using client side.

    How to copy a page(in my case  webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
    What i am planning is ,to give end user a page where it will contain text box to specify  name of page and a button with the help of  content editor webpart.
    where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
    Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
    or can we create a template of an existing page with content without the help of sharepoint designer.
    Thanks in advance
    with regards Ravichandra

    This is good example
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
    Create web service
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
    Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
    Oleg

  • Full mask permission in SharePoint using Client Side Object Model

    Full mask permission in SharePoint using Client Side Object Model does not include all the base permission while it does have all base permission in server side . Is this a bug ? 
    Or do we have any workaround for this.
    BasePermissions.Set(PermissionKind.FullMask);  is not updating all the permissions. 
    It seems that there is some limitation with Microsoft.SharePoint.Client.dll as mentioend at below link . Do we have any workaround here.
    http://break962.rssing.com/browser.php?indx=7116806&last=1&item=9
    Ashish Baranwal || To know what you know and what you do not know, that is true knowledge

    You can write your own loop to upload multiple files via an individual call.
    http://sharepoint.stackexchange.com/questions/108525/multiple-file-upload-with-metadata-using-rest/108532#108532
    More reference: http://sharepointfieldnotes.blogspot.com/2014/04/uploading-documents-and-setting.html
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Import TermSet CSV using client side object model

    Hello,
    I want to import CSV in TermStore using client side object model. Unfortunately there is no ImportManager here.
    Is there any other way (Other than reading from CSV and adding term one by one to term store)?
    Regards, Nanddeep Nachan

    Hi,
    Here is a tool(server-side) from codeplex for your reference:
    SharePoint 2010 CSV Bulk Taxonomy TermSet Importer/Exporter
    If you want to import termsets  from CSV in Client-Side, we can refer the tool above.
    You can develop a windows form application and use .Net Client Object Model to achieve it. The following articles is about how to operate the termset using Client Object Model for you reference:
    http://sundarnarasiman.net/?p=87 (Download)
    http://code.msdn.microsoft.com/office/SharePoint-2013-Synchronize-d40638d1/sourcecode?fileId=72317&pathId=166025385
    http://www.c-sharpcorner.com/Blogs/10853/how-to-create-a-term-set-for-the-specified-group-using-clien.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Cross Site Collection lookup using client side object model

    I have to do Cross Site Collection lookup using client side object model or Odata ,
    no servier side.. any ideas experts?

    Did you read about cross site publishing feature in SP 2013?
    Check this out
    http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1038
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2012/09/18/sharepoint-2013-cross-site-publishing.aspx
    http://blog.helloitsliam.com/Lists/Posts/Post.aspx?ID=89
    http://blogs.msdn.com/b/ritazh/archive/2012/09/26/sharepoint-2013-how-to-setup-cross-site-publishing-enable-catalog-use-managed-navigation.aspx
    http://stackoverflow.com/questions/1151036/sharepoint-lookup-column-across-site-collection-boundary
    You will need custom code for this, but since the amount is minimal and this is Stack Overflow I assume that won't be a problem. You will want to make your own listview web part that queries the list using ListViewByQuery. An example can be found here:
    http://blogs.msdn.com/b/ramg/archive/2009/04/21/implementing-a-simple-cross-site-collection-list-view-webpart.aspx

  • Copy one list items new list using client side object model

    Hi,
    I have a requirement like i need to copy one list information to new list with createdby and modified by fields.I need to use client side object model code.Can u please send me the code sample.
    Regards,
    Praveen

    Hi,
    According to your post, my understanding is that you want to copy one list items new list using client side object model.
    You can use console application.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/28a43891-7505-4d34-b513-fdd66773c2a3/copy-list-item-to-another-list-using-client-object-model-in-console-application?forum=sharepointdevelopmentprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Show the Read more link in the list view webpart using Client side Rendering

    Hi,
    I have a share point list name as Team.It contains two columns like Role(single line of text) and Name( people and picker).
    I want the display the list view webpart like below format using JS Link/Client side rendering concept.
    If list contains more than 3 items (display like this)
    >TeamMemberName1
    >TeamMemberName2
    >TeamMemberName3
    Readmore... (Read more link should expand all the team members)
    If list contains more than 3 items (display like this)
    >TeamMemberName1
    >TeamMemberName2
    >TeamMemberName3
    Could you please provide the code.It is very urgent for me.
    Thanks for the help!!!

    (function () {
        debugger;
        //Create our Namespace object to avoid polluting the global namespace
        var pfh = pfh || {};
        //Define our Header Render pattern
        pfh.renderHeader = function (ctx) {
            var headerHTML = "<ul>";
            return headerHTML;
        pfh.renderFooter = function (ctx) {
            //Define any footer content here.
            var footerHTML = "</ul>";
            return footerHTML;
        pfh.CustomItem = function (ctx) {
            var itemHTML = "<li>" + ctx.CurrentItem.TeamMemberName[0].title; + "</li>";
            return itemHTML;
        //Define any code/function that needs to be run AFTER the page has been completed and the DOM is complete.
        pfh.PostRenderCallback = function (ctx) {
        //Define the function that will register our Override with SharePoint.
        pfh.RegisterTemplateOverride = function () {
            var overrideCtx = {};
            overrideCtx.Templates = {};
            overrideCtx.Templates.Header = pfh.renderHeader;
            overrideCtx.Templates.Footer = pfh.renderFooter;
            overrideCtx.Templates.Item = pfh.CustomItem;
            overrideCtx.onPostRender = [pfh.PostRenderCallback(ctx)];
            overrideCtx.BaseViewID = 98; //Note: We're using BaseView ID 99 to match our override below
            overrideCtx.ListTemplateType = 100;
            SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
        //Now we load in our override to ensure that this Override is only applied to the intended ListView
        ExecuteOrDelayUntilScriptLoaded(function () {
            var OldRenderListView = RenderListView;
            RenderListView = function (ctx, webPartID) {
                if (ctx.ListTitle == "Test") {
                    ctx.BaseViewID = 98;
                OldRenderListView(ctx, webPartID)
        }, 'ClientTemplates.js');
        //Register for MDS enabled site otherwise the display template doesn't work on refresh
        //Note: The ~sitecollection tokens cannot be used here!
        RegisterModuleInit("/_catalogs/masterpage/Display Templates/csr_ovr_RenderListTemplate_Fixed.js", pfh.RegisterTemplateOverride); // CSR-override for MDS enabled site
        pfh.RegisterTemplateOverride(); //CSR-override for MDS disabled site (because we need to call the entry point function in this case whereas it is not needed for anonymous functions)
    I am using the above script to render the items.
    I am new to the CSR.
    Where do i need to include your script in my script.
    Please help on this.
    Thank you for reply sagar.
    Please note that i am not using content search webpart.

  • Can we access popularity trends using client side script?

    Hi, 
     I have a requirement to show the hit count for my image library's item(s). When ever I am opening an image from the image library, I just wanted to show the hit counts. For this I have created a Number column and updating this column by using CSOM
    when ever hit happens to that particular item. 
    The problem arises here, for visitors ( who has read only permission to the site) I am not able to update the column due to permission issue. Since we all know that we can't elevate the privilege from client side script. And also our design says that we
    can't give the contribute permission to all the users at the library level. How can we update the count at item level even when the visitors are opening an item from the image library? 
    Please help me... 
    Thanks in advance
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

    972454 wrote:
    can we access 11gr2 oracle using 11g r1 OWB Client? NO .. Oracle 11gR2 db is accessible only from OWB11gR2 client
    we have 11g r1 database installed on our machine, and 11g r2 OWB client on other machine.
    Please help. we are unable to connect.
    Sorry this is different from your 1st question.
    For your information OWB11gR2 client can access 11g r1 database
    Regards
    Gaurav

  • Creating/copying documents using client side object (javascript)

    Hi
    I want to the user to press a button and this creates or copies documents (Excel) into a document library on the same site. There are many examples showing how to do this for a list but how can it be achieved for documents?
    I've looked at SPFile.CopyTo method but dont know how to use it.
    So the source file would have a number of destination files and the name and column data would be altered at time of creation. Looking for a client side javascript solution.
    Hope someone can assist.
    Thanks

    Hi,
    According to your description, my understanding is that you want to copy or create excel files into a document library using JavaScript Client Object Model.
    For copying excel files, you can use get_files function to get files within a specific folder , and then you can use file collection
    push function to copy files and get_name function to get the file name.
    Here is a detailed code demo for your reference:
    How do I move files from one document library to another using JSOM?
    For creating files, you can use Jquery upload plugin to achieve it,here is a detailed code demo for your reference:
    How to Upload File to Document Library using JavaScript Client Object Model?
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using Client Side Extensions (SWF) to call external Web Service

    Hi,
    I'm using .swf files to extend my CRMOD application, and one of my requirements is to be able to show information on a custom applet using the Client Side Extensions. This information is coming from an external system, so i'm trying to call this external web service using .swf.
    When i create my swf application and i run it locally, i can access the web service and receive the results into my browser, but when i do the same call from the custom web applet in CRMOD i don't get any results.
    Can someone tell me if this is possible? And if so, how to do it?
    Best Regards,
    NF

    Post Author: luke
    CA Forum: Data Integration
    Yes. I  have figured out the way to do it.
    Luke.

  • Identifying Flash Player versions 10a, 10b and 10c using client side scripting

    I need to write a client side script to identify users with 10a, 10b or 10c installed, but I only see version 10 (no letters.) Is there a translation between version keys major/minor/revision, and 10a/10b/10c? I want to use the (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash"))) method in conjuction with the javascript.GetVariable("$version") method, and I need to know what values to check for.
    Thanks very much!

    For your information
    Flash10.ocx  / FlDbg10.ocx  = 10.0.2.54   Shipped with CS4
    Flash10a.ocx / FlDbg10a.ocx = 10.0.12.36
    Flash10b.ocx / FlDbg10b.ocx = 10.0.22.87
    Flash10c.ocx / FlDbg10c.ocx = 10.0.32.18
    Flash10d.ocx / FlDbg10d.ocx = 10.0.42.34

  • How To Use Client Side Certificate to access the SOAP service

    HI,
    I am client side and need to access a remote SOAP server side using a certificate.
    I don't know how to add the certificate in my Java code, although I can get it using X509Certificate. The following is my code.
    Thanks for any help
    public class Dash911 {
    public static void main(String args[]) throws IOException {
    try {
         //I have a Cert class that generate the cert          
    X509Certificate certificate = (new Cert()).getCertificate();
    String targetURI= "http://schemas.ecs.telefinity.com/webservices/postal/";
    String methodName = "FindStreet";
    String encodingStyleURI = Constants.NS_URI_SOAP_ENC;
    Vector params = new Vector();
         String[] names = {"Westcorp", "35805"};
         params.addElement(new Parameter("names", names.getClass(), names, null));
         String endpointURL = "https://prototype.test.telefinity.com/integrationprovisioning/postal.asmx";
         makeCall(targetURI, methodName, encodingStyleURI, null, params, endpointURL);
         } catch (Throwable t) {
         }//main          
    Thanks a lot

    Keystore or Truststore may be rigtht the same file, the matter is how you use it
    at each time: if you need to authenticate yourself (no matter wether you are a
    server or a client), you will have to initiate your SSLcontext with such file
    managed by TrustManager. On the other hand, you just do same but
    indicating your file is shall be managed by a KeyManager.

  • Submit by mail as .pdf  without using client side mail application

    is it possible to submit a form in pdf format to an e-mail address without it opening the clients outlook in order to send, i simply want them to click submit, and it to send to my mailbox with the info as follows
    from: [email protected]
    subject: Timesheet
    Attach: Timesheet.pdf
    body: Attached is this weeks timesheet
    all i want the page visitor to do is fill in the info, and click "submit via e-mail" no outlook, no attaching, simply click and done.

    >? I have a similar requirement where in the users should be able to open the form from out website, fill it, submit and the form should be submitted through email.
    >There should not be any windows based client email needed on the user's machine.
    What you describe is, superficially, utterly impossible. No e-mail
    client means you can't send mail.
    But the end result can be achieved. The form should be submitted, just
    like every HTML page, to a web script on a web server. The script
    should only be written by an experienced web programmer familiar with
    all the security issues of web programming today.
    The script can, if the programmer wants, send the form data as an
    e-mail. Note that sending it as PDF, rather than XML, may require a
    major investment in enterprise software.
    Aandi Inston

  • Client-side Conversion using  NumberConverter and DateConverter

    Hi,
    In our application we have a custom input text component and we are using the same component to capture date, number, currency and string values .As we are using the same component to capture date/number/string values I can't add number/date converter to it.
    At run time I have to read the user entered values and need to convert them into date/ number /currency values. I am planning to use Client-side Converters to format the values.
    Please let me know how make use of NumberConverter and DateConverter in java script to convert the values at client side.
    Regards,
    Kiran

    Hi Gabrie,
    Thanks for your response.
    ADF is providing NumberConverter / DateConverter to convert date/number/currency values. Instead of writing my own custom converters can I use the framework provided converters to convert the values at client side?

  • Crystal report printing in client side

    Hi ...
    I have using asp.net web app with crystal report version 10.5.3700.0
    I have uploaded the project and database in the below link. Check out.
    http://www.2shared.com/file/vHTSGl13/ASPnet_Webapp_using_CR_Rpt_Pri.html
    http://i52.tinypic.com/2rdds7d.jpg
    I have few requirement in the crytsal report asp,net page:-
    1) If user click Print button of crystal report viewer toolbar then it goes to PDf then its show me all of my pages instead of showing me the current page on which i click print.
    2) I want to use client side print..if user click on a my print button then i need to show print dailogue like image above in that if user click print then i need to print that current page.. let us consider im viewing I3 Invoice number using Crysatl report viewer Navagition then it show me as 3/7 in toolbar if user click on my print button then i need to print the page 3 only.. coz user clicked print on Page3.
    3)My asp.net web app is in Hosting server if user click my print button then i need to show client print dailogue and it will show my cleint connected printer. Here crytsal report toolbar and other things should be hide. It should be like what we have designed in crystal report that alone should be get printed.
    4) One more thing i want is if user gives I4 invoice no. in my textbox1 then click view report button then it will show that Invoice Report now its shows two pages, here if user click print then i need to print two pages coz it has two pages...
    Please do a code using my webapp which is above and waiitng for your codes..
    Thank you
    Note: please do a code so that i can know, i already visited some of the website like http://aspalliance.com/ i didt undertstand how to do so im posting here to get a code.

    *i tried this also but it show me the same only hosting server printer not a client side printer*
    if (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count > 0)
                foreach (String myPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
                    cboCurrentPrinters.Items.Add(myPrinter);
                cboCurrentPrinters.SelectedIndex = 0;
            //For printers exposed to System account as per MS Kbase
            //http://support.microsoft.com/default.aspx?scid=kb;en-us;184291
            //Look to HKEY_USERS\.Default\Software\Microsoft\Windows NT\CurrentVersion\Devices
            Microsoft.Win32.RegistryKey mySystemPrinters =
                    Microsoft.Win32.Registry.Users.OpenSubKey(@".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices");
            foreach (String defaultPrinters in mySystemPrinters.GetValueNames())
                cboDefaultPrinters.Items.Add(defaultPrinters);
            if (cboDefaultPrinters.Items.Count > 0)
                cboDefaultPrinters.SelectedIndex = 0;
    help me in this.. its very urgent needed..

Maybe you are looking for

  • How do I extend my Airport Extreme version 5.7 for better wireless at a distance?

    From my researching of this problem, it seems like I may need to "extend" my Airport Extreme version 5.7 to strengthen my signal at a distance.  It is used, but I was able to reset and set it up to my network.  The previous user was getting much bett

  • [SOLVED] Active application icon is missed in top panel. Gnome 3.4.

    Since i've updated the system today, i see that the icon of the active application, which used to be shown in the top panel, has been disappeared. I use gnome 3.4 from Extra, zukitwo theme and Faenza icon theme from AUR. Here is an image: http://imag

  • My lock button on my iPhone 4 is stuck. What do I do now?

    I was just sitting in the car texting and went to lock my phone, and it was extremely hard to press the lock button. Well I ignored it, got another text, and went to lock my phone again and this time it wouldn't lock. I've never had any lock button p

  • Some users are not synced with dirsync

    hi all, i have installed the dirsync tool to sync my on-premises AD with office 365, i have some users located in one OU some of them are synced and the others not, the strange thing when i move the users to another OU they sync. Thanks

  • Wi-Fi Gateway for U-verse

    Hi All, I already have my own ethernet Wi-Fi Gateway and I like it. Can use it instead of AT&T's one?