1 Reply Latest reply on Mar 11, 2012 10:45 AM by Tomas Cerny

    RF4.2 : Ajax rendered table with a4j:commandLink inside : does not work?

    Tomas Cerny Novice

      It seems that what was no problem in RF3.3 is not possible in RF4.2.

      I have a table rendered after ajax call, this table contains a4j:commandLink inside, but that one does not work

       

          <h:form>

               <h:panelGroup id="myComp">

                                <h:inputText               

                                        value="#{suggest.searchCriteria}" >

                                   <f:ajax event="keyup" render="myComp">

                                   </f:ajax>

                                </h:inputText>

       

                                 <rich:dataTable rendered="#{not empty suggest.resultList}"

                                         id="suggestion" value="#{suggest.resultList}" var="result">

                                   

                                      <rich:column >

                                        

                                          <a4j:commandButton

                                              render="myComp"

                                              execute="@this"

                                              value="xx" action="#{currentUser.setInstitution('aa')}"/>

                                             

                                          <a4j:commandButton

                                              render="myComp"

                                              value="xx">

                                              <f:setPropertyActionListener target="#{currentUser.institution}" value="aa" />

                                          </a4j:commandButton>

                                         

                                         

                                          <a4j:commandLink

                                              render="myComp"

                                              value="#{result.name}">

                                              <a4j:param value="#{result.name}" assignTo="#{suggest.searchCriteria}"/>               

                                          </a4j:commandLink>


                                          <a4j:commandLink

                                              render="myComp"

                                              value="#{result.name}" action="#{suggest.setSearchCriteria(null)}">

                                              <f:setPropertyActionListener target="#{currentUser.institution}" value="#{result.name}" />

                                              <f:setPropertyActionListener target="#{currentUser.realInstitution}" value="#{result}" />

                                          </a4j:commandLink>

                                      </rich:column>

                                    </rich:dataTable>

                                <h:outputText id="text" value="#{currentUser.institution}" />

                        </h:panelGroup> 

               </h:form>

       

      What am I doing wrong? This would not be a problem in RF3.3?

       

      Thank for hint