Component binding table

Hi,
can someone give me an example of component binding with dataTable?
In my app i must use this, because i don't know number of columns - so i must make table in my java code. Each column consists of checkbox and inputText and under the table is submit button which submits entire table. Values of checkbox and inputText in one column are bind to BackBean (this bean has selected value and price value).
In my jsp, i use something like this:
<h:dataTable var="table" binding="#{model.table}" value="#{model.data}" />
I'm working on this for a week and I stil don't know how to do it.
Thanks in advance,
jarin

Hi,
yes U understand my problem. I have in my jsp only:
<h:dataTable binding="#{model.table}"/>
<h:commandButton action="#{model.set} value="submit"/>
I use client state saving,
model is managed bean ModelBean in request scope
my two classes, which do all work - they should work if you get them into any app, I removed any unnecessary pieces of code:
/* class ModelBean -------------------------------*/
package backing.divadlo;
import backing.divadlo.SedadloBack;
import javax.faces.component.html.*;
import java.util.*;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
import javax.faces.component.*;
public class ModelBean  {
  private UIData table;
  private ArrayList data;
  private int colNumber, rowNumber;
  public ModelBean() {
    table = new UIData();
    data = new ArrayList();
    colNumber = 0;
    rowNumber = 0;
  public void setData(ArrayList d) {
    this.data = d;
  public ArrayList getData() {
    return this.data;
  public void setTable(UIData tbl) {
    this.table = tbl;
  public UIData getTable() {
    init(); // normaly I call init() in another bean, if I select which auditorium will be shown
    return this.table;
  public void pripravData() {
    data.clear();
    // prepair of auditorium - get rows and number of cols
    rowNumber = 2;  // after all works, here will be rows of auditorium
    colNumber = 20; // seats in row, each row can have another number of seats
    // loop trough rows of auditorium
    for (int i = 0; i < rowNumber; i++) {
      ArrayList novaRada = new ArrayList();  // new row with seats
      // insert seats (SedadloBack) into new row
      for (int k = 0; k < colNumber; k++) {
        SedadloBack sedB = new SedadloBack(); // new seat
        sedB.setRada(k);      // set number of row
        sedB.setSedadlo(k);   // set number of seat
        sedB.setProdej(true); // is free or not
        sedB.setPrice(k);     // set price
        // insert seat into new row
        novaRada.add(sedB);
      // insert new row into auditorium
      data.add(novaRada);
  public void init() {
    FacesContext context = FacesContext.getCurrentInstance();
    List list = table.getChildren();
    list.clear();
    pripravData();
    if(data != null) {
      table.setValue(data);
      table.setRows(data.size());
      table.setRowIndex(0);
      table.setVar("dTable");
      UIColumn column;
      HtmlInputText priceText;
      HtmlSelectBooleanCheckbox checkbox;
      HtmlOutputText br1,br2,cislo;
      for (int i = 0; i < colNumber; i++) {
        column = new UIColumn();                    // new column
        priceText = new HtmlInputText();            // input for price
        checkbox = new HtmlSelectBooleanCheckbox(); // is free or not
        br1 = new HtmlOutputText();                 // <br>
        br2 = new HtmlOutputText();                 // <br>
        cislo = new HtmlOutputText();               // position of seat in row
        br1.setValue(new String("<br />"));
        br2.setValue(new String("<br />"));
        br2.setEscape(false);
        br1.setEscape(false);
        // prepare outText of position in row
        String cisloExp = "#{"+table.getVar()+"["+i+"].sedadlo}";
        ValueBinding vbCislo = context.getApplication().createValueBinding(cisloExp);
        cislo.setValueBinding("value",vbCislo);
        // prepare checkbox - if seat is free or not
        String expCheckbox = "#{"+table.getVar()+"["+i+"].prodej}";
        ValueBinding vbCheckbox = context.getApplication().createValueBinding(expCheckbox);
        checkbox.setValueBinding("value",vbCheckbox);
        // prepare inputText - price of seat
        priceText.setTitle("Cena");
        priceText.setStyleClass("cenaInput");
        String vbSIn = "#{"+table.getVar()+"["+i+"].price}";
        ValueBinding vbI = context.getApplication().createValueBinding(vbSIn);
        priceText.setValueBinding("value", vbI);
        // prepare column
        column.getChildren().add(cislo);
        column.getChildren().add(br1);
        column.getChildren().add(priceText);
        column.getChildren().add(br2);
        column.getChildren().add(checkbox);
        list.add(column);
  public String set() {
    // for now just print out price with position of seat
    for(int j=0; j < table.getRowCount(); j++) {
      table.setRowIndex(j);
      if(table.isRowAvailable()) {
        ArrayList data = (ArrayList)table.getRowData();
        for(int i=0; i < data.size(); i++) {
          SedadloBack sedadlo = (SedadloBack)data.get(i);
          System.out.println(sedadlo.getRada()+"/"+sedadlo.getSedadlo()
                             +" - "+sedadlo.getPrice());
    return "null";
/* class SedadloBack -------------------------------*/
package backing.divadlo;
import java.io.Serializable;
public class SedadloBack implements Serializable {
  private int id;
  private int rada;
  private int sedadlo;
  private int price;
  private boolean prodej;
  public void setId(int id) {
    this.id = id;
  public int getId() {
    return this.id;
  public void setRada(int rada) {
    this.rada = rada;
  public int getRada() {
    return this.rada;
  public void setSedadlo(int sedadlo) {
    this.sedadlo = sedadlo;
  public int getSedadlo() {
    return this.sedadlo;
  public void setProdej(boolean pr) {
    this.prodej = pr;
  public boolean getProdej() {
    return this.prodej;
  public void setPrice(int price) {
    this.price = price;
  public int getPrice() {
    return this.price;
} I realy appreciate your help, this is my first app in jsf - i make it as my dissertation and I am starting be little late.
If you need more info or code i give you what you want. Preparing war is little complicated - I use postgres and hibernate and i doubt if you want install this db only to test my case.
jarin

Similar Messages

  • How to bind table data to datatable component and show all the table data??

    I bind table to datatable component !
    The datatable has four rows,
    but the datatable alway show the first row data in its four rows,why??

    do you mean at design time or at runtime?
    at design time, the datatable uses generic fields to
    show if data type is numeric, text, date, etc...
    If this is at runtime,
    - what driver are you using?
    - how did you bind the data to the table?
    - what is the resulting code in the Java backing file?
    hth,
    -Alexis

  • h:dataTable with component binding not rendering

    Hello,
    I am developing an application with several ad-hoc queries that need to be displayed in data table elements. The number and label values of the columns are not known until runtime. I am attempting to use a component binding mechanism to intercept the UIData and add columns to it at runtime, depending on the data currently held in a backing bean instance (such as an ad-hoc query result).
    I'm not sure where I can actually intercept the table and add the columns. I've got the following code example to compile and run without error, but nothing gets rendered properly - I get an opening <table> tag in the HTML source and nothing else follows.
    I have compared the structure of the table created with the following binding method to a table created with simple <h:dataTable> tags, and I see only one difference. The datatable created with tags has a single attribute in its attribute map called "javax.faces.webapp.COMPONENT_IDS" that maps to an ArrayList of the component IDs of the h:column elements I specify on the JSF page. The datatable I attempt to create in the binding method does not have this attribute in its map, and I can't seem to manually add it in without creating further havoc. (the child count, types of children, etc all seem to be equivalent).
    From the JSF perspective this is how I've defined the h:dataTable tag instance...
    <h:dataTable id="categoryTable" rendered="true"
            binding="#{backingBeanInstance.table}"
                value="#{backingBeanInstance.rows}"
                    var="row"  border="2" />This is basically the code in the backingBeanInstance....
        private UIData table;
        public void setTable(UIData table){
            this.table = table;
           //initTable();   //tried this but seems not to work either?
        public UIData getTable(){
            if(table!=null){
                initTable(); //build the columns and add to the table
            return table
        private void initTable(int categoryIndex){
                //This block is just a way to calculate the number of columns
                int colCount = <depends on data held in bean>
                //Resolve the var string for the data table
                String item = table.getVar();
                System.out.println("item: " + item);  //this is always null the 1st time through?? why?
                UIColumn col;
                UIOutput out;
                FacesContext context = FacesContext.getCurrentInstance();
                Application app = context.getApplication();
                //For each column in the data, create a UIColumn as child of the
                //data table.  Create a UIOutput as child of the UIColumn and bind
                //the value of the UIOutput to the data with an EL expression
                for (int j = 0; j < colCount; j++) {
                    //create an instance of UIOutput to display the value for this cell
                    out = new UIOutput();
                    out.setRendererType("Text");
                    //create an instance of UIColumn
                    col = new UIColumn();
                    //construct the value binding string as an EL expression
                    String valueBindingString = "#{" + item + "[" + j + "]}";
                    //create the value binding
                    ValueBinding vb = app.createValueBinding(valueBindingString);
                    //set the value binding on the UIOutput object
                    out.setValueBinding("value", vb);
                    //add the UIOutput component to the UIColumn as a child
                    col.getChildren().add(out);
                    //add the UIColumn to the data table as a child
                    table.getChildren().add(col);
        }

    <bump>

  • Problem with adf table when adding component in table column.

    Hi All,
    i am using jdev version 11.1.1.5.0.
    use case: i have created one adf table which is based on DC VO. now i have added one select one radio group component(which contain 4 radio button approved ,reject,back,None) in adf table.
    table have many rows for example in first row i have select approved and to next row i have select reject now when i get value of radio group in backing bean using component binding i got last selected value.(in that case reject).
    And second is that when i set radio button value for current row using binding like
    rb.setValue("R") then reject option selected for all rows.
    so my question is that-
    how can i get and set value of select one radio group in row level using component binding.

    Hi,
    I don't see a reason for not using a transient attribute for the radioGroup in your previous reply.
    Here is the example i tried.
                            <af:selectOneRadio label="#{bindings.DeptView1.hints.DeptnoRadio.label}" id="sor1"
                                    value="#{row.bindings.DeptnoRadio.inputValue}">
                                <af:selectItem label="A" value="A" id="si1"/>
                                <af:selectItem label="B" value="B" id="si2"/>
                                <af:selectItem label="C" value="C" id="si3"/>
                                <af:selectItem label="D" value="D" id="si4"/>
                                <af:selectItem label="E" value="E" id="si5" disabled="#{row.bindings.EnableDisable.inputValue}"/>
                            </af:selectOneRadio>Where DeptnoRadio is the transient attribute i've created (which will have some random values between A and E), and EnableDisable is another transient variable of boolean type which would return true or false based on some condition.
    Now, for every row, the value is different (and corresponding radio button is selected) and for a row, which matches the condition, the option E is disabled.
    -Arun

  • JClient Component Binding Demo

    Hi,
    I've a question about the JClient Component Binding Demo.
    If I look at the JUNavbar/JUStatusBar binding demo, and the Panel Binding pane,
    I see NO way how to add a new Line Item if the Order doesn't have already one.
    I understand that the problem is because no one of the Line Item entry fields gets the focus.
    What was your intention on how to add a row in an emty table?
    Thanks

    One way folks on OTN reported they've worked around this issue is to add an combo implementing iterator picker on the NavBar. Then when they end up in this situation, the users can select the right iterator and add rows to it by binding the navbar to that iterator (which is not focus-able due to no rows in it in a table display).
    Another way I would suggest is to trap a mouse-click event on the table and if clicked upon, make the navbar focus on the iterator that the table was bound to.

  • Error binding table components with database tables

    Hi, when i try to bind table components with database tables y receive this error
    java.lang.NullPointerException
         at com.sun.sql.rowset.CachedRowSetXImpl.initMetaData(CachedRowSetXImpl.java:861)
         at com.sun.sql.rowset.CachedRowSetXImpl.getMetaData(CachedRowSetXImpl.java:2336)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1317)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:489)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.resetTableColumns(TableRowGroupDesignState.java:261)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.setDataProviderBean(TableRowGroupDesignState.java:163)
         at com.sun.rave.web.ui.component.table.TableDesignState.setDataProviderBean(TableDesignState.java:250)
         at com.sun.rave.web.ui.component.TableDesignInfo.linkBeans(TableDesignInfo.java:162)
         at com.sun.rave.insync.models.FacesModel.linkBeans(FacesModel.java:1042)
         at com.sun.rave.designer.DndHandler.processLinks(DndHandler.java:2126)
         at com.sun.rave.designer.DndHandler.importBean(DndHandler.java:880)
         at com.sun.rave.designer.DndHandler.importItem(DndHandler.java:702)
         at com.sun.rave.designer.DndHandler.importDataDelayed(DndHandler.java:376)
         at com.sun.rave.designer.DndHandler.access$000(DndHandler.java:114)
    [catch] at com.sun.rave.designer.DndHandler$1.run(DndHandler.java:298)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    There are a thing that I don't undertand. When I try to bind samples database table (Travel, for example) to table components, there are no errors. But when I try to bind table component with my remote postgresql database table, yes...the table component disappear and only a "Table" string is displayed....this error is because I use remote database?? Or because it's PostgreSQL??
    Thanks.

  • Component binding property problem

    following problem:
    I have a form where I built a dataTable with a dynamic number of columns. To achieve this, I used a component binding (backing bean) to dynamically add columns.
    The form is used for different kind of queries and every query has it's own number of columns. The query-identification is submitted via a request parameter.
    All the data in the query-form are o.k. (bean values) but the backing bean will not be called in case of a new request (same jsf-form, but other request-parameter).
    example:
    http://host/url.faces?id=1
    http://host/url.faces?id=2
    <h:dataTable id="test"
                 value="#{test.values}"
                 var="i"
                 rendered="true"
                 binding="#{test.table}">
    </h:dataTable>whereas test is a bean which is created in a servlet listener and also updated with the corresponding id from the request.
    The table-property depends on the id given in the request.
    why ?

    ok, I found out, that using the <h:commandLink> with a param-tag solves this issue.
    Now the backing-bean's method to build the table is all-time called.
    And it works even after an expired session.
    But unfortunately I do not really know, why it works this way and the other it doesn't...

  • Component binding and state saving

    Hello,
    I have a few questions in regards to component binding and state saving (specifically in regards to the reference implementation) when the saving method is client and backing-beans are in the request scope rather than in the session scope:
    1) if a component instance is bound to a backing-bean property then does the state of that component get saved when the view state is saved?
    2) for UIData component, if the component value is bound to a list, does the actual list (after being wrapped) serve as the local data for the component? If this is the case, when the state is saved and then subsequently restored, does the list get re-created with the original number of items?
    Regards,
    Len Takeuchi

    Thanks for the quick response.
    (2) The actual list is not saved; the list will be
    re-queried on subsequent requests.The list composition may have changed by the time the list is re-queried. If the table being displayed is updatable then transfer of information from request back to the list (during Apply Request Values) may not happen properly. So does that pretty much mean that the original list has to be kept around (in the session)? If the state saving method is server then does the saved state maintain a reference to the original list across requests?
    Len Takeuchi

  • Component binding inside h:dataTable fails

    Hi,
    I'd like to create a component binding for each commandLink to a distinct child bean inside an h:dataTable like so:
    <h:dataTable value="#{parent.children}" var="child">
        <h:column>
            <h:commandLink binding="#{child.command1}" value="do it to it for #{child}" action="#{child.action}"/>
        </h:column>
    </h:dataTable>But whenever I try to render this page I get an exception stating that "child is null" and binding cannot be performed. If I remove 'binding="#{child.command1}"', however, everything works fine. I guess this is happening because 'var="child"' in h:dataTable gets evaluated after bindings are created. How can I get around that - I really need to be able to refer distinctly refer to UIComponents in each row.
    Confused...
    thanks
    -nikita

    I created a seperate class to handle the requests ActivationRequestBuilder and put the code in there .
    if you want to refer to each row in the backing bean .
    create a variable of type HtmlDataTable .
    private HtmlDataTable tenantDataTable;
    set up accessor and mutator methods for this variable.
    In your jsp in the DataTable
    <h:dataTable binding="#{activationRequestBuilder.tenantDataTable}"
    <h:commandLink title="Delete Tenant section"
    immediate="true" action="#{activationRequestBuilder.deleteTenantLocationSection}">
    public String deleteTenantLocationSection(){
    (TenantLocationRecordBean) this.getTenantDataTable().getRowData();
    This is just snippets of code but you should get the idea of what I have done here .I had multiple sections in a page so each row was a TenantLocationRecordBean .

  • JSF Custom component for table pagination and sorting

    hi
    i want such a custom component that render a table and table has the features of pagination and column sorting.
    any one know from where i can get such a custom component.
    (if this component is available with source then it would be more help full for me)
    thnks & regards,
    Haroon
    Message was edited by:
    HaroonAnwarPADHYAR

    I know two companies that offer JSF component for table pagination and sorting and AJAX based :
    http://www.teamdev.com/quipukit/demo/datatable/DataTable_filteringAndPaging.jsf
    http://java.samples.infragistics.com/NetAdvantage/JSF/2006.1/
    The problem? They are not open source..
    And I am too looking forward on this subject, because I want to develop my own custom component and add some features. If someone has any tips, references or samples of their own, it would be really appreciated.
    Thank you.
    Paul

  • Dynamic Programming : Bind table

    Hello to all,
    I intend to bind a table dynamically for which i am following these steps:
    1. Created the context node dynamically in WDINIT.
    2. Filled the context node (made a select query and then using bind_table)
    3. In WDDOModify, used the following code
       CALL METHOD VIEW->GET_ROOT_ELEMENT
         RECEIVING
           ROOT_VIEW_ELEMENT = LR_ROOT_ELEMENT .
       "DOWNCAST IT
        LR_CONTAINER ?= LR_ROOT_ELEMENT.
    4. Created an UI elemnt and bound the data source
    CALL METHOD CL_WD_TABLE=>NEW_TABLE
      EXPORTING
        BIND_DATA_SOURCE              = 'SFLIGHTS_CONTEXT'
       ID                            = 'TABLE_SFLIGHT'
      RECEIVING
        CONTROL                       = LR_TABLE
    5. CALL METHOD LR_CONTAINER->ADD_CHILD
      EXPORTING
        THE_CHILD = LR_TABLE
    6 CALL METHOD CL_WD_FLOW_DATA=>NEW_FLOW_DATA
      EXPORTING
        ELEMENT     = LR_TABLE
      RECEIVING
        CONTROL     = LR_FLOW_DATA
    With this all i am getting in the browser is an empty table. Well i have used the <b>bind_data_source</b> parameter = the context, and this context is very much filled in the WDDOINIT method but can't understand this behavior of getting an empty table.
    Please help me with this

    Hi Abhishek,
    I am putting the Exaple code which will help you to solve the problem. Here the logic in my example are the User enters TABLENAME into the Input field and he want to display the information about that Table with data.
    DATA: lr_root_info TYPE REF TO if_wd_context_node_info,
    lr_node_info TYPE REF TO if_wd_context_node_info,
    lr_context_node TYPE REF TO if_wd_context_node,
    lr_context_elem TYPE REF TO if_wd_context_element,
    lv_tabname TYPE string,
    lr_db_tab TYPE REF TO data.
    FIELD-SYMBOLS: <lfs_db_tab> TYPE ANY TABLE.
    read db table name from context
    lr_context_node = wd_context->get_child_node( name = 'TABLE_NAME' ).
    lr_context_elem = lr_context_node->get_element( ).
    lr_context_elem->get_attribute(
    EXPORTING name = 'TABLENAME'
    IMPORTING value = lv_tabname ).
    TRANSLATE lv_tabname TO UPPER CASE.
    get meta data info of root context node
    lr_root_info = wd_context->get_node_info( ).
    create context structure
    CALL METHOD lr_root_info->add_new_child_node
    EXPORTING
    STATIC_ELEMENT_TYPE = lv_tabname
    name = 'DB_TABLE'
    receiving
    child_node_info = lr_node_info.
    create data object of correct type and assign field symbol
    CREATE DATA lr_db_tab TYPE TABLE OF (lv_tabname).
    ASSIGN lr_db_tab->* TO <lfs_db_tab>.
    read DB content
    SELECT * FROM (lv_tabname)
    INTO CORRESPONDING FIELDS OF TABLE <lfs_db_tab>
    UP TO 100 ROWS.
    bind table to context
    lr_context_node = wd_context->get_child_node( name = 'DB_TABLE' ).
    CALL METHOD lr_context_node->bind_table
    EXPORTING
    new_items = <lfs_db_tab>.
    Best Regards,
    Vijay

  • COMPONENT binding

    Folks,
    does anybody know about detailed descriptions (with samples) of the Component binding feature in JSF? I would like to get my hands on a more detailed example than the one in the J2EE tutorial. The books I've seen so far put their focus on value and method binding but rarely anybody talks about component binding.
    Every (meaningful) response gets a DD!
    Thanks.

    http://jsftutorials.com/components/step5.html
    Probably, it is not very detailed, but with the example :-)
    You can assign the variable with the type of the component in the backing bean. This allows you to manipulate with all bunch on the component attributes.

  • Component binding setting

    Hi, I am trying to understand the setting of component binding during the JSF phases. From the specification, I understand the following (JSF 1.2, Section 2.2.1) Restore View -
    "For each component in the component tree, determine if a ValueExpression for “binding” is present. If so, call the setValue() method on this ValueExpression, passing the component instance on which it was found."
    So, from the above, it seems that after every Restore View phase for a ViewId, setXX() for the component binding should be called. However, at runtime, I dont see this. Is my understanding correct? Excatly, when will the setXX() for the component bindings be called?
    Thanks.

    Hi , thanks for your response. I had done some tests, before posting my original question. Here were my observations - I had created two views View 1 and View 2. From View 1, I can navigate to View 2 and vice versa. XXX is a component binding in View 1.
    Managed bean is on Pageflow Scope.
    1) When View 1 is launched the first time, I see that getXXX() is called, I return null here, so, setXXX() called initializing the component. This happens in the Restore View phase of View 1.
    2) Then, I navigate to View 2. Again, I see that setXXX() of View 1 is called and then View 2 is initialized. Again, this is in the Restore View phase, but that of View 2.
    3) I then navigate back to View 1. I dont see any setXXX() call at this time. Why is setXXX() not called in the Restore View phase?
    4) I then again navigate back to View 2. I see setXXX() again during Restore View phase of View 2.
    My understanding of this is that the UIViewRoot is initialized when the View is first shown. During its initialization (createView in ViewHandler), the components are initialized and component bindings on the managed beans are set. This is done in step 1. UIViewRoot may then be stored in the session (but I dont think this is mandated by spec and probably is implementation dependent). During a subsequent postback (as in step 3), UIViewRoot is retrieved by the ViewHandler (restoreView), and setXXX() should be called here again. After this it continues on with the remaining JSF phases. RestoreView itself may retrieve UIRootView from the session, or probably build it up using the State handling mechanism - StateHolder and its cronies.
    My confusion is - Why is setXXX() called during Restore View phase of View 2? At this time, it should not even bother about the UIViewRoot going out.
    Thanks again for your patience explaining the finer things of ADF/JSF.
    Kind regards.
    Edited by: user10624779 on Oct 11, 2010 8:37 PM

  • If I consider heap size, should I follow component binding or Value binding

    Hi,
    I have an Web application my pages gets change rapidly in run time(components get disable and invisible at run-time depends on user input), So in that case which kind of binding approach I have to follow if I consider Heap memory of run time.

    navaneeth.j wrote:
    I am getting more grip on the component means, in ValueChange event I can get the updated value in the backing bean, That means on the updated values of the rest of the components are not available only we can get evt.getNewValue for event produced component. Example there are 5 components in the page if the event got generated from the 3rd component so in that valuechange event method needs the first two components values also. In value binding I can't get those value but in the component binding every component's updated value I can get.That's why I mentioned AJAX enabling the view in the previous post.
    I can accept for 3rd party libraries if we use value binding it would be very easy to detach and use another one but for basic components I am not able to visualize the need to use the other >API, If my guess is right, for look and feel purpose means we can change the renderkit na.
    Please suggest me am I thinking in the right direction or notRichfaces, Tomahawk and many others have lots of components that solve common problems that you are going to meet when using plain JSF components.
    Yes people try to stick to standard JSF as much as possible but it is not always possible nor always beneficial.
    Like I said it's not hard and fast. As long as you understand the advantages and disadvantages of each technique so that you can chose the correct approach according to requirements.
    The memory differences are unlikely to impact in a major way.

  • Doubt about Component binding....

    I have a doubt about component binding because I am also using component binding in my application, in my application each page has more than 20 components and each page is session scope, at one point I am getting message like perm space(this is because of lack of memory, actually I have 4gb ram). So my is
    "does the jsf creates new object for every reload, because of that my jvm filling with all the objects?".
    Another question is "what is the difference between value binding and component bindings?, and drawbacks of each other" please tell me the differences between them up to the very low level(up to memory usage for each approach).
    Please clarify this doubt...........

    JNaveen wrote:
    I have a doubt about component binding because I am also using component binding in my application, in my application each page has more than 20 components and each page is session scope, at one point I am getting message like perm space(this is because of lack of memory, actually I have 4gb ram). So my is
    "does the jsf creates new object for every reload, because of that my jvm filling with all the objects?".This is regardless of the component binding. JSF creates a component tree and stores it in the session. With component binding you can link between the backing bean and the component without the need for UIViewRoot#findComponent().
    Think your problem lies somewhere else. Use a profiler.
    Another question is "what is the difference between value binding and component bindings?, and drawbacks of each other" please tell me the differences between them up to the very low level(up to memory usage for each approach).With the component binding you can get hold of the whole component from the tree in the backing bean. Useful if you want to do a bit more than only holding the component's value, with which you usually do with the value binding.

Maybe you are looking for

  • Curve 9220 BlackBerry App World registration error MTP USB Driver is not installed

    Hi, Recently I have purchased Curve 9220, trying connect to BlackBerry App World setup in the first instance I get  1. Get the BlackBerry App World Browser Plug-in (I get tick mark) then when I get  2. Connect your smartphone I get the drop down of m

  • ICR Process 003- Adding new field BVORG

    Hi, I am hoping Ralph will see this post and grant some of his wisdom.  I have searched this forum as well as OSS and can't seem to find a good answer to my issue. I am in the process of implementing the ICR Process 003 in our development system.  I

  • How to parse a XML ?

    I'm developping a webservice on WEBAS based on BSP.. From an HTTP POST envelop I receive and XML message... I would like to parse it to extract datas and to use them. Thanks for your help... Jérôme

  • Suggestions for updating to latest version of itunes?

    My vista windows laptop will no longer update to the latest version of itunes even though it keeps prompting me to update. When I got into itunes it won't sync anylonger with my ipdad it just won't recognize the device. I have tried to uninstall itun

  • PSE 12 organizer not opening catalog

    First time opening organizer in PSE 12, just bought and installed. On Windows 7. Previously had PSE 8. Told it to convert catalog, but every time it opens, it starts doing the face recognition process, and promptly crashes. Have tried the first few s