Title: Locating components by id

Hi,

 

  IM using myfaces with ajax4jsf for my application. ON typing on some values in the input text, my datatable gets

 Updated accordingly.

 

 But the problem im facing is the setter for the bean gets updated after the datatable [model] is called. Hence

 The application fails. That is after I enter something, the requests goes to the server but the bean attribute is   set after the datamodel is called by the datatable.

 

 I thought it might be ajax4jsf problem, so I removed the ajax part and tried it with a simple button..but the flow remains as usual.

 

I was wondering if anybody could tell me how to get the correct order ie the setter sets the bean and then the datatable gets called.

 

Thanx

 

ABhi

 

I have added the code for my jsf

 

<ajax:page title="Chooser Page">

                 

                  <h:inputText id="input"  value="#{chooserHandler.userId}" >

                        <ajax:support event="onkeyup" reRender="namesList" />

            </h:inputText>

 

                  <h:dataTable id="namesList"

                        value="#{chooserHandler.user}" 

                        var="nlist"

                              headerClass="chartheader"

                              footerClass="chartfooter"

                              rowClasses="chartrow2, chartrow1"

                              columnClasses="chartbody"

                              styleClass="charttable"

                              cellpadding="0"

                              cellspacing="0">

         

                              <h:column>

                       

                              <f:facet name="header">

                                    <h:outputText value="Employee Details" />

                              </f:facet>

                       

                              <h:commandLink action="#{chooserHandler.navigateNext}">

           

                                          <h:outputText value="#{nlist.lastName}" />

                                         

                              </h:commandLink>

                              </h:column>

 

                      </h:dataTable>

                     

                    </ajax:page>         

 


Reply via email to