Help required in understanding when to use encodeChildren() method

I am new to Java Server Faces. I am a little bit confused in understanding the uselfulness of encodeChildren() method in renderers? Can any one explain how a datatable component gets rendered?how is it that that row by row processing takes place?

TableRenderer.encodeChildren() is something you can easily imagine:while(there is the next row) {
  UIData.setRowIndex(++rowIndex);
  write("<tr>");
  while(there is the next column) {
    write("<td>");
    while(there is the next component in the column) {
      nextComponent.encodeBegin();
      nextComponent.encodeChildren();
      nextComponent.encodeEnd();
    write("</td>");
  write("</tr>");
}

Similar Messages

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • Can someone help me to understand when 'suspendScheduledReport' method will

    Can someone please help me to understand when ‘suspendScheduledReport’ method will work?
    I have reports scheduled through BI publisher web service (Time: immediately). When I have lot of records (50) to be processed, for couple of records, the report is in ‘Running ‘status’ for long time. I want to suspend the report for those records. When I pass the job ID(or report Id), and invoke the ‘suspendScheduledReport’ method , it’s not suspending. After 1 or 2 mins, the report status = completed. Can I suspend a report when if it’s in a ‘Running status’?
    Or does ‘suspendScheduledReport’ work only when the 'scheduledreport' is not started (or going to stat in future)
    Please I need a urgent help on this,
    Thanks,
    Kavitha

    Hi Kavita,
    suspendScheduledReport, will suspend only the scheduled report which has not started.
    It will suspend the report from scheduling in future. Not the one, which is running.

  • How to close parent window when we use call method l_window_manager- create

    hi...
    how to close parent window when we use call method l_window_manager->create_external_window
    thank you.

    hi
    good
    go through this link,hope this ll help you to solve your problem
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011
    thanks
    mrutyun^

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • When we use setHeader() method??

    hi,
    when we use setHeader() method??

    Hello,
    I need to place some parameters in a header and send the others as
    a body. However when i try to place some in a header i get error.
    This is the code of the CLIENT:
    Header header=new Header();
    Vector params = new Vector ();
    params.addElement (new Parameter("UserName", String.class,
    "xxx", Constants.NS_URI_SOAP_ENC));
    (...) <-- other params (similar as the one above)
    header.setHeaderEntries(params);
    // build the call.
    Call call = new Call();
    call.setSOAPTransport(st);
    call.setSOAPMappingRegistry (smr);
    //"urn:xmethods-Temperature" (below--> for the temperature thing
    call.setTargetObjectURI("https://www.creditinform.no/creditinform
    .standardwebservice.ws2005207/InfoXML");
    call.setMethodName("HitListPerson");
    call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encodin
    g/");
    call.setHeader(header);
    And i get the following error:
    java.lang.ClassCastException: org.apache.soap.rpc.Parameter
    at org.apache.soap.Header.marshall(Header.java:134)
    at org.apache.soap.Envelope.marshall(Envelope.java:197)
    at org.apache.soap.Envelope.marshall(Envelope.java:162)
    at
    org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnect
    ion.java:354)
    at org.apache.soap.rpc.Call.invoke(Call.java:261)
    Any sugestion could be helpfull.
    Thank you for your time,
    C.E.

  • Help required in understanding the flow of control in working with EJB 3.0

    *1. Can anyone help me in understanding the flow after getting an object of InitialContext in using Stateless/Stateful in EJB 3.0 from client i.e. what we are getting in the step Object ref=jndiContext.lookup("CalculateBean/Remote) .*
    *2. What is the use of INITIAL_CONTEXT_FACTORY*
    *3. PROVIDER_URL*
    *4. Java.naimg.factory.url.pkgs*
    *5. why org.jboss.naming and org.jnp.interfaces separated by semi colon.*
    *6. Why we dont require INITIAL_CONTEXT_FACTORY, PROVIDER_URL and Java.naming.factory.url.pkgs if the client is a web client.*
    Properties p=new Properties();
              p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
              p.put(Context.PROVIDER_URL,"jnp://localhost:1099");
              p.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
              Context jndiContext = new InitialContext(p);
         Object ref = jndiContext.lookup("CalculateBean/Remote");
    Calculate c = (Calculate)ref;
    int sum=c.add(3,4);
    System.out.println(sum);
    Thanx in advance........

    Annotations can also be processed at run time using the core reflection API (java.lang.Class & java.lang.reflect.*), so you might want to explore down that path. I have no idea how JBoss actually does it, but annotation processing at build time and core reflection at runtime are the two most obvious possibilities.
    Bruce

  • Help required in understanding of static blocks in java

    Hi ,
    Can some one help me in understanding the difference between static blocks in java....also what is the difference in declaring some static variables in a class and and declaring some variables in a static block? From an architecture viewpoint when should one use static blocks in Java?

    Static blocks are piece of code that can beexecuted
    before creating an instance of a class.static blocks are executed once, when the class
    itself is loaded by the JVM. They are not executed
    before creating each instance of a class.
    For example whatever you include in the mainn method will be
    executed without you having to create the instanceof
    the class using the new operator. So you can saythe
    main method is a static block.main is not a static initialisation block but a
    static method. a special case static method at that -
    it is only executed when the containing class is
    specified as a parameter to the JVM. (unless you
    specifcally call it elsewhere in code - but that
    would be bad form).
    in answer to the original post, static variables
    belong to the class. each instance of the class share
    the same static variables. Public static vars can be
    accessed by prefixing them with the class name. A
    static initialisation block can be used to
    initialise static variables. Variables declared
    within the static initialisation block exist only
    within the scope of the block.
    e.g.
    public class Foo {
    static Bar bar;        // static member variable
    // static initialisation block
    static {
    // variable declared in static block...
    String barInfo =
    arInfo = System.getParameter("barInfo");
    // ... used to initialise the static var
    bar = new Bar(barInfo);
    So is the only purpose of static initialization blocks is to initialize static variables? Does the initialization of static variables inside a static block make any difference in performance? If yes , then how ?

  • Help required in understanding the rationale behind singleton class

    Can anyone help me in understanding singleton classes?why do we need them?Architecturally when should we go for a singleton class?

    answer lies in GoF book.

  • Validations when we use GET method

    Hi Team,
    I am using GET method with the following URL(example)
    http://IP:8080/ords/schema_name/office/users/{user_id}
    URI template : office/users/{user_id}
    method:get
    source type : Feed
    Source : select * from emp where empno = :user_id;
    Using the above URL I am able to get all the specified user details in the browser.
    I want to add the validations to the service now, and response should be user defined.
    Ex : when user not in the database
    then respond with the error code and error name in JSON format ex:
    items:
    error code : 404
    message: "somthing wrong"
    I am not sure how we can achieve this functionality when we use SQL query.
    Please suggest any possible solutions for this.
    thanks
    Chandran

    grant dba_users view to apex and change the sql like this:
    select * from emp where empno = :user_id and exists (select 1 from dba_users where username=:user_id);

  • Help Required Regarding - SAP Job names using R3 data flows

    We are calling a set of SAP Jobs using R3 data flows in data services. When ever a job fails we first kill the active SAP jobs by logging into SAP and then restarting the Jobs.
    There are about 100 odd SAP jobs that we call using these Data services Jobs so we wanted to kill the jobs using a reusable code on the SAP side by passing the Job name just before every R3 flows just incase its still in active status.
    So wanted to know if there are any short cuts to retrive the set of associated SAP job names because it will be a tedious process to hardcode the SAP job names and pass them as parameters for all the 100 + SAP job names in the custom defined resuable code.
    Any help or advice on this please !!

    The program is not meeting the expectations
    and the problem is due to reflection.Do we know this for certain?
    ... my application gets the class name, field name
    etc. from an XML file so i don't know their method names
    beforehand .
    Now since every class instance corresponds to a row
    in the database and i have to call get and set
    methods of each class instance so the performance
    keeps on degrading as the number of columns and rows increase .
    Can somebody suggest some improvement regarding this
    and regarding creating multiple instances of the same object Class.forName() will be using a hash already, so there is probably not much room for improvement.
    Class.newInstance() probably does not take significantly more processing than a simple "new Fubar();".
    Umpteen reflective method invokations (one per column) for each row/instance - Are you saying these are the problem?
    You can test this easy enough.
    If you comment out the reflective method invocations and leave the rest of your code untouched,
    does your application processing speed up significantly?

  • Requirement is same when we use se16 with webdynpro

    hi ,
    i made a ztable and called it into webdynpro which is editable till now it look like this
    MATERIAL  DIVISION  MATL_CAT  MATL_GROUP MATL_TYP
      1                    1        AA                   MG1             FERT   
      2                    2        BB                   MG3             FERT   
      3                    1        CC                   MG2             FERT   
      4                    3        AA                                       FERT   
      5                    1        BB                   MG1             HAWA   
      6                    2        CC                   MG2             HAWA   
      7                    3                                MG1            HAWA   
    in my url the screen looks like this and it is editable now my futher requirement is
    When we doubleclick to add value into record for example record no 4. I want to add value in Material Group field. 
    Following screen should look like. in the url
    MATERIAL  DIVISION  MATL_CAT  MATL_GROUP MATL_TYP
      1                    1        AA                   MG1             FERT   
      2                    2        BB                   MG3             FERT   
      3                    1        CC                   MG2             FERT   
      4                    3        AA                                       FERT   
      5                    1        BB                   MG1             HAWA   
      6                    2        CC                   MG2             HAWA   
      7                    3                                MG1            HAWA   
    below this screen it should show
    MATERIAL           4                 
    DIVISION             3                 
    MATL CAT          AA                
    MATL GROUP                      
    MATL TYPE       FERT              
    PROD HIER                       
    RECORDMODE                      
    Dropdown button should there to select values from available
    after that it should save the missing MATL GROUP into the database
    i have completed upto getting the record into url and it is editable but uable from double clicking , can any one suggest me how to do it or step step procedure as iam new to it .

    Hi Sarfaraz,
    We dont have double click event in the Table.But you can acheieve the same by using the event onLeadSelcetion, implement method for onLeadSelection event and write your logic over there.
    Thanks
    Suman

  • Help required with understanding References and finalizers

    Background
    I have an online Application which has been developed over 6 years now. It is a Website CMS and runs 300 simultaneous sites per webserver. For the first time I am experiencing capacity / performance issues. I switched from SUN Java to JROCKIT in 2006 which speeded evertything up by 200% but now I have periods of the day where The memory fills up and I get Swapping which leads to 100% cpu utilization - mainly in I/O. I have upped the RAM in the server as a solution and now I want to see if I can do anything to reduce my memory footprint.
    Specifically : The question
    I have captured stats which I can view in Mission Control and it shows that the number of Weak References increases continuously over a 4 hour period (also the number of Phantom references shows similar behaviour). Therefore I suspect a memory leak - Also I suspect that this is of my own making since I have not realy had to deal with this before. The thing is I cannot clearly see how to proceed and identify what my error is.
    I have spent a couple of weeks reading loads of docs about weak / stong etc.. references but I realy need a bit of help with zeroing in on a starting point. I know that I release objects by setting them to null but I now expect that this is not realy good enough.
    Anyway - before I ramble too long, If there is anyone with relevant experience and a few minutes I would be very gratefull to hear from them.
    Regards
    Jonathan Carter
    Glimworm IT
    Amsterdam

    Hi Jonathan,
    Reference objects and finalizers are a frequent cause of performance issues. The reason is that 1) objects tend to be kept alive longer, leading to an increase in live data and more frequent GC and 2) processing of these objects during GC is expensive, which leads to more time spent in GC, i.e. long pause times.
    There are various ways you can approach your issue. One is to use -Xverbose to see what you find. If you are using JRockit R27.2 or later, run with "-Xverbose:referents" to get a list of all reference objects at every GC. More info:
    http://edocs.bea.com/jrockit/jrdocs/refman/optionX.html#wp1029960
    Note that you can enable verbose logging during runtime through "jrcmd <pid> verbosity set=referents" and later disable it using "jrcmd <pid> verbosity set=referents=warn". No JVM restart required.
    If you send your JRA recordings to jrockit-improve AT bea DOT com, we'll try to take a look at them.
    -- Henrik

  • Help required regarding sending jar files using bluetooth

    I want to send jar file from Nokia 7610 (S60), or any other phone for that matter, to any other phone using bluetooth. The problem is that, when I look at the options available for the jar file (which is saved in the Inbox), the send option is not visible.
    I looked at the previous postings on this topic. Is it due to "Closed Content List" (CCL)??? What are the possible workarounds, other than using getResourceAsStream or some software like FExplorer???
    Also, this problem is not encountered in Sony Ericsson phones. Plz help regarding the same...

    Hi,
    You might wanna look take a look in the JSR 82 Specifications. There is a method like agent.startInquiry(); that starts a search for nearby BT devices. All you have to do is place each found device in an array of type Vector.
    It would have been easier if your code or a snippet of it was available to see what the problem was.
    Rambo.
    PS: A client application application starts a connection on a server application. Where you put them is up to you.

  • Help required to understand interactive SWF appearance on various browsers and pc's

    I have created an interactive newsletter for global distribution.
    My work machine uses a resolution of 1280 x 1024
    However, my company uses different browsers and laptops globally, as we have approx 150,000 employees.
    The Indesign pages are 1000 x 800 px
    When I sent out a few test files, I received various issues from different people.
    Some using IE6, IE7 and IE8 complained that although their resolutions were 1280 x 800, or 1280 x 1024, the  top and bottom of the swf files were either cut off or the file was presented with text too small to read.
    Using Firefox, some of the people also said that the file presented with the top and bottom cut off.
    My own PC using either IE8 or Firefox @ 1280 x 1024 presents the file perfectly fine.
    Now, with IE 8 and firefox, by either using the CTRL + middle mouse wheel, or CTRL and + or - the SWF file resized correctly by zooming in and out.
    For IE6 the user would need to right click and choose Zoom in or Zoom out.
    Most users are, and I am not being patronising here, not computer savvy, and would not generally know how to perform this option. They simply use the computers to do their job and panic if a java updated is presented.
    I need to avoid this if I am to pursue the interactive SWF file approach.
    Has anyone else experienced this and can you offer a solution that, no matter the resolution ot Browser used the SWF file will present correctly all the time?
    thanks

    The usual approach is to assume the smallest pixel dimension for a desktop is 1024x768, so you set the flash stage at around 900x650. If you are coding in Actionscript there is the option to listen for a browser resize and rearrange the objects on the stage to fit the space, but that's not an option saving out of ID. The best approach is to setup your ID page to 900x650,  and make sure the text is readable at 100% view.

Maybe you are looking for